nixos-config/user/qutebrowser/fonts.nix
2024-06-05 01:20:01 -03:00

36 lines
858 B
Nix

{ pkgs, ... }:
let
inherit (pkgs.uservars) font;
in
{
programs.qutebrowser.settings.fonts =
let
mkFont = name: size: "${toString size}px ${name}";
DEF_MONO = mkFont font.mono font.size.medium;
BIG_MONO = mkFont font.mono font.size.big;
DEF_INTER = mkFont font.interface font.size.medium;
BIG_INTER = mkFont font.interface font.size.big;
in
{
debug_console = BIG_INTER;
downloads = BIG_INTER;
hints = "bold " + BIG_MONO;
keyhint = BIG_INTER;
prompts = BIG_INTER;
statusbar = DEF_MONO;
completion = {
entry = BIG_INTER;
category = BIG_INTER;
};
messages = {
error = DEF_INTER;
info = DEF_INTER;
warning = DEF_INTER;
};
tabs = {
selected = BIG_INTER;
unselected = BIG_INTER;
};
};
}