add dark theme to astroid
This commit is contained in:
parent
a66777c41a
commit
ebe532daec
|
@ -1,5 +1,6 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
|
inherit (pkgs.uservars.theme) color;
|
||||||
|
|
||||||
downloadEmails = "${pkgs.offlineimap}/bin/offlineimap";
|
downloadEmails = "${pkgs.offlineimap}/bin/offlineimap";
|
||||||
afterSync = "${pkgs.notmuch}/bin/notmuch new";
|
afterSync = "${pkgs.notmuch}/bin/notmuch new";
|
||||||
|
@ -81,4 +82,27 @@ in
|
||||||
pollScript = downloadEmails;
|
pollScript = downloadEmails;
|
||||||
extraConfig = { };
|
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';
|
||||||
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue