@@ -9,42 +9,43 @@ import Quickshell.Services.UPower
99import QtQuick
1010import QtQuick.Layouts
1111
12- import qs.components
12+ import "../" // Settings.qml
13+ import "components"
1314
1415PanelWindow {
1516 id: root
1617
17- property color colBg: " #aa000000"
18- property color colFg: " #b0b4bc"
19- property color colMuted: " #aa4e4e4e"
20- property color colDark: Qt .darker (colMuted, 1.5 )
21- property color colCyan: " #0db9d7"
22- property color colRed: " #cc0000"
23- property color colBlue: " #7aa2f7"
24- property color colYellow: " #ffd700"
25- property color colGreen: " #9ece6a"
26- property color colPurple: " #bf00ff"
27-
28- property string ws01: " "
29- property string ws02: " "
30- property string ws03: " "
31- property string ws04: " "
32- property string ws05: " "
33- property string ws06: " "
34- property string ws07: " "
35- property string ws08: " "
36- property string ws09: " "
37- property string ws10: " "
38-
39- property string fontFamily: " Hack Nerd Font"
40-
41- property int fontSize: 14
42- property var screen : Quickshell .screens [0 ]
43- property int cornerRadius: 8
44- property int barHeight: 30
45- property int extraPadding: 16
46- property int animDuration: 250
18+ property color colBg: Settings .colors .bg ?? " #aa000000"
19+ property color colFg: Settings .colors .fg ?? " #b0b4bc"
20+ property color colMuted: Settings .colors .muted ?? " #aa4e4e4e"
21+ property color colDark: Settings .colors .dark ?? Qt .darker (colMuted, 1.5 )
22+ property color colCyan: Settings .colors .cyan ?? " #0db9d7"
23+ property color colRed: Settings .colors .red ?? " #cc0000"
24+ property color colBlue: Settings .colors .blue ?? " #7aa2f7"
25+ property color colYellow: Settings .colors .yellow ?? " #ffd700"
26+ property color colGreen: Settings .colors .green ?? " #9ece6a"
27+ property color colPurple: Settings .colors .purple ?? " #bf00ff"
28+
29+ property string ws01: Settings .workspaces .one ?? " "
30+ property string ws02: Settings .workspaces .two ?? " "
31+ property string ws03: Settings .workspaces .three ?? " "
32+ property string ws04: Settings .workspaces .four ?? " "
33+ property string ws05: Settings .workspaces .five ?? " "
34+ property string ws06: Settings .workspaces .six ?? " "
35+ property string ws07: Settings .workspaces .seven ?? " "
36+ property string ws08: Settings .workspaces .eight ?? " "
37+ property string ws09: Settings .workspaces .tine ?? " "
38+ property string ws10: Settings .workspaces .ten ?? " "
39+
40+ property string fontFamily: Settings .font ?? " Hack Nerd Font"
41+ property int fontSize: Settings .fontSize ?? 14
42+
43+ property int cornerRadius: Settings .radius ?? 8
44+ property int barHeight: Settings .barHeight ?? 30
45+ property int extraPadding: Settings .barExtraPadding ?? 16
46+ property int animDuration: Settings .duration ?? 250
4747
48+ property var screen : Quickshell .screens [0 ]
4849 property bool ecoMode: false
4950
5051 implicitWidth: screen .width - extraPadding
0 commit comments