mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
gtk: use font.size option in dconf (#1920)
Allow usage of font.size for the GTK interface font in dconf.
This commit is contained in:
parent
56f5f41ed4
commit
17a10287d2
1 changed files with 6 additions and 2 deletions
|
@ -138,8 +138,12 @@ in {
|
|||
gtk-icon-theme-name = cfg.iconTheme.name;
|
||||
};
|
||||
|
||||
dconfIni = optionalAttrs (cfg.font != null) { font-name = cfg.font.name; }
|
||||
// optionalAttrs (cfg.theme != null) { gtk-theme = cfg.theme.name; }
|
||||
dconfIni = optionalAttrs (cfg.font != null) {
|
||||
font-name = let
|
||||
fontSize =
|
||||
optionalString (cfg.font.size != null) " ${toString cfg.font.size}";
|
||||
in "${cfg.font.name}" + fontSize;
|
||||
} // optionalAttrs (cfg.theme != null) { gtk-theme = cfg.theme.name; }
|
||||
// optionalAttrs (cfg.iconTheme != null) {
|
||||
icon-theme = cfg.iconTheme.name;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue