mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-02 09:48:50 +00:00
better looking expanded popup
This commit is contained in:
parent
434665decb
commit
507b3d77b5
1 changed files with 13 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
onFullRepresentationChanged: {
|
onFullRepresentationChanged: {
|
||||||
print(fullRepresentation);
|
|
||||||
if (!fullRepresentation) {
|
if (!fullRepresentation) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -67,13 +67,24 @@ print(fullRepresentation);
|
||||||
PlasmaCore.FrameSvgItem {
|
PlasmaCore.FrameSvgItem {
|
||||||
id: appletParent
|
id: appletParent
|
||||||
imagePath: "widgets/background"
|
imagePath: "widgets/background"
|
||||||
visible: fullRepresentation.parent == appletParent
|
//used only indesktop mode, not panel
|
||||||
|
visible: plasmoid.formFactor == PlasmaCore.Types.Planar
|
||||||
z: 99
|
z: 99
|
||||||
opacity: plasmoid.expanded ? 1 : 0
|
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
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
visible: plasmoid.expanded
|
||||||
|
anchors {
|
||||||
|
fill: parent
|
||||||
|
topMargin: -appletParent.height
|
||||||
|
bottomMargin: -appletParent.height
|
||||||
|
}
|
||||||
|
z: -1
|
||||||
|
onClicked: plasmoid.expanded = false;
|
||||||
|
}
|
||||||
Behavior on opacity {
|
Behavior on opacity {
|
||||||
OpacityAnimator {
|
OpacityAnimator {
|
||||||
duration: units.longDuration
|
duration: units.longDuration
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue