Skip to content

Commit f97d928

Browse files
committed
gnome-shell/tweaks: Use consistent radius in quick-settings
Use the same radius in the quick-settings buttons too, making things look more in place there. It has not to be consistent with the rest, given that it's the only UI where such elements are present, while normal buttons are fine as they are
1 parent 168f294 commit f97d928

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

gnome-shell/src/gnome-shell-sass/_tweaks.scss

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,63 @@ $yaru_popup_radius: $modal_radius * 1.05;
296296
.quick-toggle-menu {
297297
border-radius: $yaru_popup_radius;
298298
}
299+
300+
.quick-toggle {
301+
border-radius: $yaru_popup_radius;
302+
}
303+
304+
/* More squircles...
305+
.datemenu-popover {
306+
.icon-button,
307+
.button {
308+
border-radius: $yaru_popup_radius;
309+
}
310+
}
311+
312+
.quick-settings {
313+
border-radius: $yaru_popup_radius;
314+
315+
.icon-button,
316+
.button {
317+
border-radius: $yaru_popup_radius;
318+
}
319+
}
320+
321+
.quick-toggle-menu {
322+
border-radius: $yaru_popup_radius;
323+
324+
& .header {
325+
& .icon {
326+
border-radius: $yaru_popup_radius;
327+
}
328+
}
329+
}
330+
*/
331+
332+
.quick-toggle-has-menu {
333+
& .quick-toggle {
334+
&:ltr {
335+
border-radius: $yaru_popup_radius 0 0 $yaru_popup_radius;
336+
}
337+
338+
&:rtl {
339+
border-radius: 0 $yaru_popup_radius $yaru_popup_radius 0;
340+
}
341+
342+
&:ltr:last-child { border-radius: $yaru_popup_radius; }
343+
&:rtl:last-child { border-radius: $yaru_popup_radius; }
344+
}
345+
346+
& .quick-toggle-menu-button {
347+
&:ltr {
348+
border-radius: 0 $yaru_popup_radius $yaru_popup_radius 0;
349+
}
350+
&:rtl {
351+
border-radius: $yaru_popup_radius 0 0 $yaru_popup_radius;
352+
}
353+
}
354+
}
355+
299356
/* OSD fixes */
300357
.osd-window {
301358
.level {

0 commit comments

Comments
 (0)