mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
make expanded popup work more than once
This commit is contained in:
parent
40b02bf440
commit
fde492b369
1 changed files with 2 additions and 9 deletions
|
|
@ -61,16 +61,15 @@ Item {
|
||||||
}
|
}
|
||||||
height: units.smallSpacing
|
height: units.smallSpacing
|
||||||
color: PlasmaCore.ColorScope.highlightColor
|
color: PlasmaCore.ColorScope.highlightColor
|
||||||
visible: plasmoid.expanded
|
visible: plasmoid.formFactor != PlasmaCore.Types.Planar && plasmoid.expanded
|
||||||
}
|
}
|
||||||
|
|
||||||
PlasmaCore.FrameSvgItem {
|
PlasmaCore.FrameSvgItem {
|
||||||
id: appletParent
|
id: appletParent
|
||||||
imagePath: "widgets/background"
|
imagePath: "widgets/background"
|
||||||
//used only indesktop mode, not panel
|
//used only indesktop mode, not panel
|
||||||
visible: plasmoid.formFactor == PlasmaCore.Types.Planar
|
visible: plasmoid.expanded && plasmoid.formFactor == PlasmaCore.Types.Planar
|
||||||
z: 99
|
z: 99
|
||||||
opacity: plasmoid.expanded ? 1 : 0
|
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: units.gridUnit * 20 - units.iconSizes.medium
|
height: units.gridUnit * 20 - units.iconSizes.medium
|
||||||
|
|
@ -85,12 +84,6 @@ Item {
|
||||||
z: -1
|
z: -1
|
||||||
onClicked: plasmoid.expanded = false;
|
onClicked: plasmoid.expanded = false;
|
||||||
}
|
}
|
||||||
Behavior on opacity {
|
|
||||||
OpacityAnimator {
|
|
||||||
duration: units.longDuration
|
|
||||||
easing.type: Easing.InOutQuad
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue