Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT(client): Add User and Listener volume slider to context menus #5776

Merged
merged 2 commits into from
Aug 18, 2022

Conversation

Hartmnt
Copy link
Member

@Hartmnt Hartmnt commented Aug 10, 2022

Closes #4748

This commit is a continuation of the work of @fgilcc in #4792

It adds a slider for user/listener volume adjustment directly into the context menu. This is similar to how other voice application do it and saves a few clicks.

screenf

TODO:

  • Rebase against context menu fix
  • Make entire thingy selectable and open the Dialog on click
  • Fix right side padding
  • Header year
  • new signal slot function
  • rebase, if needed
  • Translations

@Hartmnt Hartmnt force-pushed the feat_menu_slider branch 3 times, most recently from c20cc82 to 952f660 Compare August 10, 2022 14:46
src/mumble/UserLocalVolumeSlider.cpp Outdated Show resolved Hide resolved
src/mumble/VolumeSliderWidgetAction.cpp Outdated Show resolved Hide resolved
themes/Default/Dark.qss Outdated Show resolved Hide resolved
@Krzmbrzl Krzmbrzl added client ui feature-request This issue or PR deals with a new feature labels Aug 10, 2022
@Hartmnt Hartmnt force-pushed the feat_menu_slider branch 23 times, most recently from 0098e1f to 17b40d0 Compare August 11, 2022 14:03
@Hartmnt Hartmnt force-pushed the feat_menu_slider branch 7 times, most recently from 187c206 to 4af684b Compare August 15, 2022 09:27
@Hartmnt Hartmnt requested a review from Krzmbrzl August 15, 2022 09:42
src/QtUtils.h Outdated Show resolved Hide resolved
src/mumble/VolumeSliderWidgetAction.cpp Outdated Show resolved Hide resolved
src/mumble/VolumeSliderWidgetAction.cpp Outdated Show resolved Hide resolved
@Hartmnt Hartmnt force-pushed the feat_menu_slider branch 8 times, most recently from aef3979 to cba41f6 Compare August 17, 2022 18:50
@Hartmnt Hartmnt requested a review from Krzmbrzl August 17, 2022 19:00
fgilcc and others added 2 commits August 17, 2022 19:08
As requested in mumble-voip#4748 this commit implements a volume control
slider for User local volume and Listener local volume in the
relevant context menus for easier reach and quicker adjustments.

The VolumeSliderWidgetAction was implemented as a base class
for UserLocalVolumeSlider and ListenerLocalVolumeSlider which were
then added as QActions in the MainWindow to the context menus qmUser and
qmListener respectively.

The existing LocalVolumeDialogs for users and listeners have been removed.

Additionally, the new generic MenuLabel class was created to be able to
add non-interactive items into QMenus.

Co-authored-by: Hartmnt <hartmunt@protonmail.com>
@Krzmbrzl Krzmbrzl merged commit 36eb43a into mumble-voip:master Aug 18, 2022
@Krzmbrzl
Copy link
Member

Thanks for working on this 👍

Hartmnt added a commit to Hartmnt/mumble that referenced this pull request Jun 30, 2024
… certificate

In mumble-voip#5776 the local volume adjustment sliders were moved into the user context menu.
A log warning message appears, if you adjust the volume of a client without
certificate.
Due to a combination of Qt's buggy MouseWheel events and the oversight that
volume changes to the DB happen much more frequently with that change, the
log warning messages are spammed way to often now in that case.

This commit moves the log warning message explicitly into a separate slot on
slider release. Note: We "lose" the warning message for other input methods that
are not "releasing the slider", but given the fact that certificates are pretty
prevalent now and dragging the slider is likely the most often used input method,
this will likely affect a very little amount of users.

Fixes mumble-voip#6462
Hartmnt added a commit to Hartmnt/mumble that referenced this pull request Jun 30, 2024
… certificate

In mumble-voip#5776 the local volume adjustment sliders were moved into the user context menu.
A log warning message appears, if you adjust the volume of a client without
certificate.
Due to a combination of Qt's buggy MouseWheel events and the oversight that
volume changes to the DB happen much more frequently with that change, the
log warning messages are spammed way to often now in that case.

This commit moves the log warning message explicitly into a separate slot on
slider release. Note: We "lose" the warning message for other input methods that
are not "releasing the slider", but given the fact that certificates are pretty
prevalent now and dragging the slider is likely the most often used input method,
this will likely affect a very little amount of users.

Fixes mumble-voip#6462
Hartmnt added a commit to Hartmnt/mumble that referenced this pull request Jul 1, 2024
… certificate

In mumble-voip#5776 the local volume adjustment sliders were moved into the user context menu.
A log warning message appears, if you adjust the volume of a client without
certificate.
Due to a combination of Qt's buggy MouseWheel events and the oversight that
volume changes to the DB happen much more frequently with that change, the
log warning messages are spammed way to often now in that case.

This commit moves the log warning message explicitly into a separate slot on
slider release. Note: We "lose" the warning message for other input methods that
are not "releasing the slider", but given the fact that certificates are pretty
prevalent now and dragging the slider is likely the most often used input method,
this will likely affect a very little amount of users.

Fixes mumble-voip#6462
Krzmbrzl pushed a commit that referenced this pull request Jul 1, 2024
… certificate

In #5776 the local volume adjustment sliders were moved into the user context menu.
A log warning message appears, if you adjust the volume of a client without
certificate.
Due to a combination of Qt's buggy MouseWheel events and the oversight that
volume changes to the DB happen much more frequently with that change, the
log warning messages are spammed way to often now in that case.

This commit moves the log warning message explicitly into a separate slot on
slider release. Note: We "lose" the warning message for other input methods that
are not "releasing the slider", but given the fact that certificates are pretty
prevalent now and dragging the slider is likely the most often used input method,
this will likely affect a very little amount of users.

Fixes #6462

(cherry picked from commit efe91b9)
Krzmbrzl pushed a commit that referenced this pull request Jul 6, 2024
… certificate

In #5776 the local volume adjustment sliders were moved into the user context menu.
A log warning message appears, if you adjust the volume of a client without
certificate.
Due to a combination of Qt's buggy MouseWheel events and the oversight that
volume changes to the DB happen much more frequently with that change, the
log warning messages are spammed way to often now in that case.

This commit moves the log warning message explicitly into a separate slot on
slider release. Note: We "lose" the warning message for other input methods that
are not "releasing the slider", but given the fact that certificates are pretty
prevalent now and dragging the slider is likely the most often used input method,
this will likely affect a very little amount of users.

Fixes #6462

(cherry picked from commit efe91b9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client feature-request This issue or PR deals with a new feature ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Place the per-user audio volume slider directly in the context menu
3 participants