Fix: Menu Color - at linux, Bookmark popup

This commit is contained in:
BlaCk_Void 2021-08-22 17:13:57 +09:00
parent df9841eb84
commit 8e615983d0

View file

@ -318,16 +318,18 @@
--menuitem-disabled-hover-background-color: color-mix(in srgb, var(--menuitem-hover-background-color) 40%, transparent) !important;
}
window:is(#bookmarksPanel, #history-panel)[lwt-sidebar="true"] menupopup {
--panel-color: var(--lwt-sidebar-text-color, var(--menu-color)) !important;
--panel-background: var(--lwt-sidebar-background-color, var(--menu-background-color)) !important;
}
window:is(#bookmarksPanel, #history-panel)[lwt-sidebar="true"] menu[_moz-menuactive="true"]:not([disabled="true"]),
window:is(#bookmarksPanel, #history-panel)[lwt-sidebar="true"] menuitem[_moz-menuactive="true"]:not([disabled="true"]) {
--menuitem-hover-background-color: color-mix(in srgb, currentColor 17%, transparent); /* Looks like toolbar button */
/* or var(--lwt-sidebar-highlight-background-color)
If this value is used, unset is required in the default theme.
*/
@media not all and (-moz-gtk-csd-available) {
window:is(#bookmarksPanel, #history-panel)[lwt-sidebar="true"] menupopup {
--panel-color: var(--lwt-sidebar-text-color, var(--menu-color)) !important;
--panel-background: var(--lwt-sidebar-background-color, var(--menu-background-color)) !important;
}
window:is(#bookmarksPanel, #history-panel)[lwt-sidebar="true"] menu[_moz-menuactive="true"]:not([disabled="true"]),
window:is(#bookmarksPanel, #history-panel)[lwt-sidebar="true"] menuitem[_moz-menuactive="true"]:not([disabled="true"]) {
--menuitem-hover-background-color: color-mix(in srgb, currentColor 17%, transparent); /* Looks like toolbar button */
/* or var(--lwt-sidebar-highlight-background-color)
If this value is used, unset is required in the default theme.
*/
}
}
/* Fallback background */
@ -336,14 +338,16 @@
}
/* Default theme color preservation */
:root[lwtheme-mozlightdark] menupopup {
:root[lwtheme-mozlightdark] menupopup:not(#BMB_bookmarksPopup, [placespopup="true"]) {
--menu-color: var(--toolbar-color, var(--in-content-page-color)) !important;
--arrowpanel-background: var(--toolbar-bgcolor, var(--in-content-button-background)) !important; /* --menu-background-color */
}
window:is(#bookmarksPanel, #history-panel)[style*="--newtab-background-color: rgba(249, 249, 251, 1);"] menupopup, /* Default Light Mode */
window:is(#bookmarksPanel, #history-panel)[style*="--newtab-background-color: rgba(43, 42, 51, 1);"] menupopup { /* Default Dark Mode */
--panel-color: var(--menu-color) !important;
--panel-background: var(--menu-background-color) !important;
@media not all and (-moz-gtk-csd-available) {
window:is(#bookmarksPanel, #history-panel)[style*="--newtab-background-color: rgba(249, 249, 251, 1);"] menupopup, /* Default Light Mode */
window:is(#bookmarksPanel, #history-panel)[style*="--newtab-background-color: rgba(43, 42, 51, 1);"] menupopup { /* Default Dark Mode */
--panel-color: var(--menu-color) !important;
--panel-background: var(--menu-background-color) !important;
}
}
/* Fully Dark Mode **********************************************************/