Skip to content

Commit

Permalink
Add: Compatibility - Win11 Mode #580
Browse files Browse the repository at this point in the history
  • Loading branch information
black7375 committed Jan 29, 2023
1 parent d253553 commit 700335e
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
13 changes: 13 additions & 0 deletions css/leptonChrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -10514,6 +10514,11 @@
--context-menu-background-padding: 3px;
--menu-background-padding-default: 0px;
}
@supports -moz-bool-pref("userChrome.compatibility.os.win11") {
:root {
--context-menu-background-padding: 5px;
}
}
menupopup:is(#historyMenuPopup, #bookmarksMenuPopup) .menu-iconic > .menu-iconic-left,
menupopup:is(#historyMenuPopup, #bookmarksMenuPopup) .menuitem-iconic > .menu-iconic-left,
menupopup:not([placespopup="true"]) .menu-iconic > .menu-iconic-left,
Expand All @@ -10523,6 +10528,14 @@
padding-inline-start: 5px !important;
margin-inline-end: 8px !important;
}
@supports -moz-bool-pref("userChrome.compatibility.os.win11") {
menupopup:is(#historyMenuPopup, #bookmarksMenuPopup) .menu-iconic > .menu-iconic-left,
menupopup:is(#historyMenuPopup, #bookmarksMenuPopup) .menuitem-iconic > .menu-iconic-left,
menupopup:not([placespopup="true"]) .menu-iconic > .menu-iconic-left,
menupopup:not([placespopup="true"]) .menuitem-iconic > .menu-iconic-left {
box-sizing: content-box;
}
}
menupopup:is(#historyMenuPopup, #bookmarksMenuPopup) .menu-accel,
menupopup:is(#historyMenuPopup, #bookmarksMenuPopup) .menu-iconic-accel,
menupopup:not([placespopup="true"]) .menu-accel,
Expand Down
13 changes: 13 additions & 0 deletions css/leptonContent.css
Original file line number Diff line number Diff line change
Expand Up @@ -2912,6 +2912,11 @@
--context-menu-background-padding: 3px;
--menu-background-padding-default: 0px;
}
@supports -moz-bool-pref("userChrome.compatibility.os.win11") {
:root {
--context-menu-background-padding: 5px;
}
}
menupopup:is(#historyMenuPopup, #bookmarksMenuPopup) .menu-iconic > .menu-iconic-left,
menupopup:is(#historyMenuPopup, #bookmarksMenuPopup) .menuitem-iconic > .menu-iconic-left,
menupopup:not([placespopup="true"]) .menu-iconic > .menu-iconic-left,
Expand All @@ -2921,6 +2926,14 @@
padding-inline-start: 5px !important;
margin-inline-end: 8px !important;
}
@supports -moz-bool-pref("userChrome.compatibility.os.win11") {
menupopup:is(#historyMenuPopup, #bookmarksMenuPopup) .menu-iconic > .menu-iconic-left,
menupopup:is(#historyMenuPopup, #bookmarksMenuPopup) .menuitem-iconic > .menu-iconic-left,
menupopup:not([placespopup="true"]) .menu-iconic > .menu-iconic-left,
menupopup:not([placespopup="true"]) .menuitem-iconic > .menu-iconic-left {
box-sizing: content-box;
}
}
menupopup:is(#historyMenuPopup, #bookmarksMenuPopup) .menu-accel,
menupopup:is(#historyMenuPopup, #bookmarksMenuPopup) .menu-iconic-accel,
menupopup:not([placespopup="true"]) .menu-accel,
Expand Down
6 changes: 6 additions & 0 deletions src/icons/layout/_menu_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ $_initialMenus: selector.append(
:root {
--context-menu-background-padding: 3px;
--menu-background-padding-default: 0px;
@include Option("userChrome.compatibility.os.win11") {
--context-menu-background-padding: 5px;
}
}

@include NativeMenuPopup {
Expand All @@ -112,6 +115,9 @@ $_initialMenus: selector.append(
padding-block: 0 !important;
padding-inline-start: 5px !important;
margin-inline-end: 8px !important;
@include Option("userChrome.compatibility.os.win11") {
box-sizing: content-box;
}
}
}
.menu-accel, .menu-iconic-accel {
Expand Down
1 change: 1 addition & 0 deletions user.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ user_pref("userChrome.rounding.square_tab", false);
// -- User Chrome --------------------------------------------------------------
// user_pref("userChrome.theme.proton_color.dark_blue_accent", true);
// user_pref("userChrome.theme.monospace", true);
// user_pref("userChrome.compatibility.os.win11", true);

// user_pref("userChrome.decoration.disable_panel_animate", true);
// user_pref("userChrome.decoration.disable_sidebar_animate", true);
Expand Down

0 comments on commit 700335e

Please sign in to comment.