mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
open the first applet on first panel open
This commit is contained in:
parent
19a16ef8fd
commit
58f74b1f61
2 changed files with 11 additions and 7 deletions
|
|
@ -236,5 +236,14 @@ PlasmaCore.ColorScope {
|
|||
}
|
||||
}
|
||||
}
|
||||
onVisibleChanged: {
|
||||
if (visible && !root.expandedApplet) {
|
||||
print("AAA"+appletIconsRow.children[0].applet)
|
||||
var applet = appletIconsRow.children[0].applet;
|
||||
applet.expanded = true;
|
||||
appletsStack.replace(applet.fullRepresentationItem);
|
||||
root.expandedApplet = applet;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,16 +56,11 @@ Item {
|
|||
anchors {
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
bottom: parent.top
|
||||
}
|
||||
height: units.smallSpacing
|
||||
color: PlasmaCore.ColorScope.highlightColor
|
||||
opacity: plasmoid.expanded ? 1 : 0
|
||||
Behavior on opacity {
|
||||
OpacityAnimator {
|
||||
duration: units.shortDuration
|
||||
easing.type: Easing.InOutQuad
|
||||
}
|
||||
}
|
||||
visible: plasmoid.expanded
|
||||
}
|
||||
|
||||
Item {
|
||||
|
|
|
|||
Loading…
Reference in a new issue