8000 Theme tweaks and images now we're looking good · fyne-io/solitaire@f03ec53 · GitHub
[go: up one dir, main page]

Skip to content

Commit f03ec53

Browse files
committed
Theme tweaks and images now we're looking good
1 parent 492949e commit f03ec53

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed

FyneApp.toml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[Details]
2+
Name = "Solitaire"
3+
ID = "io.fyne.solitaire"
4+
Build = 7

img/iphone.png

179 KB
Loading

img/iphone_landscape.png

287 KB
Loading

img/solitaire.png

46 KB
Loading

theme.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ func newGameTheme() fyne.Theme {
1515
return &gameTheme{theme.DefaultTheme()}
1616
}
1717

18-
func (g *gameTheme) Color(n fyne.ThemeColorName, v fyne.ThemeVariant) color.Color {
18+
func (g *gameTheme) Color(n fyne.ThemeColorName, _ fyne.ThemeVariant) color.Color {
1919
switch n {
2020
case theme.ColorNameBackground:
2121
return color.RGBA{R: 0x07, G: 0x63, B: 0x24, A: 0xff}
2222
case theme.ColorNameSeparator:
2323
return color.RGBA{R: 0x02, G: 0x52, B: 0x10, A: 0xff}
2424
}
2525

26-
return g.Theme.Color(n, v)
26+
return g.Theme.Color(n, theme.VariantDark)
2727
}

0 commit comments

Comments
 (0)
0