deprecate stylix, fix minor gripes and bugs
This commit is contained in:
parent
6b492bad2f
commit
fb1ad8d919
42 changed files with 951 additions and 688 deletions
11
home/modules/theme/cursor.nix
Normal file
11
home/modules/theme/cursor.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ theme, ... }:
|
||||
|
||||
{
|
||||
home.pointerCursor = {
|
||||
name = theme.cursor.name;
|
||||
package = theme.cursor.package;
|
||||
size = theme.cursor.size;
|
||||
gtk.enable = true;
|
||||
x11.enable = true;
|
||||
};
|
||||
}
|
||||
22
home/modules/theme/dconf.nix
Normal file
22
home/modules/theme/dconf.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ theme, ... }:
|
||||
|
||||
let
|
||||
fonts = theme.fonts;
|
||||
fontSize = toString fonts.sizes.applications;
|
||||
terminalFontSize = toString fonts.sizes.terminal;
|
||||
in
|
||||
{
|
||||
dconf = {
|
||||
enable = true;
|
||||
settings."org/gnome/desktop/interface" = {
|
||||
color-scheme = "prefer-dark";
|
||||
cursor-size = theme.cursor.size;
|
||||
cursor-theme = theme.cursor.name;
|
||||
document-font-name = "${fonts.serif.name} 13";
|
||||
font-name = "${fonts.sansSerif.name} ${fontSize}";
|
||||
gtk-theme = theme.gtk.theme.name;
|
||||
icon-theme = theme.icons.dark;
|
||||
monospace-font-name = "${fonts.monospace.name} ${terminalFontSize}";
|
||||
};
|
||||
};
|
||||
}
|
||||
8
home/modules/theme/default.nix
Normal file
8
home/modules/theme/default.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
imports = [
|
||||
./cursor.nix
|
||||
./dconf.nix
|
||||
./fonts.nix
|
||||
./gtk.nix
|
||||
];
|
||||
}
|
||||
13
home/modules/theme/fonts.nix
Normal file
13
home/modules/theme/fonts.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ theme, ... }:
|
||||
|
||||
{
|
||||
fonts.fontconfig = {
|
||||
enable = true;
|
||||
defaultFonts = {
|
||||
emoji = [ theme.fonts.emoji.name ];
|
||||
monospace = [ theme.fonts.monospace.name ];
|
||||
sansSerif = [ theme.fonts.sansSerif.name ];
|
||||
serif = [ theme.fonts.serif.name ];
|
||||
};
|
||||
};
|
||||
}
|
||||
24
home/modules/theme/gtk.nix
Normal file
24
home/modules/theme/gtk.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ theme, ... }:
|
||||
|
||||
{
|
||||
gtk = {
|
||||
enable = true;
|
||||
font = {
|
||||
name = theme.fonts.sansSerif.name;
|
||||
package = theme.fonts.sansSerif.package;
|
||||
size = theme.fonts.sizes.applications;
|
||||
};
|
||||
theme = theme.gtk.theme;
|
||||
iconTheme = {
|
||||
name = theme.icons.dark;
|
||||
package = theme.icons.package;
|
||||
};
|
||||
cursorTheme = {
|
||||
name = theme.cursor.name;
|
||||
package = theme.cursor.package;
|
||||
size = theme.cursor.size;
|
||||
};
|
||||
gtk3.extraConfig.gtk-application-prefer-dark-theme = 1;
|
||||
gtk4.extraConfig.gtk-application-prefer-dark-theme = 1;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue