diff options
| author | Caroline Larimore <caroline@larimo.re> | 2024-05-10 19:48:45 -0700 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2024-05-10 19:48:45 -0700 |
| commit | 6eda4acc251fed0afbf5f1a85a63e321d8234799 (patch) | |
| tree | 0be125628339545e8a11cd29a994271bc16f55b3 /modules/home/discord.nix | |
Initial Commit
Diffstat (limited to 'modules/home/discord.nix')
| -rw-r--r-- | modules/home/discord.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/modules/home/discord.nix b/modules/home/discord.nix new file mode 100644 index 0000000..f303f1f --- /dev/null +++ b/modules/home/discord.nix @@ -0,0 +1,31 @@ +{ config, lib, ... }: + +let + conversion = import ../../util/color-conversion.nix { inherit lib; }; +in { + xdg.configFile."Vencord/themes/nix.theme.css".text = let c = config.theme.colors; in '' + @import url(https://mwittrien.github.io/BetterDiscordAddons/Themes/BasicBackground/BasicBackground.css); + + :root { + --transparencycolor: 0, 0, 0; + --transparencyalpha: 0.0; + --messagetransparency: 0.0; + --guildchanneltransparency: 0.15; + --chatinputtransparency: 0.0; + --memberlisttransparency: 0.15; + --settingsicons: 0; + --background: rgba(0, 0, 0, 0.8); + --backdrop: rgba(0, 0, 0, 0); + --version1_0_5: none; + + --accentcolor: ${conversion.hexToRGBString ", " c.accent}; + + --textbrightest: ${conversion.hexToRGBString ", " c.fg0}; + --textbrighter: ${conversion.hexToRGBString ", " c.fg1}; + --textbright: ${conversion.hexToRGBString ", " c.fg2}; + --textdark: ${conversion.hexToRGBString ", " c.fg3}; + --textdarker: ${conversion.hexToRGBString ", " c.fg4}; + --textdarkest: ${conversion.hexToRGBString ", " c.brightBlack}; + } + ''; +} |