Skip to content

Commit

Permalink
theme: Use a margin around the menus
Browse files Browse the repository at this point in the history
With 4 rounded corners the menus look better when they aren't touching the
panel or screen edge. Using a margin will create some separation
  • Loading branch information
JosephMcc committed Sep 22, 2024
1 parent 212b12d commit a01c6cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/theme/cinnamon-sass/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ $link_color: #1c71d8;
$borders_color: #333333;

// shadows
$shadow_color: rgba(0, 0, 0, 0.2);
$shadow_color: rgba(0, 0, 0, 0.5);

// insensitive state
$insensitive_fg_color: mix($fg_color, $bg_color, 40%);
3 changes: 2 additions & 1 deletion data/theme/cinnamon-sass/widgets/_menus.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ $menuitem_border_radius: $base_border_radius * 1;
.menu {
min-width: 15em;
color: $fg_color;
margin: 6px;
}

// popup content
Expand All @@ -12,7 +13,7 @@ $menuitem_border_radius: $base_border_radius * 1;
background-color: $bg_color;
border-radius: $base_border_radius * 2;
border: 1px solid $borders_color;
box-shadow: 0 0 6px 0 $shadow_color;
box-shadow: 0 0 6px $shadow_color;
}

// menu items
Expand Down

0 comments on commit a01c6cd

Please sign in to comment.