Skip to content

Commit 9bde459

Browse files
committed
cinnamon theme: use a variable for consistent window/popup border radius
1 parent 96cab94 commit 9bde459

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

data/theme/cinnamon-sass/_common.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
$base_padding: 6px;
22
$base_margin: 4px;
33
$base_border_radius: 8px;
4+
$larger_border_radius: $base_border_radius * 2;
45

56
$modal_dialog_radius: 18px;
67

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
.switcher-list {
77
background-color: $panel_bg;
88
border: 1px solid $borders_color;
9-
border-radius: $base_border_radius * 2;
9+
border-radius: $larger_border_radius;
1010
box-shadow: 0 0 6px 0 $shadow_color;
1111
padding: $base_padding * 3;
1212

@@ -52,7 +52,7 @@
5252
background-gradient-direction: horizontal;
5353
background-gradient-start: transparentize($panel_bg, 0.0);
5454
background-gradient-end: transparentize($panel_bg, 1.0);
55-
border-radius: $base_border_radius * 2;
55+
border-radius: $larger_border_radius;
5656
border-radius-topright: 0px;
5757
border-radius-bottomright: 0px;
5858
width: 60px;
@@ -62,7 +62,7 @@
6262
background-gradient-direction: horizontal;
6363
background-gradient-start: transparentize($panel_bg, 1.0);
6464
background-gradient-end: transparentize($panel_bg, 0.0);
65-
border-radius: $base_border_radius * 2;
65+
border-radius: $larger_border_radius;
6666
border-radius-topleft: 0px;
6767
border-radius-bottomleft: 0px;
6868
width: 60px;

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// OLD MENU - Used by some of the menu spices
22

33
$menu_outer_padding: 9px;
4-
$menu_outer_border_radius: $base_border_radius * 1.25;
54

65
%start_menu_button {
76
padding: $base_padding;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $menuitem_border_radius: $base_border_radius * 1;
1111
.popup-menu-content {
1212
padding: $base_padding;
1313
background-color: $bg_color;
14-
border-radius: $base_border_radius * 2;
14+
border-radius: $larger_border_radius;
1515
border: 1px solid $borders_color;
1616
box-shadow: 0 0 6px $shadow_color;
1717
}
@@ -102,7 +102,7 @@ $menuitem_border_radius: $base_border_radius * 1;
102102
.popup-combo-menu {
103103
padding: $base_padding;
104104
background-color: $bg_color;
105-
border-radius: $base_border_radius * 1.25;
105+
border-radius: $larger_border_radius;
106106
border: 1px solid $borders_color;
107107
box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);
108108
}

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
$appmenu_small_padding: 5px;
2424
$appmenu_padding: 10px;
2525
$appmenu_large_padding: 15px;
26-
$appmenu_radius: $base_border_radius * 1.25;
2726

2827
%appmenu_button {
2928
padding: $base_padding;
@@ -73,7 +72,7 @@ $appmenu_radius: $base_border_radius * 1.25;
7372
&-sidebar {
7473
padding: $appmenu_padding 0px;
7574
background-color: $base_color;
76-
border-radius: $appmenu_radius 0 0 $appmenu_radius;
75+
border-radius: $larger_border_radius 0 0 $larger_border_radius;
7776
border-right-width: 1px;
7877
border-color: $borders_color;
7978

0 commit comments

Comments
 (0)