https://bugs.kde.org/show_bug.cgi?id=466566

--- Comment #19 from andy <a...@digitalsignalperson.com> ---
For my vertical panel homies, the quick hack to fix this is to edit 
/usr/share/plasma/plasmoids/org.kde.plasma.kicker/contents/ui/CompactRepresentation.qml

in function updateSizeHints() after it says 
            root.Layout.minimumWidth = -1;
            root.Layout.minimumHeight = -1;
add
            root.Layout.maximumHeight = 30;
            root.Layout.maximumWidth = 30;

Or even make it 1x1. Who needs the icon wasting space anyways? I just want to
press Super and get the menu.


For full context, this is what the key change was in plasma 5 to 6 in
CompactRepresentation.qml

                 const scaledHeight = Math.floor(parent.width *
(buttonIcon.implicitHeight / buttonIcon.implicitWidth));
                 root.Layout.minimumHeight = scaledHeight;
                 root.Layout.maximumHeight = scaledHeight;
-                root.Layout.minimumWidth = PlasmaCore.Units.iconSizes.small;
-                root.Layout.maximumWidth = inPanel ?
PlasmaCore.Units.iconSizeHints.panel : -1;
+                root.Layout.minimumWidth = -1;
             } else {
                 const scaledWidth = Math.floor(parent.height *
(buttonIcon.implicitWidth / buttonIcon.implicitHeight));
                 root.Layout.minimumWidth = scaledWidth;
                 root.Layout.maximumWidth = scaledWidth;
-                root.Layout.minimumHeight = PlasmaCore.Units.iconSizes.small;
-                root.Layout.maximumHeight = inPanel ?
PlasmaCore.Units.iconSizeHints.panel : -1;
+                root.Layout.minimumHeight = -1;
             }
         } else {
-            root.Layout.minimumWidth = PlasmaCore.Units.iconSizes.small;
-            root.Layout.maximumWidth = inPanel ?
PlasmaCore.Units.iconSizeHints.panel : -1;
-            root.Layout.minimumHeight = PlasmaCore.Units.iconSizes.small;
-            root.Layout.maximumHeight = inPanel ?
PlasmaCore.Units.iconSizeHints.panel : -1;
+            root.Layout.minimumWidth = -1;
+            root.Layout.minimumHeight = -1;
         }
     }

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to