mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
style(media): min-width
This commit is contained in:
parent
362c393b1d
commit
0968170074
@ -133,6 +133,7 @@ label:focus {
|
||||
#custom-media {
|
||||
background: #66cc99;
|
||||
color: #2a5c45;
|
||||
min-width: 150px;
|
||||
}
|
||||
|
||||
.custom-spotify {
|
||||
|
@ -73,13 +73,12 @@ void waybar::modules::Pulseaudio::contextStateCb(pa_context *c, void *data) {
|
||||
|
||||
bool waybar::modules::Pulseaudio::handleVolume(GdkEventScroll *e) {
|
||||
// Avoid concurrent scroll event
|
||||
bool direction_up = false;
|
||||
uint16_t change = config_["scroll-step"].isUInt() ? config_["scroll-step"].asUInt() * 100 : 100;
|
||||
pa_cvolume pa_volume = pa_volume_;
|
||||
|
||||
if (scrolling_) {
|
||||
return false;
|
||||
}
|
||||
bool direction_up = false;
|
||||
uint16_t change = config_["scroll-step"].isUInt() ? config_["scroll-step"].asUInt() * 100 : 100;
|
||||
pa_cvolume pa_volume = pa_volume_;
|
||||
scrolling_ = true;
|
||||
if (e->direction == GDK_SCROLL_UP) {
|
||||
direction_up = true;
|
||||
|
Loading…
Reference in New Issue
Block a user