Skip to content

Commit 06cb3d7

Browse files
committed
gwl: Update scroll box buttons classes
1 parent b095076 commit 06cb3d7

3 files changed

Lines changed: 17 additions & 19 deletions

File tree

data/theme/cinnamon-sass/widgets/_windowlist.scss

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -121,27 +121,19 @@
121121
}
122122

123123
&-button {
124-
&-start,
125-
&-end,
126-
&-up,
127-
&-down {
128-
margin: 0;
129-
padding: 0;
130-
min-width: 15px;
131-
min-height: 20px;
132-
}
133-
134124
&-icon {
135125
icon-size: $scalable_icon_size;
136126
}
137127

138-
:hover {
139-
// TODO
140-
}
128+
&.vertical { }
141129

142-
:active {
143-
// TODO
144-
}
130+
&-start { }
131+
132+
&-end { }
133+
134+
:hover { }
135+
136+
:active { }
145137
}
146138
}
147139
}

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var ScrollBox = class ScrollBox {
3333

3434
// Slider buttons
3535
this.startButton = new St.Bin({
36-
style_class: 'grouped-window-list-scrollbox-button-start',
36+
style_class: 'grouped-window-list-scrollbox-button grouped-window-list-scrollbox-button-start',
3737
visible: false,
3838
reactive: true,
3939
can_focus: true,
@@ -42,7 +42,7 @@ var ScrollBox = class ScrollBox {
4242
y_align: St.Align.MIDDLE
4343
});
4444
this.endButton = new St.Bin({
45-
style_class: 'grouped-window-list-scrollbox-button-end',
45+
style_class: 'grouped-window-list-scrollbox-button grouped-window-list-scrollbox-button-end',
4646
visible: false,
4747
reactive: true,
4848
can_focus: true,
@@ -201,9 +201,12 @@ var ScrollBox = class ScrollBox {
201201
this.startIcon.set_icon_name('xsi-pan-start-symbolic');
202202
this.endIcon.set_icon_name('xsi-pan-end-symbolic');
203203

204+
this.startButton.remove_style_class_name('vertical');
204205
this.startButton.set_x_expand(false);
205206
this.startButton.set_y_expand(true);
206207
this.startButton.set_y_align(Clutter.ActorAlign.FILL);
208+
209+
this.endButton.remove_style_class_name('vertical');
207210
this.endButton.set_x_expand(false);
208211
this.endButton.set_y_expand(true);
209212
this.endButton.set_y_align(Clutter.ActorAlign.FILL);
@@ -215,9 +218,12 @@ var ScrollBox = class ScrollBox {
215218
this.startIcon.set_icon_name('xsi-pan-up-symbolic');
216219
this.endIcon.set_icon_name('xsi-pan-down-symbolic');
217220

221+
this.startButton.add_style_class_name('vertical');
218222
this.startButton.set_x_expand(true);
219223
this.startButton.set_y_expand(false);
220224
this.startButton.set_x_align(Clutter.ActorAlign.FILL);
225+
226+
this.endButton.add_style_class_name('vertical');
221227
this.endButton.set_x_expand(true);
222228
this.endButton.set_y_expand(false);
223229
this.endButton.set_x_align(Clutter.ActorAlign.FILL);

files/usr/share/cinnamon/applets/[email protected]/settings-schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@
206206
},
207207
"enable-click-to-slide": {
208208
"type": "checkbox",
209-
"default": false,
209+
"default": true,
210210
"description": "Enable slide on click",
211211
"tooltip": "When the sliding view is visible, clicking the button at the edges will slide the app list. If disabled, hovering the mouse on the edge of the app list will slide the app list towards that side."
212212
},

0 commit comments

Comments
 (0)