mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-03 18:24:46 +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 {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
right: parent.right
|
right: parent.right
|
||||||
|
bottom: parent.top
|
||||||
}
|
}
|
||||||
height: units.smallSpacing
|
height: units.smallSpacing
|
||||||
color: PlasmaCore.ColorScope.highlightColor
|
color: PlasmaCore.ColorScope.highlightColor
|
||||||
opacity: plasmoid.expanded ? 1 : 0
|
visible: plasmoid.expanded
|
||||||
Behavior on opacity {
|
|
||||||
OpacityAnimator {
|
|
||||||
duration: units.shortDuration
|
|
||||||
easing.type: Easing.InOutQuad
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue