taffybar: restore single css entrypoint loading
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user