Skip to content

Commit

Permalink
popupMenu: restore minimum slider width, override sound slider only
Browse files Browse the repository at this point in the history
Thie reverts 3327cc3 and makes only a specific change to
the Applications input sliders in the sound applet. The original
change would result in regressions in spices that may unknowingly
rely on the slider width to size their popups.
  • Loading branch information
mtwebster committed Jul 4, 2023
1 parent 9db3e00 commit 6b32d97
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/theme/cinnamon.css
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ StScrollBar StButton#vhandle:hover {
}
.popup-slider-menu-item {
height: 1em;
min-width: 6em;
min-width: 15em;
-slider-height: 0.3em;
-slider-background-color: #666666;
-slider-border-color: #555555;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ class BrightnessSlider extends PopupMenu.PopupSliderMenuItem {
this.removeActor(this._slider);
this.addActor(this.icon, {span: 0});
this.addActor(this._slider, {span: -1, expand: true});
this._slider.style = "min-width: 10em;";

this.label = label;
this.tooltipText = label;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ class StreamMenuSection extends PopupMenu.PopupMenuSection {
}

let slider = new VolumeSlider(applet, stream, name, iconName);
slider._slider.style = "min-width: 6em;";
this.addMenuItem(slider);
}
}
Expand Down

0 comments on commit 6b32d97

Please sign in to comment.