Skip to content

Commit

Permalink
Avoid deprecated API
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jun 29, 2024
1 parent ee745f0 commit 22be466
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/ui/settings_ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ import (
"strconv"
"strings"

"golang.org/x/text/cases"
"golang.org/x/text/language"

"fyne.io/fyne/v2"
"fyne.io/fyne/v2/canvas"
"fyne.io/fyne/v2/cmd/fyne_settings/settings"
Expand Down Expand Up @@ -457,7 +460,7 @@ func (d *settingsUI) loadThemeScreen() fyne.CanvasObject {
p.Refresh()

l := inner.Objects[0].(*widget.RichText)
title := strings.Title(themeList[id])
title := cases.Title(language.Make("en")).String(themeList[id])
l.ParseMarkdown(fmt.Sprintf("## %s\n\nDescription...", title))
})
}
Expand Down

0 comments on commit 22be466

Please sign in to comment.