Skip to content

Commit

Permalink
Add 2px border-radius for menu
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceliuice committed Oct 21, 2018
1 parent 290eb89 commit be0b5e3
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 21 deletions.
9 changes: 6 additions & 3 deletions src/gtk-3.0/gtk-aliz.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
background-color: rgba(247, 247, 247, 0.999);
}

.popup.background {
border-radius: 2px;
}

*:disabled {
-gtk-icon-effect: dim;
}
Expand Down Expand Up @@ -2295,7 +2299,7 @@ menu,
.csd menu, .csd
.menu {
padding: 4px 0;
border-radius: 0;
border-radius: 2px;
border: none;
}

Expand Down Expand Up @@ -2409,7 +2413,6 @@ menu > arrow:disabled,
popover,
popover.background {
padding: 2px;
border-radius: 3px;
background-clip: border-box;
background-color: #ffffff;
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.07);
Expand Down Expand Up @@ -4450,7 +4453,7 @@ decoration:backdrop {
}

.csd.popup decoration {
border-radius: 0;
border-radius: 2px;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.12);
}

Expand Down
9 changes: 6 additions & 3 deletions src/gtk-3.0/gtk-azul.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
background-color: rgba(247, 247, 247, 0.999);
}

.popup.background {
border-radius: 2px;
}

*:disabled {
-gtk-icon-effect: dim;
}
Expand Down Expand Up @@ -2295,7 +2299,7 @@ menu,
.csd menu, .csd
.menu {
padding: 4px 0;
border-radius: 0;
border-radius: 2px;
border: none;
}

Expand Down Expand Up @@ -2409,7 +2413,6 @@ menu > arrow:disabled,
popover,
popover.background {
padding: 2px;
border-radius: 3px;
background-clip: border-box;
background-color: #ffffff;
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.07);
Expand Down Expand Up @@ -4450,7 +4453,7 @@ decoration:backdrop {
}

.csd.popup decoration {
border-radius: 0;
border-radius: 2px;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.12);
}

Expand Down
9 changes: 6 additions & 3 deletions src/gtk-3.0/gtk-dark-aliz.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
background-color: rgba(34, 34, 34, 0.999);
}

.popup.background {
border-radius: 2px;
}

*:disabled {
-gtk-icon-effect: dim;
}
Expand Down Expand Up @@ -2295,7 +2299,7 @@ menu,
.csd menu, .csd
.menu {
padding: 4px 0;
border-radius: 0;
border-radius: 2px;
border: none;
}

Expand Down Expand Up @@ -2409,7 +2413,6 @@ menu > arrow:disabled,
popover,
popover.background {
padding: 2px;
border-radius: 3px;
background-clip: border-box;
background-color: #222222;
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.35);
Expand Down Expand Up @@ -4450,7 +4453,7 @@ decoration:backdrop {
}

.csd.popup decoration {
border-radius: 0;
border-radius: 2px;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.18);
}

Expand Down
9 changes: 6 additions & 3 deletions src/gtk-3.0/gtk-dark-azul.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
background-color: rgba(27, 29, 36, 0.999);
}

.popup.background {
border-radius: 2px;
}

*:disabled {
-gtk-icon-effect: dim;
}
Expand Down Expand Up @@ -2295,7 +2299,7 @@ menu,
.csd menu, .csd
.menu {
padding: 4px 0;
border-radius: 0;
border-radius: 2px;
border: none;
}

Expand Down Expand Up @@ -2409,7 +2413,6 @@ menu > arrow:disabled,
popover,
popover.background {
padding: 2px;
border-radius: 3px;
background-clip: border-box;
background-color: #1b1d24;
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.35);
Expand Down Expand Up @@ -4450,7 +4453,7 @@ decoration:backdrop {
}

.csd.popup decoration {
border-radius: 0;
border-radius: 2px;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.18);
}

Expand Down
9 changes: 6 additions & 3 deletions src/gtk-3.0/gtk-dark-sea.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
background-color: rgba(27, 34, 36, 0.999);
}

.popup.background {
border-radius: 2px;
}

*:disabled {
-gtk-icon-effect: dim;
}
Expand Down Expand Up @@ -2295,7 +2299,7 @@ menu,
.csd menu, .csd
.menu {
padding: 4px 0;
border-radius: 0;
border-radius: 2px;
border: none;
}

Expand Down Expand Up @@ -2409,7 +2413,6 @@ menu > arrow:disabled,
popover,
popover.background {
padding: 2px;
border-radius: 3px;
background-clip: border-box;
background-color: #1b2224;
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.35);
Expand Down Expand Up @@ -4450,7 +4453,7 @@ decoration:backdrop {
}

.csd.popup decoration {
border-radius: 0;
border-radius: 2px;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.18);
}

Expand Down
9 changes: 6 additions & 3 deletions src/gtk-3.0/gtk-sea.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
background-color: rgba(247, 247, 247, 0.999);
}

.popup.background {
border-radius: 2px;
}

*:disabled {
-gtk-icon-effect: dim;
}
Expand Down Expand Up @@ -2295,7 +2299,7 @@ menu,
.csd menu, .csd
.menu {
padding: 4px 0;
border-radius: 0;
border-radius: 2px;
border: none;
}

Expand Down Expand Up @@ -2409,7 +2413,6 @@ menu > arrow:disabled,
popover,
popover.background {
padding: 2px;
border-radius: 3px;
background-clip: border-box;
background-color: #ffffff;
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.07);
Expand Down Expand Up @@ -4450,7 +4453,7 @@ decoration:backdrop {
}

.csd.popup decoration {
border-radius: 0;
border-radius: 2px;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.12);
}

Expand Down
10 changes: 7 additions & 3 deletions src/gtk-3.0/sass/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ $asset_suffix: if($variant=='dark', '-dark', ''); // use dark assets in dark var
background-color: if($transparency == 'true', transparentize($bg_color, 0.001), $bg_color); // without this headerbar transparency doesn't seem to work
}

.popup.background {
border-radius: 2px; // menus background
}


*:disabled { -gtk-icon-effect: dim; }

.gtkstyle-fallback {
Expand Down Expand Up @@ -1712,7 +1717,7 @@ menu,

.csd & {
padding: 4px 0;
border-radius: 0;
border-radius: 2px;
border: none;
}

Expand Down Expand Up @@ -1802,7 +1807,6 @@ popover,
popover.background {
$_popover_bg: if($variant=='light', $base_color, $bg_color);
padding: 2px;
border-radius: 3px;
background-clip: border-box;
background-color: $_popover_bg;

Expand Down Expand Up @@ -3281,7 +3285,7 @@ decoration {
&.maximized { border-radius: 0; }
}
.csd.popup & {
border-radius: 0;
border-radius: 2px;
box-shadow: 0 3px 6px if($variant == 'light', $_wm_border, transparentize($_wm_border, 0.1)), 0 0 0 1px $borders_color;
}
tooltip.csd & {
Expand Down

0 comments on commit be0b5e3

Please sign in to comment.