Tweaked the sunken pattern

This commit is contained in:
Sasha Koshka 2023-01-17 18:12:04 -05:00
parent 0c2eb3f20d
commit b9be483869
2 changed files with 18 additions and 4 deletions

View File

@ -33,6 +33,16 @@ var pressedButtonPattern = artist.NewMultiBorder (
}, },
}, },
artist.Border { Stroke: artist.NewUniform(hex(0x8D9894FF)) }) artist.Border { Stroke: artist.NewUniform(hex(0x8D9894FF)) })
var pressedSelectedButtonPattern = artist.NewMultiBorder (
artist.Border { Weight: 1, Stroke: strokePattern },
artist.Border {
Weight: 1,
Stroke: artist.Chiseled {
Highlight: artist.NewUniform(hex(0x4B5B59FF)),
Shadow: artist.NewUniform(hex(0x8D9894FF)),
},
},
artist.Border { Stroke: artist.NewUniform(hex(0x8D9894FF)) })
var disabledButtonPattern = artist.NewMultiBorder ( var disabledButtonPattern = artist.NewMultiBorder (
artist.Border { Weight: 1, Stroke: weakForegroundPattern }, artist.Border { Weight: 1, Stroke: weakForegroundPattern },
artist.Border { Stroke: backgroundPattern }) artist.Border { Stroke: backgroundPattern })
@ -40,7 +50,11 @@ var disabledButtonPattern = artist.NewMultiBorder (
func ButtonPattern (enabled, selected, pressed bool) (artist.Pattern) { func ButtonPattern (enabled, selected, pressed bool) (artist.Pattern) {
if enabled { if enabled {
if pressed { if pressed {
if selected {
return pressedSelectedButtonPattern
} else {
return pressedButtonPattern return pressedButtonPattern
}
} else { } else {
if selected { if selected {
return selectedButtonPattern return selectedButtonPattern

View File

@ -28,11 +28,11 @@ var sunkenPattern = artist.NewMultiBorder (
artist.Border { artist.Border {
Weight: 1, Weight: 1,
Stroke: artist.Chiseled { Stroke: artist.Chiseled {
Highlight: artist.NewUniform(hex(0x373C3AFF)), Highlight: artist.NewUniform(hex(0x3b534eFF)),
Shadow: artist.NewUniform(hex(0xDBDBDBFF)), Shadow: artist.NewUniform(hex(0x97a09cFF)),
}, },
}, },
artist.Border { Stroke: backgroundPattern }) artist.Border { Stroke: artist.NewUniform(hex(0x97a09cFF)) })
func AccentPattern () (artist.Pattern) { return accentPattern } func AccentPattern () (artist.Pattern) { return accentPattern }
func BackgroundPattern () (artist.Pattern) { return backgroundPattern } func BackgroundPattern () (artist.Pattern) { return backgroundPattern }