fix size calc (workspace_apps)
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Simon Vieille 2022-08-30 22:45:33 +02:00
parent 2cd37bbda4
commit dc1ded5546
Signed by: deblan
GPG Key ID: 579388D585F70417
1 changed files with 4 additions and 4 deletions

View File

@ -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"