Add fallback styling for dropdowns
This commit is contained in:
parent
e0f90f8305
commit
a03eab9898
@ -538,6 +538,43 @@ rules := []style.Rule {
|
|||||||
tomo.AttrColor { Color: tomo.ColorSunken },
|
tomo.AttrColor { Color: tomo.ColorSunken },
|
||||||
tomo.AttrMinimumSize { X: 128, Y: 128 },
|
tomo.AttrMinimumSize { X: 128, Y: 128 },
|
||||||
), tomo.R("", "ColorPickerMap")),
|
), tomo.R("", "ColorPickerMap")),
|
||||||
|
|
||||||
|
// *.Dropdown
|
||||||
|
style.Ru(style.AS (
|
||||||
|
tomo.AttrBorder {
|
||||||
|
outline,
|
||||||
|
tomo.Border {
|
||||||
|
Width: tomo.I(1),
|
||||||
|
Color: borderColorLifted,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
tomo.AttrPadding(tomo.I(4, 8)),
|
||||||
|
tomo.AttrColor { Color: tomo.ColorRaised },
|
||||||
|
), tomo.R("", "Dropdown")),
|
||||||
|
|
||||||
|
// *.Dropdown[focused]
|
||||||
|
style.Ru(style.AS (
|
||||||
|
tomo.AttrBorder {
|
||||||
|
outline,
|
||||||
|
tomo.Border {
|
||||||
|
Width: tomo.I(1),
|
||||||
|
Color: borderColorFocused,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
), tomo.R("", "Dropdown"), "focused"),
|
||||||
|
|
||||||
|
// *.Dropdown[pressed]
|
||||||
|
style.Ru(style.AS (
|
||||||
|
tomo.AttrBorder {
|
||||||
|
outline,
|
||||||
|
tomo.Border {
|
||||||
|
Width: tomo.I(1, 0, 0, 1),
|
||||||
|
Color: borderColorEngraved,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
tomo.AttrPadding(tomo.I(5, 8, 4, 9)),
|
||||||
|
tomo.AttrColor { Color: colorCarvedPressed },
|
||||||
|
), tomo.R("", "Dropdown"), "pressed"),
|
||||||
}
|
}
|
||||||
|
|
||||||
return &style.Style {
|
return &style.Style {
|
||||||
|
Loading…
Reference in New Issue
Block a user