mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
keep applet expanded when only one
This commit is contained in:
parent
8f826e5d9f
commit
fd7a2e7c08
2 changed files with 3 additions and 1 deletions
|
|
@ -33,6 +33,8 @@ Item {
|
||||||
|
|
||||||
Plasmoid.preferredRepresentation: plasmoid.fullRepresentation
|
Plasmoid.preferredRepresentation: plasmoid.fullRepresentation
|
||||||
|
|
||||||
|
Layout.minimumHeight: flow.implicitHeight + units.largeSpacing*2
|
||||||
|
|
||||||
ListModel {
|
ListModel {
|
||||||
id: settingsModel
|
id: settingsModel
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,7 @@ PlasmaCore.ColorScope {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
right: parent.right
|
right: parent.right
|
||||||
}
|
}
|
||||||
height: applet && applet.expanded ? Math.max(applet.fullRepresentationItem.Layout.minimumHeight, units.iconSizes.medium) : units.iconSizes.medium
|
height: applet && (applet.expanded || plasmoid.applets.count == 1) ? Math.max(applet.fullRepresentationItem.Layout.minimumHeight, units.iconSizes.medium) : units.iconSizes.medium
|
||||||
Behavior on height {
|
Behavior on height {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
duration: units.shortDuration
|
duration: units.shortDuration
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue