Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
b693f482
Commit
b693f482
authored
Nov 09, 2020
by
Nate Graham
Browse files
[OSD] Vertically center all items in the layout
BUG: 428742
FIXED-IN: 5.21
parent
36f296e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
lookandfeel/contents/osd/OsdItem.qml
View file @
b693f482
...
...
@@ -46,6 +46,7 @@ RowLayout {
Layout.leftMargin
:
units
.
smallSpacing
Layout.preferredWidth
:
units
.
iconSizes
.
medium
Layout.preferredHeight
:
units
.
iconSizes
.
medium
Layout.alignment
:
Qt
.
AlignVCenter
source
:
icon
visible
:
valid
}
...
...
@@ -53,6 +54,7 @@ RowLayout {
PlasmaComponents3.ProgressBar
{
id
:
progressBar
Layout.fillWidth
:
true
Layout.alignment
:
Qt
.
AlignVCenter
// So it never exceeds the minimum popup size
Layout.preferredWidth
:
1
Layout.rightMargin
:
units
.
smallSpacing
...
...
@@ -76,6 +78,7 @@ RowLayout {
Layout.fillHeight
:
true
Layout.preferredWidth
:
widestLabelSize
.
width
Layout.rightMargin
:
units
.
smallSpacing
Layout.alignment
:
Qt
.
AlignVCenter
level
:
3
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
...
...
@@ -102,6 +105,7 @@ RowLayout {
Layout.fillWidth
:
true
Layout.fillHeight
:
true
Layout.rightMargin
:
units
.
smallSpacing
Layout.alignment
:
Qt
.
AlignVCenter
level
:
3
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment