Explicitly set color and background attributes for all <span> tags

This commit is contained in:
eleksir
2024-01-16 21:59:04 +03:00
parent 95356ed547
commit 5770f9106e
3 changed files with 65 additions and 25 deletions

View File

@@ -68,10 +68,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),