From ebe532daecf81e1154058628f84288b5e7dee3d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Wed, 25 Jan 2023 12:00:01 -0300 Subject: [PATCH] add dark theme to astroid --- user/email.nix | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) 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'; + ''; + }; }