File tree 3 files changed +37
-2
lines changed
3 files changed +37
-2
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,7 @@ const defaultConfig = {
249
249
nativePanelBackground : {
250
250
enabled : true ,
251
251
opacity : 1.0 ,
252
+ shadow : true ,
252
253
} ,
253
254
stockPanelSettings : baseStockPanelSettings ,
254
255
configurationOverrides : {
Original file line number Diff line number Diff line change @@ -111,9 +111,29 @@ ColumnLayout {
111
111
112
112
RowLayout {
113
113
visible: keyName === " panel"
114
+ enabled: nativePanelBackgroundCheckbox .checked
114
115
115
116
Label {
116
- text: i18n (" Panel Opacity:" )
117
+ text: i18n (" Native panel background shadow:" )
118
+ }
119
+
120
+ CheckBox {
121
+ id: nativePanelBackgroundShadowCheckbox
122
+
123
+ checked: config .nativePanelBackground .shadow
124
+ onCheckedChanged: {
125
+ config .nativePanelBackground .shadow = checked;
126
+ updateConfig ();
127
+ }
128
+ }
129
+ }
130
+
131
+ RowLayout {
132
+ visible: keyName === " panel"
133
+ enabled: nativePanelBackgroundCheckbox .checked
134
+
135
+ Label {
136
+ text: i18n (" Native panel background opacity:" )
117
137
}
118
138
119
139
SpinBoxDecimal {
@@ -125,7 +145,6 @@ ColumnLayout {
125
145
config .nativePanelBackground .opacity = value;
126
146
updateConfig ();
127
147
}
128
- enabled: nativePanelBackgroundCheckbox .checked
129
148
}
130
149
131
150
Kirigami .ContextualHelpButton {
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ PlasmoidItem {
55
55
property bool isEnabled: plasmoid .configuration .isEnabled
56
56
property bool nativePanelBackgroundEnabled: (isEnabled ? cfg .nativePanelBackground .enabled : true ) || doPanelClickFix
57
57
property real nativePanelBackgroundOpacity: isEnabled ? cfg .nativePanelBackground .opacity : 1.0
58
+ property bool nativePanelBackgroundShadowEnabled: isEnabled ? cfg .nativePanelBackground .shadow : true
58
59
property var panelWidgets: []
59
60
property int panelWidgetsCount: panelWidgets? .length || 0
60
61
property real trayItemThikness: 20
@@ -1175,6 +1176,20 @@ PlasmoidItem {
1175
1176
when: (panelColorizer !== null && blurMask && panelColorizer? .hasRegions && (panelSettings .blurBehind || anyWidgetDoingBlur || anyTrayItemDoingBlur))
1176
1177
}
1177
1178
1179
+ Binding {
1180
+ target: panelElement
1181
+ property: " topShadowMargin"
1182
+ value: - panelView .height - 8
1183
+ when: ! nativePanelBackgroundShadowEnabled
1184
+ }
1185
+
1186
+ Binding {
1187
+ target: panelElement
1188
+ property: " bottomShadowMargin"
1189
+ value: - panelView .height - 8
1190
+ when: ! nativePanelBackgroundShadowEnabled
1191
+ }
1192
+
1178
1193
// The panel doesn't like having its spacings set to 0
1179
1194
// while adding/dragging widgets in edit mode, so temporary restore them
1180
1195
Binding {
You can’t perform that action at this time.
0 commit comments