Commit d09d4d52 authored by Nate Graham's avatar Nate Graham 🔩

[Pager] Improve label legibility

Currently, when displaying pager labels (either number or name), text legibility is
often poor or even non-existent, because the label is drawn below things that can
and frequently do obscure it.

This patch puts the label on top, so it's always legible.

Test Plan:
Before, displaying VD/Activity number: {F6795368, size=full}

After, displaying VD/Activity number: {F6800760, size=full}

Before, displaying VD/Activity name: {F6795367, size=full}

After, displaying VD/Activity name: {F6800754, size=full}

Reviewers: #vdg, #plasma, hein

Reviewed By: #plasma, hein

Subscribers: filipf, abetts, ndavis, plasma-devel

Tags: #plasma

Differential Revision:
parent 278d13a7
......@@ -199,7 +199,7 @@ MouseArea {
// unset pointSize set by PlasmaComponents.Label to avoid "Both point size and pixel size set." warning
font.pointSize: -1
z: 0 // Below windows and FrameSvg
z: 9999 // The label goes above everything
......@@ -378,7 +378,7 @@ MouseArea {
id: desktopFrame
anchors.fill: parent
z: 2 // Above optional label item and windows
z: 2 // Above window outlines, but below label
imagePath: "widgets/pager"
prefix: (desktopMouseArea.enabled && desktopMouseArea.containsMouse) || (root.dragging && root.dragId == desktopId) ?
"hover" : ( ? "active" : "normal")
......@@ -418,7 +418,7 @@ MouseArea {
width: desktop.width - 2 * x
height: desktop.height - 2 * y
z: 1 // Between optional label item and FrameSvg
z: 1 // Below FrameSvg
Repeater {
id: windowRectRepeater
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