Home
Phabricator
Search
Log In
Paste
P482
Patch for https://phabricator.kde.org/D24720
Active
Public
Actions
Authored by
ngraham
on Oct 21 2019, 5:35 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
diff --git a/applets/systemtray/package/contents/ui/ExpandedRepresentation.qml b/applets/systemtray/package/contents/ui/ExpandedRepresentation.qml
index 0d723d974..9976e7ca6 100644
--- a/applets/systemtray/package/contents/ui/ExpandedRepresentation.qml
+++ b/applets/systemtray/package/contents/ui/ExpandedRepresentation.qml
@@ -39,38 +39,11 @@ ColumnLayout {
property alias hiddenLayout: hiddenItemsView.layout
RowLayout {
+ Layout.fillWidth: true
PlasmaExtras.Heading {
id: heading
level: 1
- Layout.leftMargin: {
- //Menu mode
- if (!activeApplet && hiddenItemsView.visible && LayoutMirroring.enabled === false) {
- return units.smallSpacing;
-
- //applet open, sidebar
- } else if (activeApplet && hiddenItemsView.visible && LayoutMirroring.enabled === false) {
- return hiddenItemsView.width + units.largeSpacing;
-
- //applet open, no sidebar
- } else {
- return 0;
- }
- }
- Layout.rightMargin: {
- //Menu mode
- if (!activeApplet && hiddenItemsView.visible && LayoutMirroring.enabled === true) {
- return units.smallSpacing;
-
- //applet open, sidebar
- } else if (activeApplet && hiddenItemsView.visible && LayoutMirroring.enabled === true) {
- return hiddenItemsView.width + units.largeSpacing;
-
- //applet open, no sidebar
- } else {
- return 0;
- }
- }
visible: activeApplet
text: activeApplet ? activeApplet.title : ""
@@ -110,6 +83,7 @@ ColumnLayout {
}
RowLayout {
+ Layout.fillWidth: true
spacing: 0 // must be 0 so that the separator is as close to the indicator as possible
HiddenItemsView {
ngraham
created this paste.
Oct 21 2019, 5:35 PM
ngraham
created this object in space
S1 KDE Community
.
ngraham
edited the content of this paste.
(Show Details)
Oct 21 2019, 5:39 PM
ngraham
mentioned this in
D24720: [applets/systemtray] Rewrite popups with layouts
.
Log In to Comment