summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Hein <[email protected]>2017-05-24 07:34:23 +0900
committerEike Hein <[email protected]>2017-05-24 08:42:32 +0900
commita8d9038a592e6d3ed87852bc2fb3a0f93449897d (patch)
tree0e108c569e8643a953bbf9c829c0c3bd69f15e2a
parentb45cb75675c92924db4b38ebc55d9ab93d53fb1f (diff)
Implement the new panel icon size ceiling also for Activities.
Summary: It was done for various other applets but not this. BUG:378443 Reviewers: #plasma, mart Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D5950
-rw-r--r--applets/showActivityManager/package/contents/ui/main.qml9
1 files changed, 7 insertions, 2 deletions
diff --git a/applets/showActivityManager/package/contents/ui/main.qml b/applets/showActivityManager/package/contents/ui/main.qml
index 359f692..3091555 100644
--- a/applets/showActivityManager/package/contents/ui/main.qml
+++ b/applets/showActivityManager/package/contents/ui/main.qml
@@ -28,8 +28,13 @@ MouseArea {
height: units.iconSizes.large
width: units.iconSizes.large
- Layout.minimumWidth: units.iconSizes.small
- Layout.minimumHeight: units.iconSizes.small
+ readonly property bool inPanel: (plasmoid.location == PlasmaCore.Types.TopEdge
+ || plasmoid.location == PlasmaCore.Types.RightEdge
+ || plasmoid.location == PlasmaCore.Types.BottomEdge
+ || plasmoid.location == PlasmaCore.Types.LeftEdge)
+
+ Layout.maximumWidth: inPanel ? units.iconSizeHints.panel : -1
+ Layout.maximumHeight: inPanel ? units.iconSizeHints.panel : -1
Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation