Update Wintergreen theme to use new API
This commit is contained in:
parent
9e2d1ecf01
commit
908dbd0bad
Binary file not shown.
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 8.3 KiB |
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 6.9 KiB |
Binary file not shown.
BIN
internal/theme/default/assets/old/icons-large.png
Normal file
BIN
internal/theme/default/assets/old/icons-large.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.5 KiB |
BIN
internal/theme/default/assets/old/icons-large.xcf
Normal file
BIN
internal/theme/default/assets/old/icons-large.xcf
Normal file
Binary file not shown.
BIN
internal/theme/default/assets/old/icons-small.png
Normal file
BIN
internal/theme/default/assets/old/icons-small.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
BIN
internal/theme/default/assets/old/icons-small.xcf
Normal file
BIN
internal/theme/default/assets/old/icons-small.xcf
Normal file
Binary file not shown.
@ -1,19 +1,19 @@
|
|||||||
package defaultTheme
|
package defaultTheme
|
||||||
|
|
||||||
import "image/color"
|
import "image/color"
|
||||||
import "git.tebibyte.media/tomo/tomo/theme"
|
import "git.tebibyte.media/tomo/tomo"
|
||||||
import dataTheme "git.tebibyte.media/tomo/nasin/internal/theme"
|
import dataTheme "git.tebibyte.media/tomo/nasin/internal/theme"
|
||||||
|
|
||||||
// Theme returns Wintergreen, the default Tomo theme. It is neutral-gray with
|
// Theme returns Wintergreen, the default Tomo tomo. It is neutral-gray with
|
||||||
// green and turquoise accents.
|
// green and turquoise accents.
|
||||||
func Theme () theme.Theme {
|
func Theme () tomo.Theme {
|
||||||
return &dataTheme.Theme {
|
return &dataTheme.Theme {
|
||||||
Colors: map[theme.Color] color.Color {
|
Colors: map[tomo.Color] color.Color {
|
||||||
theme.ColorBackground: colorBackground,
|
tomo.ColorBackground: colorBackground,
|
||||||
theme.ColorForeground: colorForeground,
|
tomo.ColorForeground: colorForeground,
|
||||||
theme.ColorRaised: colorCarved,
|
tomo.ColorRaised: colorCarved,
|
||||||
theme.ColorSunken: colorCarved,
|
tomo.ColorSunken: colorCarved,
|
||||||
theme.ColorAccent: colorFocus,
|
tomo.ColorAccent: colorFocus,
|
||||||
},
|
},
|
||||||
Rules: rules,
|
Rules: rules,
|
||||||
IconTheme: &iconTheme { },
|
IconTheme: &iconTheme { },
|
||||||
|
|||||||
@ -6,7 +6,6 @@ import _ "embed"
|
|||||||
import _ "image/png"
|
import _ "image/png"
|
||||||
import "git.tebibyte.media/tomo/tomo"
|
import "git.tebibyte.media/tomo/tomo"
|
||||||
import "git.tebibyte.media/tomo/tomo/data"
|
import "git.tebibyte.media/tomo/tomo/data"
|
||||||
import "git.tebibyte.media/tomo/tomo/theme"
|
|
||||||
import "git.tebibyte.media/tomo/tomo/canvas"
|
import "git.tebibyte.media/tomo/tomo/canvas"
|
||||||
|
|
||||||
//go:embed assets/icons-small.png
|
//go:embed assets/icons-small.png
|
||||||