Commit ca15ec82 authored by George Vogiatzis's avatar George Vogiatzis

[KCM]Align volume controls row

Summary:
Align mute button volume slider.

Slider has 2 pixel offset, caused from wrong slider height.

Test Plan:
Before:
 {F8130865, layout=inline} {F8130846, layout=inline} {F8130847, layout=inline}

After:
{F8134931, layout=inline} {F8134932, layout=inline} {F8134933, layout=inline} {F8134934, layout=inline}

Reviewers: #plasma, #vdg, drosca, ngraham

Reviewed By: #vdg, ngraham

Subscribers: broulik, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D27645
parent 606c6499
......@@ -106,12 +106,16 @@ ColumnLayout {
MuteButton {
id: muteButton
Layout.topMargin: -(height - icon.height) / 2
Layout.alignment: Qt.AlignTop
Layout.topMargin: -Math.round((height - volumeSlider.height) / 2)
muted: Muted
onCheckedChanged: Muted = checked
toolTipText: !currentPort ? Description : currentPort.description
}
VolumeSlider {}
VolumeSlider {
id: volumeSlider
Layout.alignment: Qt.AlignTop
}
}
}
......@@ -77,12 +77,17 @@ ColumnLayout {
RowLayout {
MuteButton {
Layout.alignment: Qt.AlignTop
Layout.topMargin: -Math.round((height - volumeSlider.height) / 2)
muted: Muted
onCheckedChanged: Muted = checked
toolTipText: inputText.text
}
VolumeSlider {}
VolumeSlider {
id: volumeSlider
Layout.alignment: Qt.AlignTop
}
}
}
}
......
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