refactor: fix hardcoded values, remove println, remove doubles

This commit is contained in:
2026-08-26 15:16:09 +05:00
parent 4ff48bad0f
commit 03d4be8444
10 changed files with 513 additions and 415 deletions
+4 -4
View File
@@ -137,7 +137,7 @@ export component SettingsWindow inherits Window {
Rectangle {
width: 30px;
border-radius: 6px;
background: del-touch.has-hover ? #ef444420 : transparent;
background: del-touch.has-hover ? Theme.danger-soft : transparent;
del-touch := TouchArea {
mouse-cursor: pointer;
@@ -152,7 +152,7 @@ export component SettingsWindow inherits Window {
width: 16px;
height: 16px;
source: @image-url("../icons/trash.svg");
colorize: del-touch.has-hover ? #ef4444 : Theme.text-muted;
colorize: del-touch.has-hover ? Theme.danger : Theme.text-muted;
}
}
}
@@ -209,7 +209,7 @@ export component SettingsWindow inherits Window {
Rectangle {
width: 30px;
border-radius: 6px;
background: del2-touch.has-hover ? #ef444420 : transparent;
background: del2-touch.has-hover ? Theme.danger-soft : transparent;
del2-touch := TouchArea {
mouse-cursor: pointer;
@@ -224,7 +224,7 @@ export component SettingsWindow inherits Window {
width: 16px;
height: 16px;
source: @image-url("../icons/trash.svg");
colorize: del2-touch.has-hover ? #ef4444 : Theme.text-muted;
colorize: del2-touch.has-hover ? Theme.danger : Theme.text-muted;
}
}
}