Commit f4fe4a65 authored by Noah Davis's avatar Noah Davis 🌵

[showdesktop][minimizeall] Reduce the maximum panel icon size

Summary: The current size of the showdesktop/minimizeall widget is much larger than it needs to be. This patch reduces the maximum size in panels to smallMedium (22px).

Reviewers: #vdg, #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D21593
parent 1c42d586
......@@ -34,11 +34,11 @@ Item {
|| plasmoid.location === PlasmaCore.Types.BottomEdge
|| plasmoid.location === PlasmaCore.Types.LeftEdge)
Layout.minimumWidth: units.gridUnit
Layout.minimumHeight: units.gridUnit
Layout.minimumWidth: units.iconSizes.small
Layout.minimumHeight: Layout.minimumWidth
Layout.maximumWidth: inPanel ? units.iconSizeHints.panel : -1
Layout.maximumHeight: inPanel ? units.iconSizeHints.panel : -1
Layout.maximumHeight: Layout.maximumWidth
Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation
......
......@@ -56,8 +56,8 @@ QtObject {
Layout.minimumWidth: units.iconSizes.small
Layout.minimumHeight: Layout.minimumWidth
Layout.maximumWidth: inPanel ? units.iconSizeHints.panel : -1
Layout.maximumHeight: inPanel ? units.iconSizeHints.panel : -1
Layout.maximumWidth: inPanel ? units.iconSizes.smallMedium : -1
Layout.maximumHeight: Layout.maximumWidth
icon: plasmoid.icon
mainText: plasmoid.title
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment