Commit 84a0b939 authored by Yaroslav Bolyukin's avatar Yaroslav Bolyukin Committed by Nate Graham
Browse files

applets/taskmanager: allow Task Manager not automatically fill empty space on Panel

This lets you do things like place a Global Menu widget immediately to the right of
a Task Manager widget.
parent 6ba9ed29
Pipeline #198044 passed with stage
in 5 minutes and 39 seconds
......@@ -103,6 +103,10 @@
<label>Whether to indicate applications that are playing audio including an option to mute them.</label>
<default>true</default>
</entry>
<entry name="fill" type="Bool">
<label>Whether task manager should occupy all available space.</label>
<default>true</default>
</entry>
<entry name="taskHoverEffect" type="Bool">
<label>Whether task buttons should change in appearance when the mouse pointer is above them.</label>
<default>true</default>
......
......@@ -23,6 +23,7 @@ Kirigami.FormLayout {
property alias cfg_showToolTips: showToolTips.checked
property alias cfg_highlightWindows: highlightWindows.checked
property bool cfg_indicateAudioStreams
property alias cfg_fill: fill.checked
property alias cfg_maxStripes: maxStripes.value
property alias cfg_forceStripes: forceStripes.checked
property int cfg_iconSpacing: 0
......@@ -52,6 +53,11 @@ Kirigami.FormLayout {
enabled: plasmaPaAvailable
}
CheckBox {
id: fill
text: i18nc("@option:check", "Fill free space on Panel")
}
Item {
Kirigami.FormData.isSection: true
}
......
......@@ -44,8 +44,8 @@ MouseArea {
}
}
Layout.fillWidth: true
Layout.fillHeight: true
Layout.fillWidth: tasks.vertical ? true : plasmoid.configuration.fill
Layout.fillHeight: !tasks.vertical ? true : plasmoid.configuration.fill
Layout.minimumWidth: tasks.vertical ? 0 : LayoutManager.preferredMinWidth()
Layout.minimumHeight: !tasks.vertical ? 0 : LayoutManager.preferredMinHeight()
......
Supports Markdown
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