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)
|
||||
|
||||
size := (len(title) + 2) * 4
|
||||
maxX := minX + size
|
||||
isClicked := (x > minX && x < maxX)
|
||||
|
||||
if len(title) > 30 {
|
||||
title = fmt.Sprintf("%s…", title[0:29])
|
||||
}
|
||||
|
||||
size := (len(title) + 4) * 6
|
||||
maxX := minX + size
|
||||
isClicked := (x > minX && x < maxX)
|
||||
|
||||
if app.Urgent {
|
||||
foreground = "#ffffff"
|
||||
background = "#07c0d4"
|
||||
|
|
Loading…
Reference in a new issue