From 81a94ba8d49123c2265c2c4709e0f803118d3fa2 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sat, 31 Jul 2021 00:21:22 +0300 Subject: [PATCH] Set custom backgrounds always rather than depending on lwtheme-image :root[lwtheme-image] doesn't necessarily work with all themes --- chrome/autohide_bookmarks_toolbar.css | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/chrome/autohide_bookmarks_toolbar.css b/chrome/autohide_bookmarks_toolbar.css index a3ed919..41c174d 100644 --- a/chrome/autohide_bookmarks_toolbar.css +++ b/chrome/autohide_bookmarks_toolbar.css @@ -21,13 +21,11 @@ See the above repository for updates as well as full license text. */ transform-origin: top; transition: transform 135ms linear var(--uc-autohide-toolbar-delay) !important; z-index: 1; -} - -:root[lwtheme-image] #PersonalToolbar{ + /* The following properties should allow the themes with trasparent toolbars to work */ 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; + background-image: var(--toolbar-bgimage), linear-gradient(var(--toolbar-bgcolor),var(--toolbar-bgcolor)),var(--lwt-header-image,var(--lwt-additional-images)) !important; } #PlacesToolbarItems > .bookmark-item,