diff --git a/src/style_pack_classic.zi b/src/style_pack_classic.zi index c27fd5b..750cd80 100644 --- a/src/style_pack_classic.zi +++ b/src/style_pack_classic.zi @@ -1,6 +1,6 @@ // Generated from styles/classic.kss by tools/style_pack_module.zi. // Edit the .kss and run `make style-packs`; do not edit this file. -style_pack_classic_bytes: [37511]u8; +style_pack_classic_bytes: [37564]u8; style_pack_classic_length: s32 = 0; StylePackClassicChunk0 :: #string KSSEND @@ -282,9 +282,11 @@ NavigationBarItem:disabled { opacity: 0.45; } +// A tab bar is a row of labels over a divider. The selected tab's border is +// its indicator on the edge facing the content. TabBar { font-size: font; - background: surface; + background: transparent; foreground: text; border: border-soft; radius: radius; @@ -299,12 +301,12 @@ TabBar { Tab { font-size: font; - background: button; + background: transparent; foreground: text; - border: border; + border: transparent; focus: accent; radius: radius; - border-width: border; + border-width: 2; padding-x: space.2; padding-y: space.1; icon-size: 44; @@ -315,7 +317,6 @@ Tab { Tab:hover { background: button-hover; foreground: text; - border: border-hover; } Tab:pressed { @@ -324,18 +325,16 @@ Tab:pressed { } Tab:selected { - background: card; - foreground: accent; - border: accent-border; -} - -Tab:disabled { - background: button-disabled; KSSEND; StylePackClassicChunk3 :: #string KSSEND + background: transparent; + foreground: accent; + border: accent; +} + +Tab:disabled { foreground: muted; - border: border-disabled; opacity: 0.55; } @@ -446,14 +445,14 @@ Menu[role=Popup] { Menu[role=Context] { background: card; foreground: text; +KSSEND; + +StylePackClassicChunk4 :: #string KSSEND border: outline-border; } MenuItem { icon-size: icon; -KSSEND; - -StylePackClassicChunk4 :: #string KSSEND background: transparent; foreground: text; border: transparent; @@ -562,11 +561,11 @@ DragValue { material: default; } -DragValue:disabled { - background: button-disabled; KSSEND; StylePackClassicChunk5 :: #string KSSEND +DragValue:disabled { + background: button-disabled; foreground: muted; border: border-disabled; opacity: 0.55; @@ -671,13 +670,13 @@ TreeViewItem { focus: accent; radius: radius; border-width: border.none; +KSSEND; + +StylePackClassicChunk6 :: #string KSSEND padding-x: space.2; padding-y: 7; gap: 2; icon-size: 16; -KSSEND; - -StylePackClassicChunk6 :: #string KSSEND offset-x: 18; offset-y: 28; font-size: font; @@ -783,12 +782,12 @@ Reorder { Reorder[role=Handle] { background: transparent; - foreground: muted; - border: transparent; - border-width: border.none; KSSEND; StylePackClassicChunk7 :: #string KSSEND + foreground: muted; + border: transparent; + border-width: border.none; padding-x: 8; gap: 4; icon-size: 3; @@ -899,13 +898,13 @@ Toast { border: border; radius: radius; border-width: border; +KSSEND; + +StylePackClassicChunk8 :: #string KSSEND padding-x: 14; padding-y: 10; gap: 18; opacity: 1; -KSSEND; - -StylePackClassicChunk8 :: #string KSSEND material: default; } @@ -1011,14 +1010,14 @@ TitleBar { icon-size: icon; background: transparent; foreground: text; +KSSEND; + +StylePackClassicChunk9 :: #string KSSEND border: transparent; opacity: 1; material: default; } -KSSEND; - -StylePackClassicChunk9 :: #string KSSEND TitleBar[role=Bar] { background: surface; foreground: text; @@ -1126,15 +1125,15 @@ Toolbar[role=BottomAction] { padding-x: 10; gap: 12; icon-size: 24; +KSSEND; + +StylePackClassicChunk10 :: #string KSSEND offset-x: 16; offset-y: 6; } Modal { font-size: font; -KSSEND; - -StylePackClassicChunk10 :: #string KSSEND icon-size: icon; background: transparent; foreground: text; @@ -1243,14 +1242,14 @@ Modal[role=Close]:hover { border: border; } +KSSEND; + +StylePackClassicChunk11 :: #string KSSEND Modal[role=Close]:pressed { background: button-pressed; } Guide { -KSSEND; - -StylePackClassicChunk11 :: #string KSSEND background: transparent; foreground: text; border: transparent; @@ -1359,14 +1358,14 @@ Guide[role=Close] { } Guide[role=Close]:hover { +KSSEND; + +StylePackClassicChunk12 :: #string KSSEND background: button-hover; border: border; } TableView { -KSSEND; - -StylePackClassicChunk12 :: #string KSSEND font-size: font; icon-size: icon; background: transparent; @@ -1470,15 +1469,15 @@ Plot { PlotMark { background: accent; foreground: accent-ink; +KSSEND; + +StylePackClassicChunk13 :: #string KSSEND border: accent-border; opacity: 1; material: default; } Text { -KSSEND; - -StylePackClassicChunk13 :: #string KSSEND foreground: text; font-size: font; } @@ -1601,13 +1600,13 @@ Button { border-width: border; padding-x: space.3; padding-y: space.1; +KSSEND; + +StylePackClassicChunk14 :: #string KSSEND gap: gap; font-size: font; icon-size: icon; opacity: 1; -KSSEND; - -StylePackClassicChunk14 :: #string KSSEND material: default; } @@ -1709,13 +1708,13 @@ Button[tone=Danger][emphasis=Soft] { Button[tone=Success][emphasis=Soft] { background: success-soft; background-end: success-soft; +KSSEND; + +StylePackClassicChunk15 :: #string KSSEND foreground: success; border: success-soft; } -KSSEND; - -StylePackClassicChunk15 :: #string KSSEND Button[tone=Warning][emphasis=Soft] { background: warning-soft; background-end: warning-soft; @@ -1782,11 +1781,11 @@ Button[tone=Danger][emphasis=Link] { foreground: danger; } Button[tone=Success][emphasis=Link] { foreground: success; } Button[tone=Warning][emphasis=Link] { foreground: warning; } -Button[emphasis=Link]:hover { foreground: accent-border; } - KSSEND; StylePackClassicChunk16 :: #string KSSEND +Button[emphasis=Link]:hover { foreground: accent-border; } + Button[tone=Accent][emphasis=Filled]:hover { background: accent-hover; background-end: accent-hover; @@ -1848,10 +1847,10 @@ Button[tone=Warning][emphasis=Soft]:hover { background: warning-soft-hover; background-end: warning-soft-hover; } -Button[tone=Warning][emphasis=Soft]:pressed { KSSEND; StylePackClassicChunk17 :: #string KSSEND +Button[tone=Warning][emphasis=Soft]:pressed { background: warning-soft-pressed; background-end: warning-soft-pressed; } @@ -1951,11 +1950,11 @@ Slider { border: border; focus: accent; radius: radius; - border-width: border; - opacity: 1; KSSEND; StylePackClassicChunk18 :: #string KSSEND + border-width: border; + opacity: 1; material: default; } @@ -2069,14 +2068,14 @@ Toggle { Toggle[role=Track] { padding-x: 46; padding-y: 24; +KSSEND; + +StylePackClassicChunk19 :: #string KSSEND gap: 2; radius: 999; opacity: 1; } -KSSEND; - -StylePackClassicChunk19 :: #string KSSEND Toggle[role=Label] { foreground: text; padding-x: 10; @@ -2189,11 +2188,11 @@ Checkbox[role=Box] { } Checkbox[role=Mark] { - background: accent; - foreground: accent-ink; KSSEND; StylePackClassicChunk20 :: #string KSSEND + background: accent; + foreground: accent-ink; border: accent-border; focus: accent; border-width: border; diff --git a/styles/classic.kss b/styles/classic.kss index 457019b..7054c24 100644 --- a/styles/classic.kss +++ b/styles/classic.kss @@ -270,9 +270,11 @@ NavigationBarItem:disabled { opacity: 0.45; } +// A tab bar is a row of labels over a divider. The selected tab's border is +// its indicator on the edge facing the content. TabBar { font-size: font; - background: surface; + background: transparent; foreground: text; border: border-soft; radius: radius; @@ -287,12 +289,12 @@ TabBar { Tab { font-size: font; - background: button; + background: transparent; foreground: text; - border: border; + border: transparent; focus: accent; radius: radius; - border-width: border; + border-width: 2; padding-x: space.2; padding-y: space.1; icon-size: 44; @@ -303,7 +305,6 @@ Tab { Tab:hover { background: button-hover; foreground: text; - border: border-hover; } Tab:pressed { @@ -312,15 +313,13 @@ Tab:pressed { } Tab:selected { - background: card; + background: transparent; foreground: accent; - border: accent-border; + border: accent; } Tab:disabled { - background: button-disabled; foreground: muted; - border: border-disabled; opacity: 0.55; } diff --git a/styles/lightfield.kss b/styles/lightfield.kss index 8cc34bc..debafdf 100644 --- a/styles/lightfield.kss +++ b/styles/lightfield.kss @@ -271,10 +271,12 @@ NavigationBarItem:disabled { opacity: 0.45; } +// A tab bar is a row of labels over a divider. The selected tab's border is +// its indicator on the edge facing the content. TabBar { font-size: font.md; - background: surface; - background-end: surface-end; + background: transparent; + background-end: transparent; foreground: text; border: border-soft; radius: radius; @@ -289,13 +291,13 @@ TabBar { Tab { font-size: font.md; - background: button; - background-end: button-end; - foreground: text; - border: border-soft; + background: transparent; + background-end: transparent; + foreground: muted; + border: transparent; focus: focus; radius: radius; - border-width: border; + border-width: 3; padding-x: space.3; padding-y: 8; icon-size: 44; @@ -306,18 +308,20 @@ Tab { Tab:hover { background: button-hover; background-end: button-hover-end; + foreground: text; } Tab:pressed { background: button-pressed; background-end: button-pressed-end; + foreground: text; } Tab:selected { - background: accent; - background-end: accent-end; - foreground: accent-ink; - border: accent-border; + background: transparent; + background-end: transparent; + foreground: text; + border: accent; } Tab:disabled { diff --git a/styles/material.kss b/styles/material.kss index 0b3e23d..0ce9eec 100644 --- a/styles/material.kss +++ b/styles/material.kss @@ -268,9 +268,11 @@ NavigationBarItem:disabled { opacity: 0.45; } +// A tab bar is a row of labels over a divider. The selected tab's border is +// its indicator on the edge facing the content. TabBar { font-size: font.md; - background: surface; + background: transparent; foreground: text; border: border-soft; radius: radius.md; @@ -288,8 +290,8 @@ Tab { foreground: muted; border: transparent; focus: focus; - radius: radius.lg; - border-width: border.none; + radius: radius.md; + border-width: 3; padding-x: space.3; padding-y: space.2; icon-size: 44; @@ -309,8 +311,8 @@ Tab:pressed { } Tab:selected { - background: accent; - foreground: accent-ink; + background: transparent; + foreground: text; border: accent; }