File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ PlasmoidItem {
64
64
}
65
65
66
66
property var unifiedBackgroundTracker: []
67
+ property bool doPanelLengthFix: false
67
68
68
69
property var cfg: {
69
70
try {
@@ -1122,6 +1123,39 @@ PlasmoidItem {
1122
1123
Utils .toggleTransparency (containmentItem, nativePanelBackgroundEnabled)
1123
1124
}
1124
1125
1126
+ // HACK: change panelLayout spacing on startup to trigger a length reload
1127
+ // BUG: https://bugs.kde.org/show_bug.cgi?id=489086
1128
+ // https://github.com/luisbocanegra/plasma-panel-colorizer/issues/100
1129
+
1130
+ onPanelLayoutChanged: {
1131
+ if (! panelLayout) return
1132
+ panelFixTimer .start ()
1133
+ }
1134
+
1135
+ Timer {
1136
+ id: panelFixTimer
1137
+ repeat: false
1138
+ interval: 1000
1139
+ onTriggered: {
1140
+ doPanelLengthFix = true
1141
+ doPanelLengthFix = false
1142
+ }
1143
+ }
1144
+
1145
+ Binding {
1146
+ target: panelLayout
1147
+ property: " columnSpacing"
1148
+ value: 0
1149
+ when: doPanelLengthFix
1150
+ }
1151
+
1152
+ Binding {
1153
+ target: panelLayout
1154
+ property: " rowSpacing"
1155
+ value: 0
1156
+ when: doPanelLengthFix
1157
+ }
1158
+
1125
1159
onNativePanelBackgroundEnabledChanged: {
1126
1160
if (! containmentItem) return
1127
1161
Utils .toggleTransparency (containmentItem, nativePanelBackgroundEnabled)
You can’t perform that action at this time.
0 commit comments