add context menu icons #36
This commit is contained in:
parent
afdf696045
commit
5638fd440f
44 changed files with 609 additions and 76 deletions
|
@ -46,9 +46,9 @@
|
|||
--input-error-border-color: #FF848A !important;
|
||||
--zoom-controls-bgcolor: #4A4A4A !important;
|
||||
--arrowpanel-background: #fff !important;
|
||||
--arrowpanel-color: #000 !important;
|
||||
--arrowpanel-color: #1c1c1c !important;
|
||||
--panel-description-color: #000a !important;
|
||||
--panel-disabled-color: #0009 !important;
|
||||
--panel-disabled-color: #9E9E9E !important;
|
||||
--arrowpanel-dimmed: #565656 !important;
|
||||
--arrowpanel-dimmed-further: #707070 !important;
|
||||
--panel-item-hover-bgcolor: #eee !important;
|
||||
|
|
|
@ -386,18 +386,20 @@ panelview .toolbarbutton-1,
|
|||
min-height: calc(16px + var(--uc-contextmenu-menuitem-padding-block) * 2) !important;
|
||||
}
|
||||
|
||||
/* disable context menu when this tweak is applied */
|
||||
@supports not -moz-bool-pref("uc.tweak.revert-context-menu") {
|
||||
/* Context Menu */
|
||||
menupopup,
|
||||
menupopup menuitem,
|
||||
menupopup menu,
|
||||
menupopup menuseparator,
|
||||
menupopup:not(.PanelUI-subView),
|
||||
menupopup:not(.PanelUI-subView) menuitem,
|
||||
menupopup:not(.PanelUI-subView) menu,
|
||||
menupopup:not(.PanelUI-subView) menuseparator,
|
||||
panel {
|
||||
-moz-appearance: none !important;
|
||||
}
|
||||
|
||||
menupopup,
|
||||
menupopup:not(.PanelUI-subView),
|
||||
panel[type="autocomplete-richlistbox"],
|
||||
menulist>menupopup>menucaption {
|
||||
menulist>menupopup:not(.PanelUI-subView)>menucaption {
|
||||
-moz-window-shadow: none !important;
|
||||
background: 0 !important;
|
||||
border: 0 !important;
|
||||
|
@ -412,44 +414,62 @@ panel[type="autocomplete-richlistbox"]>.autocomplete-richlistbox,
|
|||
}
|
||||
|
||||
/* make room for menu shadow */
|
||||
menupopup {
|
||||
menupopup:not(.PanelUI-subView) {
|
||||
padding: 4px 12px 20px !important;
|
||||
margin: -6px -12px -16px !important;
|
||||
}
|
||||
|
||||
#bookmarks-menu-button menupopup {
|
||||
padding: 4px 12px 20px !important;
|
||||
margin: -8px -24px -16px -12px !important;
|
||||
}
|
||||
|
||||
/* cut off shadow so it doesn't get in the way of the menubar items */
|
||||
menubar menupopup {
|
||||
padding: 1px 8px 20px !important;
|
||||
margin: -1px -4px -16px !important;
|
||||
}
|
||||
|
||||
.menupopup-arrowscrollbox {
|
||||
box-shadow:
|
||||
menupopup {
|
||||
--uc-margin: 0 !important;
|
||||
--uc-box-shadow:
|
||||
0 8px 12px #0003,
|
||||
0 4px 5px #0002,
|
||||
0 2px 4px #0002,
|
||||
0 0 0 1px #0001 !important;
|
||||
0 0 0 1px #0001;
|
||||
}
|
||||
|
||||
/* no way to get current firefox theme, using prefers-color-scheme instead */
|
||||
@media (prefers-color-scheme:dark) {
|
||||
.menupopup-arrowscrollbox {
|
||||
box-shadow:
|
||||
menupopup {
|
||||
--uc-box-shadow:
|
||||
0 8px 12px #0003,
|
||||
0 4px 5px #0003,
|
||||
0 2px 4px #0002,
|
||||
0 0 0 1px #0002 !important;
|
||||
0 0 0 1px #0002;
|
||||
}
|
||||
}
|
||||
|
||||
/* use default shadow for subview menupopup (eg. bookmarks) */
|
||||
menupopup.PanelUI-subView {
|
||||
--uc-box-shadow: 0 0 0 1px var(--panel-border-color);
|
||||
--uc-margin: 1px !important;
|
||||
margin-top: -5px !important;
|
||||
}
|
||||
|
||||
.menupopup-arrowscrollbox {
|
||||
box-shadow: var(--uc-box-shadow) !important;
|
||||
}
|
||||
|
||||
.popup-internal-box,
|
||||
.menupopup-arrowscrollbox {
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
.menupopup-arrowscrollbox {
|
||||
margin: var(--uc-margin) !important;
|
||||
}
|
||||
|
||||
.popup-internal-box {
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
.popup-internal-box,
|
||||
.menupopup-arrowscrollbox {
|
||||
padding: var(--uc-contextmenu-padding) !important;
|
||||
border-radius: var(--uc-contextmenu-border-radius) !important;
|
||||
color: inherit !important;
|
||||
|
@ -622,3 +642,4 @@ menuitem[checked="true"]>.menu-iconic-left,
|
|||
font-size: 13.6px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -204,42 +204,61 @@ browsing indicator) */
|
|||
}
|
||||
|
||||
@media not (-moz-platform: macos) {
|
||||
@supports -moz-bool-pref("uc.tweak.horizontal-context-navigation") {
|
||||
#context-navigation {
|
||||
flex-direction: column !important;
|
||||
-moz-box-orient: vertical !important;
|
||||
}
|
||||
@supports not -moz-bool-pref("uc.tweak.revert-context-menu") {
|
||||
@supports -moz-bool-pref("uc.tweak.horizontal-context-navigation") {
|
||||
#context-navigation {
|
||||
flex-direction: column !important;
|
||||
-moz-box-orient: vertical !important;
|
||||
}
|
||||
|
||||
#context-navigation>.menuitem-iconic {
|
||||
-moz-box-pack: start !important;
|
||||
}
|
||||
#context-navigation>.menuitem-iconic {
|
||||
-moz-box-pack: start !important;
|
||||
}
|
||||
|
||||
#context-navigation .menu-iconic-text {
|
||||
display: -moz-box !important;
|
||||
}
|
||||
#context-navigation .menu-iconic-text {
|
||||
display: -moz-box !important;
|
||||
}
|
||||
|
||||
#context-navigation>#context-back .menu-iconic-text::before {
|
||||
content: "Back" !important;
|
||||
}
|
||||
#context-navigation>#context-back .menu-iconic-text::before {
|
||||
content: "Back" !important;
|
||||
}
|
||||
|
||||
#context-navigation>#context-forward .menu-iconic-text::before {
|
||||
content: "Forward" !important;
|
||||
}
|
||||
#context-navigation>#context-forward .menu-iconic-text::before {
|
||||
content: "Forward" !important;
|
||||
}
|
||||
|
||||
#context-navigation>#context-reload .menu-iconic-text::before {
|
||||
content: "Reload" !important;
|
||||
}
|
||||
#context-navigation>#context-reload .menu-iconic-text::before {
|
||||
content: "Reload" !important;
|
||||
}
|
||||
|
||||
#context-navigation>#context-stop .menu-iconic-text::before {
|
||||
content: "Stop" !important;
|
||||
}
|
||||
#context-navigation>#context-stop .menu-iconic-text::before {
|
||||
content: "Stop" !important;
|
||||
}
|
||||
|
||||
#context-navigation>#context-bookmarkpage .menu-iconic-text::before {
|
||||
content: "Bookmark Page" !important;
|
||||
}
|
||||
#context-navigation>#context-bookmarkpage .menu-iconic-text::before {
|
||||
content: "Bookmark Page" !important;
|
||||
}
|
||||
|
||||
#context-navigation>#context-bookmarkpage[starred] .menu-iconic-text::before {
|
||||
content: "Edit Bookmark" !important;
|
||||
#context-navigation>#context-bookmarkpage[starred] .menu-iconic-text::before {
|
||||
content: "Edit Bookmark" !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (-moz-windows-compositor) {
|
||||
@supports -moz-bool-pref("uc.tweak.revert-context-menu") {
|
||||
menupopup {
|
||||
--panel-color: var(--arrowpanel-color) !important;
|
||||
--panel-border-radius: 4px !important;
|
||||
--panel-border-color: var(--arrowpanel-border-color) !important;
|
||||
--panel-background: var(--arrowpanel-background) !important;
|
||||
--menuitem-hover-background-color: var(--panel-item-hover-bgcolor) !important;
|
||||
--menu-background-color: var(--arrowpanel-background) !important;
|
||||
--menu-color: var(--arrowpanel-color) !important;
|
||||
--menuitem-disabled-hover-background-color: #0000 !important;
|
||||
--menu-disabled-color: var(--panel-disabled-color) !important;
|
||||
--menu-border-color: var(--panel-separator-color) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue