Tweaked the sunken pattern
This commit is contained in:
parent
0c2eb3f20d
commit
b9be483869
@ -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 {
|
||||||
return pressedButtonPattern
|
if selected {
|
||||||
|
return pressedSelectedButtonPattern
|
||||||
|
} else {
|
||||||
|
return pressedButtonPattern
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if selected {
|
if selected {
|
||||||
return selectedButtonPattern
|
return selectedButtonPattern
|
||||||
|
@ -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 }
|
||||||
|
Reference in New Issue
Block a user