Commit f6a5ea07 authored by George Vogiatzis's avatar George Vogiatzis Committed by Nate Graham
Browse files

[Applet] Fix empty space and give correct size

Summary:
Make default size same with system tray. Inside area is bigger,
without the system tray heading.

Fix empty space.

Test Plan:
Use applet outside the system tray on taskbar or desktop with
display scaling.

Bug: 393418
Bug: 413448

Reviewers: #vdg, #plasma, drosca, ngraham

Reviewed By: #vdg, ngraham

Subscribers: ngraham, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D26548
parent c38b6a9f
......@@ -42,15 +42,15 @@ Item {
// DEFAULT_SINK_NAME in module-always-sink.c
readonly property string dummyOutputName: "auto_null"
Layout.minimumHeight: units.gridUnit * 18
Layout.minimumWidth: units.gridUnit * 18
Layout.preferredHeight: units.gridUnit * 20
Layout.preferredWidth: units.gridUnit * 20
Layout.minimumHeight: units.gridUnit * 8
Layout.minimumWidth: units.gridUnit * 14
Layout.preferredHeight: units.gridUnit * 21
Layout.preferredWidth: units.gridUnit * 24
Plasmoid.switchHeight: Layout.minimumHeight
Plasmoid.switchWidth: Layout.minimumWidth
Plasmoid.icon: paSinkModel.preferredSink && !isDummyOutput(paSinkModel.preferredSink) ? Icon.name(paSinkModel.preferredSink.volume, paSinkModel.preferredSink.muted)
: Icon.name(0, true)
Plasmoid.switchWidth: units.gridUnit * 18
Plasmoid.switchHeight: units.gridUnit * 18
Plasmoid.toolTipMainText: {
var sink = paSinkModel.preferredSink;
if (!sink || isDummyOutput(sink)) {
......@@ -300,8 +300,8 @@ Item {
Plasmoid.fullRepresentation: ColumnLayout {
spacing: units.smallSpacing
Layout.minimumHeight: main.Layout.minimumHeight
Layout.minimumWidth: main.Layout.minimumWidth
Layout.preferredHeight: main.Layout.preferredHeight
Layout.preferredWidth: main.Layout.preferredWidth
function beginMoveStream(type, stream) {
if (type == "sink") {
......
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