some tweaks to ui theming for Fyne 2.3

This commit is contained in:
Drew Weymouth
2023-03-04 09:25:12 -08:00
parent b2fdca85a9
commit 37f272e702
5 changed files with 48 additions and 5 deletions
+4 -2
View File
@@ -1,10 +1,10 @@
package browsing
import (
"image/color"
"supersonic/backend"
"supersonic/ui/controller"
"supersonic/ui/layouts"
myTheme "supersonic/ui/theme"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/canvas"
@@ -69,7 +69,9 @@ func NewBrowsingPane(app *backend.App) *BrowsingPane {
b.app.PlaybackManager.OnSongChange(b.onSongChange)
b.pageContainer = container.NewMax(
// TODO: get this color into the theme
canvas.NewRectangle(color.RGBA{R: 24, G: 24, B: 40, A: 255}),
canvas.NewRectangle(fyne.CurrentApp().Settings().Theme().Color(
myTheme.ColorNamePageBackground, theme.VariantDark,
)),
layout.NewSpacer())
b.settingsBtn = widget.NewButtonWithIcon("", theme.SettingsIcon(), func() {
p := widget.NewPopUpMenu(b.settingsMenu,