Commit 52390d18 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Fix centering Volume icon around channel sliders

parent 2f84fd94
......@@ -137,7 +137,11 @@ ColumnLayout {
MuteButton {
id: muteButton
Layout.alignment: Qt.AlignTop
Layout.topMargin: -Math.round((height - volumeSlider.height) / 2)
Layout.topMargin: {
// Center the mute button around the main slider, or the first channel slider
const sliderHeight = channelSliderRepeater.count > 0 ? channelSliderRepeater.itemAt(0).height : volumeSlider.height;
return -Math.round((height - sliderHeight) / 2);
}
muted: Muted
onCheckedChanged: Muted = checked
toolTipText: !currentPort ? Description : currentPort.description
......
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