This commit is contained in:
Yuri Zamyatin 2025-06-27 18:10:35 +00:00
parent 3fc6f3e225
commit ec4433827a
2 changed files with 12 additions and 6 deletions

View File

@ -3,18 +3,23 @@
<fontconfig>
<alias>
<family>serif</family>
<prefer><family>Roboto</family></prefer>
<prefer><family>{{ .theme.font.name_regular }}</family></prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer><family>Roboto</family></prefer>
<prefer><family>{{ .theme.font.name_regular }}</family></prefer>
</alias>
<alias>
<family>monospace</family>
<prefer><family>Roboto Mono</family></prefer>
<prefer><family>{{ .theme.font.name_mono }}</family></prefer>
</alias>
<alias>
<family>system-ui</family>
<prefer><family>Roboto</family></prefer>
<prefer><family>{{ .theme.font.name_regular }}</family></prefer>
</alias>
<match target="pattern">
<edit name="size" mode="append">
<double>{{ .theme.font.size_base_pt }}</double>
</edit>
</match>
</fontconfig>

View File

@ -1,8 +1,9 @@
format=<span size="{{ math.Add .theme.font.size_base_pt .theme.font.size_step_pt }}pt" weight="bold">%s - %a</span>\n%b
font={{ .theme.font.name_regular }} {{ .theme.font.size_base_pt }}
format=<span size="{{ .theme.font.size_base_pt }}pt" weight="bold">%s - %a</span>\n%b
font={{ .theme.font.name_regular }} {{ math.Sub .theme.font.size_base_pt .theme.font.size_step_pt }}
background-color=#{{ .theme.color.bg_accent_dark }}{{ math.Mul .theme.opacity.high 255 | conv.ToInt64 | printf "%02X" }}
border-size=2
border-radius=4
icon-border-radius=4
border-color=#{{ .theme.color.fg_accent }}{{ math.Mul .theme.opacity.med 255 | conv.ToInt64 | printf "%02X" }}
padding=5,10
width=600