diff --git a/user/email.nix b/user/email.nix index 57f4dd1..7b1ce91 100644 --- a/user/email.nix +++ b/user/email.nix @@ -1,5 +1,6 @@ -{ pkgs, ... }: +{ pkgs, lib, ... }: let + inherit (pkgs.uservars.theme) color; downloadEmails = "${pkgs.offlineimap}/bin/offlineimap"; afterSync = "${pkgs.notmuch}/bin/notmuch new"; @@ -81,4 +82,27 @@ in pollScript = downloadEmails; extraConfig = { }; }; + + xdg.configFile = lib.mkIf (color.type == "dark") { + "astroid/ui/thread-view.scss".text = '' + /* ui-version: 5 (do not change when modifying theme for yourself) */ + + * { + color: #ffffff !important; + background-color: #181818 !important; + } + + @import '/nix/store/g46fiqmjirak92ah3dc4nafmm8blmfab-astroid-0.16/share/astroid/ui/thread-view.scss'; + ''; + "astroid/ui/part.scss".text = '' + /* ui-version: 5 (do not change when modifying theme for yourself) */ + + * { + color: #eee !important; + background-color: #202020 !important; + } + + // @import '/nix/store/g46fiqmjirak92ah3dc4nafmm8blmfab-astroid-0.16/share/astroid/ui/part.scss'; + ''; + }; }