From e46d66885da1dec3289cf6f6f2cc81246fab1a88 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Wed, 14 Aug 2024 11:59:03 -0400 Subject: [PATCH] Slight style tweaks to Wintergreen --- internal/styles/fallback/wintergreen.go | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/internal/styles/fallback/wintergreen.go b/internal/styles/fallback/wintergreen.go index d0f9b41..ced3ab1 100644 --- a/internal/styles/fallback/wintergreen.go +++ b/internal/styles/fallback/wintergreen.go @@ -61,7 +61,7 @@ func New () (*style.Style, event.Cookie) { atlasTexture := tomo.NewTexture(atlasImage) textureCheckboxChecked := atlasTexture.SubTexture(image.Rect( 0, 0, 12, 11)) - textureCorkboard := atlasTexture.SubTexture(image.Rect(16, 0, 28, 12)) + // textureCorkboard := atlasTexture.SubTexture(image.Rect(16, 0, 28, 12)) textureTearLine := atlasTexture.SubTexture(image.Rect(16, 12, 18, 13)) textureHandleVertical := atlasTexture.SubTexture(image.Rect(28, 0, 29, 2)) textureHandleHorizontal := atlasTexture.SubTexture(image.Rect(28, 0, 30, 1)) @@ -160,8 +160,8 @@ rules := []style.Rule { Width: tomo.I(1, 0, 0, 1), Color: borderColorEngraved, }), - tomo.AColor(nil), - tomo.ATexture(textureCorkboard), + tomo.AColor(tomo.ColorSunken), + // tomo.ATexture(textureCorkboard), tomo.APadding(8), ), tomo.R("", "Container"), "sunken"), @@ -188,6 +188,11 @@ rules := []style.Rule { style.Ru(style.AS ( tomo.AAlign(tomo.AlignMiddle, tomo.AlignMiddle), ), tomo.R("", "Heading")), + + // *.Heading + style.Ru(style.AS ( + tomo.APadding(4, 8), + ), tomo.R("", "Heading"), "menu"), // *.Separator style.Ru(style.AS ( @@ -498,7 +503,7 @@ rules := []style.Rule { Color: borderColorLifted, }, }, - tomo.AttrPadding(tomo.I(4, 8, 4, 8)), + tomo.AttrPadding(tomo.I(4, 8, 7, 8)), tomo.AttrColor { Color: tomo.ColorBackground }, ), tomo.R("", "Tab"), "active"),