use bool for floatingInternalGapIsForced

--do not use CheckBox three states in order
to make things simpler for the user
work/spdx
Michail Vourlakos 4 years ago
parent 73a3e92740
commit ddb7dfdf5e

@ -55,9 +55,9 @@
<default>0</default>
<label>this is a percentage value</label>
</entry>
<entry name="floatingInternalGapIsForced" type="Int">
<default>1</default>
<label>floating internal gap is forced and provided to applets and any other view specific user interaction. "1" stands for Partially Checked (Auto)</label>
<entry name="floatingInternalGapIsForced" type="Bool">
<default>true</default>
<label>floating internal gap is forced and provided to applets and any other view specific user interaction</label>
</entry>
<entry name="hideFloatingGapForMaximized" type="Bool">
<default>false</default>

@ -131,17 +131,7 @@ Item {
|| latteView.windowsTracker.currentScreen.activeWindowTouchingEdge
|| hasExpandedApplet)
property bool floatingInternalGapIsForced: {
if (plasmoid.configuration.floatingInternalGapIsForced === Qt.UnChecked) {
return false;
} else if (plasmoid.configuration.floatingInternalGapIsForced === Qt.Checked) {
return true;
} else if (plasmoid.configuration.floatingInternalGapIsForced === Qt.PartiallyChecked /*Auto*/) {
return viewTypeInQuestion === LatteCore.Types.PanelView ? false : true;
}
return true;
}
property bool floatingInternalGapIsForced: plasmoid.configuration.floatingInternalGapIsForced
property bool forceSolidPanel: (latteView && latteView.visibility
&& LatteCore.WindowSystem.compositingActive

@ -861,12 +861,11 @@ PlasmaComponents.Page {
LatteComponents.CheckBox {
Layout.maximumWidth: dialog.optionsWidth
text: i18n("Always use floating gap for user interaction")
tooltip: i18n("Floating gap is always used from applets and any relevant user interaction when \nthat option is enabled. Default option is auto selecting that behavior.")
partiallyCheckedEnabled: true
tooltip: i18n("Floating gap is always used for applets and window interaction")
value: plasmoid.configuration.floatingInternalGapIsForced
onClicked: {
plasmoid.configuration.floatingInternalGapIsForced = checkedState;
plasmoid.configuration.floatingInternalGapIsForced = !plasmoid.configuration.floatingInternalGapIsForced;
}
}

@ -98,7 +98,7 @@ Grid {
plasmoid.configuration.plasmaBackgroundForPopups = false;
//! Floating
plasmoid.configuration.floatingInternalGapIsForced = Qt.PartiallyChecked;
plasmoid.configuration.floatingInternalGapIsForced = true;
}
}
}
@ -143,7 +143,7 @@ Grid {
plasmoid.configuration.plasmaBackgroundForPopups = true;
//! Floating
plasmoid.configuration.floatingInternalGapIsForced = Qt.PartiallyChecked;
plasmoid.configuration.floatingInternalGapIsForced = false;
//! Custom Background that overrides Plasma Theme metrics
plasmoid.configuration.backgroundRadius = -1;

@ -3,6 +3,7 @@ activityId=
byPassWM=false
dockWindowBehavior=true
enableKWinEdges=true
floatingInternalGapIsForced=false
formfactor=2
immutability=1
isPreferredForShortcuts=false

Loading…
Cancel
Save