-
Notifications
You must be signed in to change notification settings - Fork 43
Added wireplumber mixer widget #307
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
Open
AKArien
wants to merge
46
commits into
WayfireWM:master
Choose a base branch
from
AKArien:extra-widgets-clean
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
63ce587
Added wireplumber mixer widget
AKArien 3f0f0d1
Added scroll control in full mixer
AKArien f6b9237
Added middle click to mute
AKArien 92440cf
add configuration options for wireplumber widget
AKArien e3d6f90
uncrustify and style compliance
AKArien 57d5537
uncrustify ?
AKArien c4aac9b
remove section of the code pending on pr 306 (extra options)
AKArien a6bfee9
uncrustify ; though i cannot agree oops lol
AKArien 8cd51f9
Revert "remove section of the code pending on pr 306 (extra options)"
AKArien 089c88f
remove logic pertaining to pr 306 (vertical panel layouts)
AKArien 7325642
fixed include in animated-scale.cpp
AKArien 6885c29
add popup on change option
AKArien fbfc51b
added support for mute gestures to individual control
AKArien ea746c3
added defaults, fallbacks and corrected compliance with config options
AKArien a2a9eed
fix scroll gesture, malformed panel.xml
AKArien 77a6c62
cleaned up a bit middle click to mute
AKArien 1f0a3c8
fixed improper naming of on -> handle_config_reload
AKArien 287536d
removed obsolete functions
AKArien 21306b7
fixed left click actions on widget ; comments
AKArien 6bf91e8
added deselection guard for default + explanation
AKArien 13fdf9e
adjust logic of updates in on_mixer_changed ; removed unused enum ; c…
AKArien 86ebf6e
cleaup
AKArien 86cb8bb
fix popover jank and incorrect settings reloading
AKArien 1d427f9
uncrustify
AKArien 91f7074
fixed gestures connection both in control and widget ; cleanup
AKArien 3da844f
lil forgotten
AKArien 848fa40
uncrustify
AKArien 62bb72d
fixed doubling in existing widgets when catching up new one
AKArien 1cb5f06
de-duplicated icon_name_from_state
AKArien 2dd2dee
removed non breaking space and french quotes from comments
AKArien 709fa32
use std::string_view for string comparison
AKArien dbb30bc
fixed configuration to use .value() missed it oops
AKArien afbf13e
unique instead of raw pointers
AKArien bdb2a2e
separators and labels not by new
AKArien 69af698
add autos, make construction less barbaric
AKArien a47ab40
cleanup
AKArien 650e254
exported volumelevel and icons to be common between volume and wirepl…
AKArien 384e94a
fixed broken setting of default node
AKArien 71503d2
added explanation to volume-level.hpp
AKArien 44f38e9
fix indentation in util meson
AKArien 7f49733
uncrustify
AKArien 6cd0410
fix headers
AKArien 333881e
removed stuff from old pulseaudio volume code
AKArien b82e1e8
added and cleaned up comments, declarations and small moves
AKArien 5b6ab53
separate wireplumber styles from volume and add size option
AKArien 966d2d2
uncrustify
AKArien File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| #pragma once | ||
|
|
||
| #include <string> | ||
| #include <map> | ||
|
|
||
| // header for volume and wireplumber widgets, which both use the following enum and map | ||
|
|
||
| enum VolumeLevel | ||
| { | ||
| VOLUME_LEVEL_MUTE = 0, | ||
| VOLUME_LEVEL_LOW, | ||
| VOLUME_LEVEL_MED, | ||
| VOLUME_LEVEL_HIGH, | ||
| VOLUME_LEVEL_OOR, /* Out of range */ | ||
| }; | ||
|
|
||
| const std::map<VolumeLevel, std::string> icon_name_from_state = { | ||
| {VOLUME_LEVEL_MUTE, "audio-volume-muted"}, | ||
| {VOLUME_LEVEL_LOW, "audio-volume-low"}, | ||
| {VOLUME_LEVEL_MED, "audio-volume-medium"}, | ||
| {VOLUME_LEVEL_HIGH, "audio-volume-high"}, | ||
| {VOLUME_LEVEL_OOR, "audio-volume-muted"}, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use spaces here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now, apologies if i am somehow getting this wrong, but it seems other indentation in this file uses tabs ? such as the above libpulse check