lxqt / pavucontrol-qt

A Pulseaudio mixer in Qt (port of pavucontrol)
https://lxqt.github.io
GNU General Public License v2.0
110 stars 29 forks source link

Clicking volume meter shouldn't change volume by increments #239

Closed dbedrenko closed 1 year ago

dbedrenko commented 1 year ago
Expected Behavior

If the volume is at 40% and I click on the meter where it would be 80%, the volume should change to 80% rather than to 45%.

Current Behavior

Volume moves at increments of 5% for every click.

Context

If I want to change the volume it's inconvenient to have to click, e.g. 6-15 times just to get it to the volume desired because of the 5% increments. It's also inconvenient to locate the small volume slider itself, manage to click on it and drag it to the desired volume. This is all made harder because the volume meter widget is so narrow that clicking needs to be very precise, and multiple clicks are required.

image

pavucontrol has the expected behaviour and is much easier to change volume on (no less because the slider widget is taller).

image

System Information --->
tsujan commented 1 year ago

Short answer: Use the middle mouse button if the widget style you use is Fusion, Breeze,...

A little longer answer: It has nothing to do with pavucontrol-qt but with QStyle::SH_Slider_AbsoluteSetButtons, which is defined by the widget style. Most widget styles set it to the middle mouse button. As far as I know, only Kvantum sets it to the left mouse button by default but lets it be configured.

dbedrenko commented 1 year ago

Thanks did not know about the middle mouse button.

I understand you mean you cannot change the style in your code? I must change the Qt theme used on my machine?

tsujan commented 1 year ago

I understand you mean you cannot change the style in your code?

It's possible with a hard-coded style. But apps shouldn't have hard-coded styles unless really necessary; otherwise they'll create a mess by breaking what's called "platform integration".

It's the widget style that should have an option for it. Sadly, most widget styles don't.