1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-12 00:58:18 +03:00

provide live editing for !compositing

This commit is contained in:
Michail Vourlakos 2020-07-11 11:00:52 +03:00
parent 334a40fff1
commit 673882f966
4 changed files with 4 additions and 4 deletions

View File

@ -52,7 +52,7 @@
#define CANVASWINDOWINTERVAL 50
#define PRIMARYWINDOWINTERVAL 250
#define SECONDARYWINDOWINTERVAL 250
#define SECONDARYWINDOWINTERVAL 200
#define SLIDEOUTINTERVAL 400
namespace Latte {

View File

@ -220,7 +220,7 @@ Item {
readonly property bool hasUserSpecifiedBackground: (latteView && latteView.layout && latteView.layout.background.startsWith("/")) ?
true : false
readonly property bool inConfigureAppletsMode: root.editMode && (plasmoid.configuration.inConfigureAppletsMode || !LatteCore.WindowSystem.compositingActive)
readonly property bool inConfigureAppletsMode: root.editMode && plasmoid.configuration.inConfigureAppletsMode
readonly property bool parabolicEffectEnabled: parabolic.factor.zoom>1 && !inConfigureAppletsMode
property bool dockIsShownCompletely: !(dockIsHidden || inSlidingIn || inSlidingOut)

View File

@ -128,7 +128,7 @@ Item {
icon: SettingsControls.RearrangeIcon{}
onPressedChanged: {
if (LatteCore.WindowSystem.compositingActive && pressed) {
if (pressed) {
plasmoid.configuration.inConfigureAppletsMode = !plasmoid.configuration.inConfigureAppletsMode;
}
}

View File

@ -185,7 +185,7 @@ PlasmaComponents.Page {
Layout.minimumWidth: dialog.optionsWidth
Layout.maximumWidth: Layout.minimumWidth
spacing: units.smallSpacing
enabled: plasmoid.configuration.animationsEnabled
enabled: LatteCore.WindowSystem.compositingActive && plasmoid.configuration.animationsEnabled
PlasmaComponents.Label {
text: i18n("Zoom On Hover")