Update Wintergreen theme to use new API

This commit is contained in:
Sasha Koshka 2024-05-27 16:02:57 -04:00
parent 9e2d1ecf01
commit 908dbd0bad
11 changed files with 401 additions and 180 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

View File

@ -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 { },

View File

@ -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