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,
* but shrink the bar back down after the upstream sizing change.
*/
@import url("taffybar.css");
.taffy-box {
font-size: 10pt;

View File

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

View File

@@ -245,6 +245,9 @@ workspaceWindowIconGetter =
-- ** 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 = ["taffybar.css"]