Slight style tweaks to Wintergreen

This commit is contained in:
Sasha Koshka 2024-08-14 11:59:03 -04:00
parent 7c5de5a370
commit e46d66885d

View File

@ -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"),
@ -189,6 +189,11 @@ rules := []style.Rule {
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 (
tomo.AttrBorder {
@ -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"),