diff --git a/settings/quickshell.nix b/settings/quickshell.nix index bf03f3a..e6ecabb 100644 --- a/settings/quickshell.nix +++ b/settings/quickshell.nix @@ -18,6 +18,7 @@ let wallsJson = builtins.toJSON config.fred.theming.walls; defaultWall = config.fred.theming.defaultWall; themeApply = config.fred.theming.apply; + monoIcons = config.fred.theming.monoIcons; in { config = lib.mkIf (lib.elem config.networking.hostName [ "FredOS-Gaming" "FredOS-Macbook" ]) { @@ -1312,6 +1313,10 @@ in readonly property string wxFetch: "${wxFetchScript}" readonly property string xdgOpen: "${pkgs.xdg-utils}/bin/xdg-open" readonly property string themeApply: "${themeApply}" + // Prefix of the monochrome app-icon tree. AppIcon tests a + // resolved icon path against this to decide whether it may + // be tinted — see the component for why that is not blanket. + readonly property string monoIconDir: "${monoIcons}" } ''; }; @@ -1730,6 +1735,53 @@ in // act on. Stroke weight is fixed by the design. } + // ── AppIcon: an application icon in a square slot, tinted to + // the wallpaper's text colour when — and only when — it came + // from the monochrome set. + // + // YAMIS declares FollowsColorScheme=true, which is a KDE key: + // only Plasma rewrites the