Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorfgilcc <francisco.gil.g@gmail.com>2021-04-04 16:34:24 +0300
committerHartmnt <hartmunt@protonmail.com>2022-08-17 22:08:04 +0300
commit67be07b9d38393c09484053df280888eec0ef2b3 (patch)
treeb3aadb80c5cb30b674be07c039014744b50c8a8a /themes
parentbbab69650656aa61a1e42f990d3b0ab26ae19e4a (diff)
FEAT(client): Add User and Listener volume slider to context menus
As requested in #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>
Diffstat (limited to 'themes')
-rw-r--r--themes/Default/Dark.qss12
-rw-r--r--themes/Default/Lite.qss12
-rw-r--r--themes/Default/source/Imports/Base Theme.scss14
3 files changed, 38 insertions, 0 deletions
diff --git a/themes/Default/Dark.qss b/themes/Default/Dark.qss
index a3d7c9d4c..c9f87dcd1 100644
--- a/themes/Default/Dark.qss
+++ b/themes/Default/Dark.qss
@@ -203,6 +203,18 @@ QMenu::item {
border-radius: 2px;
}
+QMenu QLabel {
+ margin: 0px;
+ padding: 5px;
+ padding-right: 8px;
+ padding-left: 25px;
+}
+
+QMenu QSlider {
+ padding-top: 5px;
+ padding-bottom: 5px;
+}
+
QMenu::icon {
left: 4px;
}
diff --git a/themes/Default/Lite.qss b/themes/Default/Lite.qss
index 79a5fc857..49bcff3cc 100644
--- a/themes/Default/Lite.qss
+++ b/themes/Default/Lite.qss
@@ -203,6 +203,18 @@ QMenu::item {
border-radius: 2px;
}
+QMenu QLabel {
+ margin: 0px;
+ padding: 5px;
+ padding-right: 8px;
+ padding-left: 25px;
+}
+
+QMenu QSlider {
+ padding-top: 5px;
+ padding-bottom: 5px;
+}
+
QMenu::icon {
left: 4px;
}
diff --git a/themes/Default/source/Imports/Base Theme.scss b/themes/Default/source/Imports/Base Theme.scss
index 2a42182a1..d5a8a95be 100644
--- a/themes/Default/source/Imports/Base Theme.scss
+++ b/themes/Default/source/Imports/Base Theme.scss
@@ -223,6 +223,20 @@ QMenu::item
border-radius:$base-border-radius;
}
+QMenu QLabel
+{
+ margin:0px;
+ padding:$base-padding + 1;
+ padding-right:$base-padding * 2;
+ padding-left:25px;
+}
+
+QMenu QSlider
+{
+ padding-top:$base-padding + 1;
+ padding-bottom:$base-padding + 1;
+}
+
QMenu::icon
{
left:$base-padding;