Skip to content

Commit

Permalink
fix cursor being invisible if not showing animations
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed Jul 27, 2024
1 parent 49ad989 commit 62b4708
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions widget/entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -1995,19 +1995,21 @@ func (r *entryContentRenderer) Refresh() {
placeholder.Hide()
}

th := r.content.entry.Theme()
v := fyne.CurrentApp().Settings().ThemeVariant()
if focusedAppearance {
r.cursor.Show()
if fyne.CurrentApp().Settings().ShowAnimations() {
r.content.entry.cursorAnim.start()
} else {
r.cursor.FillColor = th.Color(theme.ColorNamePrimary, v)
}
r.cursor.Show()
} else {
r.content.entry.cursorAnim.stop()
r.cursor.Hide()
}
r.moveCursor()

th := r.content.entry.Theme()
v := fyne.CurrentApp().Settings().ThemeVariant()
selectionColor := th.Color(theme.ColorNameSelection, v)
for _, selection := range selections {
rect := selection.(*canvas.Rectangle)
Expand Down

0 comments on commit 62b4708

Please sign in to comment.