Fix formatting issues for some indicator boxes, respect font setting for separators

This commit is contained in:
eleksir
2024-01-21 02:15:45 +03:00
parent d47ce88c0d
commit 92bddadd9d
2 changed files with 88 additions and 20 deletions

View File

@@ -42,10 +42,18 @@ func UpdateVolumeInfo() {
}
SoundVolume = fmt.Sprintf(
"<span font='%s' size='%s'>%s</span><span font='%s' size='%s'>:%d%%</span>",
"<span color='%s' background='%s' font='%s' size='%s'>%s</span>",
Conf.SimpleVolumePa.Color,
Conf.SimpleVolumePa.Background,
Conf.SimpleVolumePa.SymbolFont,
Conf.SimpleVolumePa.SymbolFontSize,
Conf.SimpleVolumePa.Symbol,
)
SoundVolume += fmt.Sprintf(
"<span color='%s' background='%s' font='%s' size='%s'>:%d%%</span>",
Conf.SimpleVolumePa.Color,
Conf.SimpleVolumePa.Background,
Conf.SimpleVolumePa.Font,
Conf.SimpleVolumePa.FontSize,
int64(vol*100),
@@ -63,7 +71,7 @@ func UpdateVolumeInfo() {
return
}
// Rake update events
// Rake update events.
for range pulseUpdate {
vol, err = pa.Volume()