Skip to content

Commit

Permalink
Fix: Theme - GTK None native menu
Browse files Browse the repository at this point in the history
- Menu item border radius
- Separator border size
- Radio icon to checkmark
  • Loading branch information
black7375 committed Apr 28, 2024
1 parent 6d75884 commit e4744aa
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
28 changes: 28 additions & 0 deletions css/leptonChrome.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions css/leptonChromeESR.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions src/theme/_non_native_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
appearance: none !important;
}

menu,
menuitem {
border-radius: 0 !important;
}

/* Menu item text also needs native drawing disabled. */
menu > .menu-text,
menuitem > .menu-text,
Expand Down Expand Up @@ -95,6 +100,9 @@
menuitem[type="radio"] {
appearance: none !important; /* to override more specific selectors above. */
width: unset !important;
.menu-iconic-icon {
appearance: none !important;
}
}

.menu-iconic > .menu-iconic-left,
Expand Down Expand Up @@ -140,6 +148,10 @@
padding: 0 !important;
/* The side margins should align with the start of the menu item text. */
margin: 2px 1em !important;

&::before {
display: none !important; /* Original: block */
}
}

//-- Global - Menu Popup -----------------------------------------------------
Expand Down

0 comments on commit e4744aa

Please sign in to comment.