Setting : Add Foot forceWhite font switch.

This commit is contained in:
Dmitry Voronin 2024-04-09 05:00:59 +03:00
parent 7b20a0429c
commit c927e8ff63
2 changed files with 9 additions and 3 deletions

View file

@ -48,6 +48,7 @@
font = {
step = "1";
dpi = "yes";
forceWhite = false;
};
};

View file

@ -1,4 +1,10 @@
{ style, setting, util, ... }: {
{ style, setting, util, ... }: let
foreground = if setting.foot.font.forceWhite then ''
foreground=ffffff
'' else ''
foreground=${style.color.fg.light}
'';
in {
config = util.trimTabs ''
font=${style.font.monospace.name}:size=${toString(style.font.size.terminal)}
# font-bold=${style.font.monospace.name}:size=${toString(style.font.size.terminal)}
@ -10,6 +16,5 @@
[colors]
alpha=${toString(style.opacity.terminal)}
background=${style.color.bg.dark}
foreground=${style.color.fg.light}
'';
'' + foreground;
}