Fix rendering in main.go - separators never handled in formally correct way.
This commit is contained in:
@@ -181,6 +181,8 @@ func main() {
|
|||||||
for num, app := range Conf.Apps {
|
for num, app := range Conf.Apps {
|
||||||
var b lib.I3BarOutBlock
|
var b lib.I3BarOutBlock
|
||||||
|
|
||||||
|
b.FullText = app.FullText
|
||||||
|
|
||||||
if num == 0 {
|
if num == 0 {
|
||||||
b.FullText = fmt.Sprintf(
|
b.FullText = fmt.Sprintf(
|
||||||
"<span color='%s' background='%s' font='%s' size='%s'>%s</span>",
|
"<span color='%s' background='%s' font='%s' size='%s'>%s</span>",
|
||||||
@@ -189,13 +191,11 @@ func main() {
|
|||||||
Conf.AppButtons.Separator.Left.Font,
|
Conf.AppButtons.Separator.Left.Font,
|
||||||
Conf.AppButtons.Separator.Left.FontSize,
|
Conf.AppButtons.Separator.Left.FontSize,
|
||||||
Conf.AppButtons.Separator.Left.Symbol,
|
Conf.AppButtons.Separator.Left.Symbol,
|
||||||
)
|
) + b.FullText
|
||||||
}
|
}
|
||||||
|
|
||||||
b.FullText = app.FullText
|
|
||||||
|
|
||||||
if num == len(Conf.Apps)-1 {
|
if num == len(Conf.Apps)-1 {
|
||||||
b.FullText = fmt.Sprintf(
|
b.FullText += fmt.Sprintf(
|
||||||
"<span color='%s' background='%s' font='%s' size='%s'>%s</span>",
|
"<span color='%s' background='%s' font='%s' size='%s'>%s</span>",
|
||||||
Conf.AppButtons.Separator.Right.Color,
|
Conf.AppButtons.Separator.Right.Color,
|
||||||
Conf.AppButtons.Separator.Right.Background,
|
Conf.AppButtons.Separator.Right.Background,
|
||||||
|
|||||||
Reference in New Issue
Block a user