fix size calc (workspace_apps)
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
2cd37bbda4
commit
dc1ded5546
|
@ -136,14 +136,14 @@ func main() {
|
||||||
|
|
||||||
title := strings.ToUpper(app.WindowProperties.Title)
|
title := strings.ToUpper(app.WindowProperties.Title)
|
||||||
|
|
||||||
size := (len(title) + 2) * 4
|
|
||||||
maxX := minX + size
|
|
||||||
isClicked := (x > minX && x < maxX)
|
|
||||||
|
|
||||||
if len(title) > 30 {
|
if len(title) > 30 {
|
||||||
title = fmt.Sprintf("%s…", title[0:29])
|
title = fmt.Sprintf("%s…", title[0:29])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
size := (len(title) + 4) * 6
|
||||||
|
maxX := minX + size
|
||||||
|
isClicked := (x > minX && x < maxX)
|
||||||
|
|
||||||
if app.Urgent {
|
if app.Urgent {
|
||||||
foreground = "#ffffff"
|
foreground = "#ffffff"
|
||||||
background = "#07c0d4"
|
background = "#07c0d4"
|
||||||
|
|
Loading…
Reference in a new issue