From 48990469cf5360ceafac415e7060615c5857bdd2 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Thu, 12 Sep 2024 15:32:40 -0400 Subject: [PATCH] Update fallback style --- internal/styles/fallback/wintergreen.go | 55 ++++++++++++++++--------- 1 file changed, 36 insertions(+), 19 deletions(-) diff --git a/internal/styles/fallback/wintergreen.go b/internal/styles/fallback/wintergreen.go index a9caa4a..6c4b016 100644 --- a/internal/styles/fallback/wintergreen.go +++ b/internal/styles/fallback/wintergreen.go @@ -145,26 +145,12 @@ rules := []style.Rule { tomo.AGap(0, 0), ), tomo.R("", "NumberInput")), - // *.Container[sunken] + // *.Root 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("", "Container"), "sunken"), + tomo.AGap(0, 0), + ), tomo.R("", "Root")), - // *.Container[outer] - style.Ru(style.AS ( - tomo.AttrColor { Color: tomo.ColorBackground }, - tomo.AttrPadding(tomo.I(8)), - ), tomo.R("", "Container"), "outer"), - - // *.Container[menu] + // *.Root[menu] style.Ru(style.AS ( tomo.AttrBorder { outline, @@ -175,7 +161,38 @@ rules := []style.Rule { }, tomo.AttrColor { Color: tomo.ColorBackground }, 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 style.Ru(style.AS (