From 04e15aba61e47658a01060f568da92b465fa9e91 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sat, 31 Jul 2021 00:03:00 +0300 Subject: [PATCH] add multi-image background to bookmark toolbar if theme has header image This is a workaround for an issue where the toolbar background may be transparent if theme uses non-opaque toolbar background-color --- chrome/autohide_bookmarks_toolbar.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/chrome/autohide_bookmarks_toolbar.css b/chrome/autohide_bookmarks_toolbar.css index 1e68dec..a3ed919 100644 --- a/chrome/autohide_bookmarks_toolbar.css +++ b/chrome/autohide_bookmarks_toolbar.css @@ -23,6 +23,13 @@ See the above repository for updates as well as full license text. */ z-index: 1; } +:root[lwtheme-image] #PersonalToolbar{ + background-color: transparent !important; + background-position: top left,top left,var(--lwt-background-alignment,top left); + background-position-y:top,top,calc(-2 * (var(--tab-block-margin) + var(--toolbarbutton-inner-padding) + var(--toolbarbutton-outer-padding)) - var(--tab-min-height) - 16px); + background-image: var(--toolbar-bgimage), linear-gradient(var(--toolbar-bgcolor),var(--toolbar-bgcolor)),var(--lwt-header-image) !important; +} + #PlacesToolbarItems > .bookmark-item, #OtherBookmarks, #PersonalToolbar > #import-button{