h a r m o n y
This commit is contained in:
@@ -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") {
|
||||
|
||||
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user