fix(globals.css, models-selection-panel): update brand color and improve button styles for active state

This commit is contained in:
Anish Sarkar 2026-07-25 01:39:26 +05:30
parent fe1bee14ed
commit f6836cf11f
2 changed files with 10 additions and 4 deletions

View file

@ -54,7 +54,7 @@
--sidebar-ring: oklch(0.708 0 0); --sidebar-ring: oklch(0.708 0 0);
--main-panel: var(--panel); --main-panel: var(--panel);
--syntax-bg: #f5f5f5; --syntax-bg: #f5f5f5;
--brand: oklch(0.623 0.214 259.815); --brand: oklch(0.546 0.245 262.881);
--highlight: oklch(0.852 0.199 91.936); --highlight: oklch(0.852 0.199 91.936);
} }
@ -103,7 +103,7 @@ html[data-surfsense-auth-type="LOCAL"] .runtime-auth-google {
--sidebar-ring: oklch(0.439 0 0); --sidebar-ring: oklch(0.439 0 0);
--main-panel: var(--panel); --main-panel: var(--panel);
--syntax-bg: #1e1e1e; --syntax-bg: #1e1e1e;
--brand: oklch(0.707 0.165 254.624); --brand: oklch(0.546 0.245 262.881);
--highlight: oklch(0.852 0.199 91.936); --highlight: oklch(0.852 0.199 91.936);
} }

View file

@ -99,11 +99,17 @@ export function ModelsSelectionPanel({
type="button" type="button"
variant="secondary" variant="secondary"
size="sm" size="sm"
className={`h-7 rounded-full px-3 text-xs ${isActive ? "" : "opacity-80"}`} className={`h-7 rounded-full px-3 text-xs ${
isActive
? "bg-brand text-white hover:bg-brand/90"
: "opacity-80"
}`}
onClick={() => setModelFilter(isActive ? null : filter.key)} onClick={() => setModelFilter(isActive ? null : filter.key)}
> >
{filter.label} {filter.label}
<span className="ml-1 text-muted-foreground">{count}</span> <span className={`ml-1 ${isActive ? "text-white/80" : "text-muted-foreground"}`}>
{count}
</span>
</Button> </Button>
); );
})} })}