Update fallback style

This commit is contained in:
Sasha Koshka 2024-09-12 15:32:40 -04:00
parent 59f32e6c1f
commit 48990469cf

View File

@ -145,26 +145,12 @@ rules := []style.Rule {
tomo.AGap(0, 0), tomo.AGap(0, 0),
), tomo.R("", "NumberInput")), ), tomo.R("", "NumberInput")),
// *.Container[sunken] // *.Root
style.Ru(style.AS ( style.Ru(style.AS (
tomo.ABorder ( tomo.AGap(0, 0),
outline, ), tomo.R("", "Root")),
tomo.Border {
Width: tomo.I(1, 0, 0, 1),
Color: borderColorEngraved,
}),
tomo.AColor(tomo.ColorSunken),
// tomo.ATexture(textureCorkboard),
tomo.APadding(8),
), tomo.R("", "Container"), "sunken"),
// *.Container[outer] // *.Root[menu]
style.Ru(style.AS (
tomo.AttrColor { Color: tomo.ColorBackground },
tomo.AttrPadding(tomo.I(8)),
), tomo.R("", "Container"), "outer"),
// *.Container[menu]
style.Ru(style.AS ( style.Ru(style.AS (
tomo.AttrBorder { tomo.AttrBorder {
outline, outline,
@ -175,7 +161,38 @@ rules := []style.Rule {
}, },
tomo.AttrColor { Color: tomo.ColorBackground }, tomo.AttrColor { Color: tomo.ColorBackground },
tomo.AttrGap { }, tomo.AttrGap { },
), tomo.R("", "Container"), "menu"), ), tomo.R("", "Root"), "menu"),
// *.Pegboard
style.Ru(style.AS (
tomo.ABorder (
outline,
tomo.Border {
Width: tomo.I(1, 0, 0, 1),
Color: borderColorEngraved,
}),
tomo.AColor(tomo.ColorSunken),
// tomo.ATexture(textureCorkboard),
tomo.APadding(8),
), tomo.R("", "Pegboard")),
// *.Segment
style.Ru(style.AS (
tomo.AttrBorder {
tomo.Border {
Width: tomo.I(1),
Color: borderColorLifted,
},
},
tomo.AttrColor { Color: tomo.ColorBackground },
tomo.AttrPadding(tomo.I(8)),
), tomo.R("", "Segment")),
// *.Segment[option]
style.Ru(style.AS (
tomo.AttrColor { Color: tomo.ColorSunken },
tomo.AttrPadding(tomo.I(8)),
), tomo.R("", "Segment"), "option"),
// *.Heading // *.Heading
style.Ru(style.AS ( style.Ru(style.AS (