diff --git a/applets/systemtray/package/contents/config/main.xml b/applets/systemtray/package/contents/config/main.xml
--- a/applets/systemtray/package/contents/config/main.xml
+++ b/applets/systemtray/package/contents/config/main.xml
@@ -54,6 +54,10 @@
false
+
+
+ false
+
diff --git a/applets/systemtray/package/contents/ui/ExpandedRepresentation.qml b/applets/systemtray/package/contents/ui/ExpandedRepresentation.qml
--- a/applets/systemtray/package/contents/ui/ExpandedRepresentation.qml
+++ b/applets/systemtray/package/contents/ui/ExpandedRepresentation.qml
@@ -19,6 +19,7 @@
import QtQuick 2.1
import QtQuick.Layouts 1.1
+import QtQuick.Window 2.13
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.plasma.extras 2.0 as PlasmaExtras
@@ -30,24 +31,39 @@
width: Layout.minimumWidth
height: Layout.minimumHeight
Layout.minimumWidth: units.gridUnit * 24
- Layout.minimumHeight: units.gridUnit * 21
+ Layout.minimumHeight: plasmoid.configuration.sidebar ? Screen.desktopAvailableHeight : units.gridUnit * 21
Layout.preferredWidth: Layout.minimumWidth
- Layout.preferredHeight: Layout.minimumHeight * 1.5
+ Layout.preferredHeight: plasmoid.configuration.sidebar ? Screen.desktopAvailableHeight : Layout.minimumHeight * 1.5
property alias activeApplet: container.activeApplet
property alias hiddenLayout: hiddenItemsView.layout
+ property alias cfg_sidebar: sidebarButton.checked
- PlasmaComponents.ToolButton {
- id: pinButton
+ RowLayout {
+ anchors.top: parent.top
anchors.right: parent.right
- width: Math.round(units.gridUnit * 1.25)
- height: width
- checkable: true
- checked: plasmoid.configuration.pin
- onCheckedChanged: plasmoid.configuration.pin = checked
- iconSource: "window-pin"
- z: 2
- tooltip: i18n("Keep Open")
+
+ PlasmaComponents.ToolButton {
+ id: sidebarButton
+ width: Math.round(units.gridUnit * 1.25)
+ height: width
+ checkable: true
+ checked: plasmoid.configuration.sidebar
+ onCheckedChanged: plasmoid.configuration.sidebar = checked
+ iconSource: "transform-move-vertical"
+ tooltip: i18n("Sidebar Mode")
+ }
+
+ PlasmaComponents.ToolButton {
+ id: pinButton
+ width: Math.round(units.gridUnit * 1.25)
+ height: width
+ checkable: true
+ checked: plasmoid.configuration.pin
+ onCheckedChanged: plasmoid.configuration.pin = checked
+ iconSource: "window-pin"
+ tooltip: i18n("Keep Open")
+ }
}
PlasmaExtras.Heading {