h a r m o n y

This commit is contained in:
Sasha Koshka
2023-02-09 16:15:02 -05:00
parent 06e97461fa
commit 5446ffe40b
4 changed files with 110 additions and 17 deletions

View File

@@ -88,7 +88,11 @@ func (Default) Pattern (
}
}
} else {
return sunkenPattern
if state.Focused {
return focusedSunkenPattern
} else {
return sunkenPattern
}
}
case PatternPinboard:
return texturedSunkenPattern
@@ -101,6 +105,12 @@ func (Default) Pattern (
return pressedDarkButtonPattern
} else {
return darkButtonPattern
}
} else if c == C("fun", "flatKey") {
if state.Pressed {
return pressedButtonPattern
} else {
return buttonPattern
}
} else {
if state.Pressed || state.On && c == C("basic", "checkbox") {

View File

@@ -19,6 +19,14 @@ var sunkenPattern = artist.NewMultiBordered (
},
},
artist.Stroke { Pattern: artist.NewUniform(hex(0x97a09cFF)) })
var focusedSunkenPattern = artist.NewMultiBordered (
artist.Stroke { Weight: 1, Pattern: strokePattern },
artist.Stroke {
Weight: 1,
Pattern: accentPattern,
},
artist.Stroke { Pattern: artist.NewUniform(hex(0x97a09cFF)) })
var texturedSunkenPattern = artist.NewMultiBordered (
artist.Stroke { Weight: 1, Pattern: strokePattern },