From 2a0f40b305b81b129cc5db6dbffbbe9ff028bc90 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Mon, 1 May 2023 12:36:17 +0300 Subject: [PATCH] floating findbar: Derive findbar background from theme colors Previously this just used --toolbar-bgcolor which may have transparency leading to poor readability. Similar results might still happen if theme has poor text-background contrast, but now the result should be less unpredicatable. --- chrome/floating_findbar_on_top.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/floating_findbar_on_top.css b/chrome/floating_findbar_on_top.css index c3e04a4..9dd21f4 100644 --- a/chrome/floating_findbar_on_top.css +++ b/chrome/floating_findbar_on_top.css @@ -33,7 +33,8 @@ findbar > .findbar-container, findbar > .close-icon{ border: 1px solid var(--chrome-content-separator-color); border-width: 0 0 1px 0px; - background: var(--uc-light-bkgnd-color,var(--toolbar-bgcolor)) !important; + background-color: var(--lwt-accent-color) !important; + background-image: linear-gradient(var(--toolbar-bgcolor),var(--toolbar-bgcolor)),var(--lwt-header-image,none); pointer-events: auto; }