nixcord: use new template format (#852)
Fixes: eb5f817567 ("{vencord,vesktop}: support fonts without IFD (#846)")
Link: https://github.com/danth/stylix/pull/852
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
parent
7f0154c371
commit
4af2686c1c
1 changed files with 9 additions and 8 deletions
|
|
@ -5,11 +5,12 @@
|
|||
...
|
||||
}:
|
||||
let
|
||||
themeFile = config.lib.stylix.colors {
|
||||
template = ../vencord/template.mustache;
|
||||
extension = ".css";
|
||||
};
|
||||
themeFileName = "stylix.theme.css";
|
||||
template =
|
||||
let
|
||||
inherit (config.lib.stylix) colors;
|
||||
inherit (config.stylix) fonts;
|
||||
in
|
||||
import ../vencord/template.nix { inherit colors fonts; };
|
||||
cfg = config.stylix.targets.nixcord;
|
||||
in
|
||||
{
|
||||
|
|
@ -26,15 +27,15 @@ in
|
|||
in
|
||||
lib.mkMerge [
|
||||
(lib.mkIf nixcord.discord.enable {
|
||||
"Vencord/themes/stylix.theme.css".source = themeFile;
|
||||
"Vencord/themes/stylix.theme.css".text = template;
|
||||
})
|
||||
|
||||
(lib.mkIf nixcord.vesktop.enable {
|
||||
"vesktop/themes/stylix.theme.css".source = themeFile;
|
||||
"vesktop/themes/stylix.theme.css".text = template;
|
||||
})
|
||||
];
|
||||
|
||||
programs.nixcord.config.enabledThemes = [ themeFileName ];
|
||||
programs.nixcord.config.enabledThemes = [ "stylix.theme.css" ];
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue