taffybar: restore single css entrypoint loading

This commit is contained in:
2026-04-12 14:57:22 -07:00
committed by Kat Huang
parent 04baba4433
commit 49faa9376f
3 changed files with 9 additions and 3 deletions

View File

@@ -3,6 +3,7 @@
/* Host-specific density tweaks for ryzen-shine. Keep the same visual style, /* Host-specific density tweaks for ryzen-shine. Keep the same visual style,
* but shrink the bar back down after the upstream sizing change. * but shrink the bar back down after the upstream sizing change.
*/ */
@import url("taffybar.css");
.taffy-box { .taffy-box {
font-size: 10pt; font-size: 10pt;

View File

@@ -4,9 +4,11 @@
/* Widget/layout styling for taffybar. /* Widget/layout styling for taffybar.
* *
* This file is the single CSS entrypoint for the shared bar theme. Supporting * Keep this as the shared CSS entrypoint: GTK's `load_from_path` replaces the
* stylesheets are pulled in via `@import` so GTK sees one user stylesheet per * previous stylesheet contents, so `cssPaths` must resolve to a single file per
* host rather than several separately loaded files with fragile precedence. * host. Supporting stylesheets are pulled in via `@import` so GTK sees one
* user stylesheet per host rather than several separately loaded files with
* fragile precedence.
*/ */
/* Base typography + foreground color for the bar itself. /* Base typography + foreground color for the bar itself.

View File

@@ -245,6 +245,9 @@ workspaceWindowIconGetter =
-- ** Host Overrides -- ** Host Overrides
-- NOTE: Keep `cssPaths` to a single entrypoint file per host. GTK's
-- `cssProviderLoadFromPath` clears the provider before loading, so handing
-- Taffybar multiple files here causes only the last file to take effect.
defaultCssFiles :: [FilePath] defaultCssFiles :: [FilePath]
defaultCssFiles = ["taffybar.css"] defaultCssFiles = ["taffybar.css"]