Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3
plasma5-workspace
0024-Keep-AppletMenu-as-small-as-possible.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0024-Keep-AppletMenu-as-small-as-possible.patch of Package plasma5-workspace
From 101d9955442aadbb654a586d45d22021496848b5 Mon Sep 17 00:00:00 2001 From: David Edmundson <kde@davidedmundson.co.uk> Date: Fri, 13 Jan 2017 11:23:49 +0000 Subject: [PATCH 24/44] Keep AppletMenu as small as possible Summary: In retrospect there's no need to fill the width, if people want that effect they can add a spacer; whereas you can't do the opposite. Also set the size to 0 when it's empty. This mean using status as normally PanelContainment ensures plasmoid's are a minimum of a square. BUG: 374996 Reviewers: #plasma Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D4115 --- applets/appmenu/package/contents/ui/main.qml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/applets/appmenu/package/contents/ui/main.qml b/applets/appmenu/package/contents/ui/main.qml index 85cdbc9b..112c040e 100644 --- a/applets/appmenu/package/contents/ui/main.qml +++ b/applets/appmenu/package/contents/ui/main.qml @@ -40,9 +40,6 @@ Item { plasmoid.nativeInterface.view = view } - Layout.minimumWidth: units.gridUnit - Layout.minimumHeight: units.gridUnit - Plasmoid.preferredRepresentation: (plasmoid.configuration.compactView || vertical || !appletEnabled) ? Plasmoid.compactRepresentation : Plasmoid.fullRepresentation Plasmoid.compactRepresentation: PlasmaComponents.ToolButton { @@ -66,8 +63,10 @@ Item { Plasmoid.fullRepresentation: GridLayout { id: buttonGrid - Layout.fillWidth: !root.vertical - Layout.fillHeight: root.vertical + Plasmoid.status: buttonRepeater.count > 0 ? PlasmaCore.Types.ActiveStatus : PlasmaCore.Types.HiddenStatus + Layout.minimumWidth: implicitWidth + Layout.minimumHeight: implicitHeight + flow: root.vertical ? GridLayout.TopToBottom : GridLayout.LeftToRight rowSpacing: units.smallSpacing columnSpacing: units.smallSpacing -- 2.12.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor