Commit 5e24f1c2 authored by Niccolò Venerandi's avatar Niccolò Venerandi Committed by Nate Graham
Browse files

[applets/systemtray] increase spacing under header and center icons better

This way the icons of the top-most items aren't so close to the header.
parent bfe0f301
...@@ -84,6 +84,7 @@ Item { ...@@ -84,6 +84,7 @@ Item {
PlasmaExtras.Heading { PlasmaExtras.Heading {
Layout.fillWidth: true Layout.fillWidth: true
leftPadding: activeApplet ? 0 : units.smallSpacing * 2
level: 1 level: 1
text: activeApplet ? activeApplet.title : i18n("Status and Notifications") text: activeApplet ? activeApplet.title : i18n("Status and Notifications")
......
...@@ -136,7 +136,10 @@ PlasmaCore.ToolTipArea { ...@@ -136,7 +136,10 @@ PlasmaCore.ToolTipArea {
property alias inVisibleLayout: abstractItem.inVisibleLayout property alias inVisibleLayout: abstractItem.inVisibleLayout
readonly property int size: abstractItem.inVisibleLayout ? root.itemSize : units.iconSizes.medium readonly property int size: abstractItem.inVisibleLayout ? root.itemSize : units.iconSizes.medium
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.Bottom | Qt.AlignHCenter
// use 50% of available height
Layout.preferredHeight: abstractItem.inHiddenLayout ? 50 : undefined
Layout.fillHeight: abstractItem.inHiddenLayout ? true : false
implicitWidth: root.vertical && abstractItem.inVisibleLayout ? abstractItem.width : size implicitWidth: root.vertical && abstractItem.inVisibleLayout ? abstractItem.width : size
implicitHeight: !root.vertical && abstractItem.inVisibleLayout ? abstractItem.height : size implicitHeight: !root.vertical && abstractItem.inVisibleLayout ? abstractItem.height : size
Layout.topMargin: abstractItem.inHiddenLayout ? units.smallSpacing : 0 Layout.topMargin: abstractItem.inHiddenLayout ? units.smallSpacing : 0
...@@ -145,6 +148,8 @@ PlasmaCore.ToolTipArea { ...@@ -145,6 +148,8 @@ PlasmaCore.ToolTipArea {
id: label id: label
Layout.fillWidth: true Layout.fillWidth: true
// use 50% of available height
Layout.preferredHeight: 50
Layout.fillHeight: true Layout.fillHeight: true
Layout.leftMargin: abstractItem.inHiddenLayout ? units.smallSpacing : 0 Layout.leftMargin: abstractItem.inHiddenLayout ? units.smallSpacing : 0
Layout.rightMargin: abstractItem.inHiddenLayout ? units.smallSpacing : 0 Layout.rightMargin: abstractItem.inHiddenLayout ? units.smallSpacing : 0
...@@ -152,7 +157,7 @@ PlasmaCore.ToolTipArea { ...@@ -152,7 +157,7 @@ PlasmaCore.ToolTipArea {
visible: abstractItem.inHiddenLayout && !root.activeApplet visible: abstractItem.inHiddenLayout && !root.activeApplet
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignTop
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
elide: Text.ElideRight elide: Text.ElideRight
wrapMode: Text.Wrap wrapMode: Text.Wrap
......
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