Skip to content

Commit 9b822f5

Browse files
fix: use themed G-Stack filter color
1 parent a70c771 commit 9b822f5

4 files changed

Lines changed: 13 additions & 3 deletions

File tree

src/renderer/src/components/layout/MainContent.browser.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,10 +541,10 @@ describe('MainContent SkillTypeFilter dropdown options', () => {
541541

542542
const gstackItem = screen.getByRole('menuitemradio', { name: /G-Stack/i })
543543
await expect.element(gstackItem).toBeInTheDocument()
544-
const dot = gstackItem.element().querySelector('.bg-sky-400')
544+
const dot = gstackItem.element().querySelector('.bg-gstack')
545545
expect(
546546
dot,
547-
'G-Stack menu item should contain a span with bg-sky-400',
547+
'G-Stack menu item should contain a span with bg-gstack',
548548
).not.toBeNull()
549549
})
550550

src/renderer/src/components/layout/MainContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const SKILL_TYPE_FILTER_OPTIONS: {
108108
{ value: 'all', label: 'All' },
109109
{ value: 'symlinked', label: 'Symlinked', dotClass: 'bg-success' },
110110
{ value: 'local', label: 'Local', dotClass: 'bg-emerald-400' },
111-
{ value: 'gstack', label: 'G-Stack', dotClass: 'bg-sky-400' },
111+
{ value: 'gstack', label: 'G-Stack', dotClass: 'bg-gstack' },
112112
{ value: 'orphan', label: 'Orphan', dotClass: 'bg-destructive' },
113113
]
114114

src/renderer/src/styles/globals.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@
6868
--input: oklch(0.3 var(--chroma-6) var(--theme-hue));
6969
--ring: oklch(0.7 var(--theme-chroma) var(--theme-hue));
7070

71+
/* G-Stack is a skill-type accent, so its dot follows the active theme
72+
* axis instead of using a fixed utility palette color. */
73+
--gstack: oklch(0.7 var(--theme-chroma) var(--theme-hue));
74+
7175
/* Success — fixed green regardless of theme. This is the "linked /
7276
* valid symlink" status color used across badges, heatmap cells,
7377
* and the coverage bar. Keeping it theme-invariant avoids the
@@ -111,6 +115,8 @@
111115
--input: oklch(0.88 var(--chroma-4) var(--theme-hue));
112116
--ring: oklch(0.5 var(--theme-chroma) var(--theme-hue));
113117

118+
--gstack: oklch(0.5 var(--theme-chroma) var(--theme-hue));
119+
114120
--success: oklch(0.55 0.17 155);
115121
--success-foreground: oklch(0.99 0.01 155);
116122
}

tailwind.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ const config: Config = {
4242
DEFAULT: 'var(--success)',
4343
foreground: 'var(--success-foreground)',
4444
},
45+
// Theme-axis accent used for the G-Stack skill-type filter dot.
46+
gstack: {
47+
DEFAULT: 'var(--gstack)',
48+
},
4549
border: 'var(--border)',
4650
input: 'var(--input)',
4751
ring: 'var(--ring)',

0 commit comments

Comments
 (0)