treewide: move discord styling out of module
This commit is contained in:
parent
89f8637d03
commit
b3a03e5e9b
3 changed files with 10 additions and 9 deletions
|
@ -6,6 +6,7 @@
|
||||||
./media
|
./media
|
||||||
./terminal
|
./terminal
|
||||||
|
|
||||||
|
./discord.nix
|
||||||
./games.nix
|
./games.nix
|
||||||
./gnome.nix
|
./gnome.nix
|
||||||
./misc.nix
|
./misc.nix
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
config,
|
pkgs,
|
||||||
|
osConfig,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.local.style;
|
styleCfg = osConfig.local.style;
|
||||||
in {
|
in {
|
||||||
config.home-manager.sharedModules = lib.mkIf cfg.enable [
|
config = lib.mkIf osConfig.local.profiles.desktop.enable {
|
||||||
{
|
home.packages = [pkgs.vesktop];
|
||||||
xdg.configFile."vesktop/themes/midnight-base16.css".text = with cfg.scheme.palette; ''
|
xdg.configFile."vesktop/themes/midnight-base16.css".text = with styleCfg.scheme.palette;
|
||||||
|
lib.mkIf styleCfg.enable ''
|
||||||
/**
|
/**
|
||||||
* @name Midnight-base16
|
* @name Midnight-base16
|
||||||
* @description A dark, rounded discord theme. Updated to use base16 colors.
|
* @description A dark, rounded discord theme. Updated to use base16 colors.
|
||||||
|
@ -30,7 +32,7 @@ in {
|
||||||
--font: 'gg sans';
|
--font: 'gg sans';
|
||||||
|
|
||||||
/* top left corner text */
|
/* top left corner text */
|
||||||
--corner-text: '${cfg.scheme.name}';
|
--corner-text: '${styleCfg.scheme.name}';
|
||||||
|
|
||||||
/* color of status indicators and window controls */
|
/* color of status indicators and window controls */
|
||||||
--online-indicator: ${base0B}; /* change to #23a55a for default green */
|
--online-indicator: ${base0B}; /* change to #23a55a for default green */
|
||||||
|
@ -108,6 +110,5 @@ in {
|
||||||
fill: var(--text-0) !important;
|
fill: var(--text-0) !important;
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
}
|
};
|
||||||
];
|
|
||||||
}
|
}
|
|
@ -19,7 +19,6 @@
|
||||||
playerctl
|
playerctl
|
||||||
proton-pass
|
proton-pass
|
||||||
simple-scan
|
simple-scan
|
||||||
vesktop
|
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue