Skip to content

Commit 3327cc3

Browse files
committed
theme: Don't force too large a minimum size of PopupSliderMenuItem.
This should be smaller, or removed entirely, but just making it smaller will prevent too many side-effects on xlets relying on a minimum width. This keeps narrower popup menus from being forced larger when a submenu is opened, which can be jarring. As an example, this occurs in the right-click->Applications expander in the sound applet. We use sliders in the power applet also, bump that up a bit from our new minimum, it looks nicer. Ref: linuxmint/mint21.2-beta#36
1 parent cd6ef4b commit 3327cc3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

data/theme/cinnamon.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ StScrollBar StButton#vhandle:hover {
205205
}
206206
.popup-slider-menu-item {
207207
height: 1em;
208-
min-width: 15em;
208+
min-width: 6em;
209209
-slider-height: 0.3em;
210210
-slider-background-color: #666666;
211211
-slider-border-color: #555555;

files/usr/share/cinnamon/applets/[email protected]/applet.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ class BrightnessSlider extends PopupMenu.PopupSliderMenuItem {
206206
this.removeActor(this._slider);
207207
this.addActor(this.icon, {span: 0});
208208
this.addActor(this._slider, {span: -1, expand: true});
209+
this._slider.style = "min-width: 10em;";
209210

210211
this.label = label;
211212
this.tooltipText = label;

0 commit comments

Comments
 (0)