From cdb336f35ec25e268fcbe632f3b098f839a28230 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Mon, 26 Jul 2021 09:09:50 +0300 Subject: [PATCH] fix some background-color and alignment problems of statusbar --- chrome/status_inside_urlbar.css | 12 +++++++----- chrome/status_inside_urlbar_v2.css | 7 +++++-- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/chrome/status_inside_urlbar.css b/chrome/status_inside_urlbar.css index 1176ce6..e16d897 100644 --- a/chrome/status_inside_urlbar.css +++ b/chrome/status_inside_urlbar.css @@ -3,11 +3,13 @@ See the above repository for updates as well as full license text. */ /* STATUSPANEL INSIDE URLBAR */ +/* This style replaces the urlbar url with statuspanel text when needed. + The _v2 variant replaces the whole contents of the urlbar, including all icons. */ + /************** IMPORTANT WARNING Using this style can lead to long tab switch times (and probably other problems). Everything may be fine when Firefox starts but situation gets gradually worse, although pretty slowly. Relevant information: https://bugzilla.mozilla.org/show_bug.cgi?id=1496065 - As a workaround, the -moz-element background image is removed somewhat often which seems work at first glance. But there might still be some related issues on really long sessions. Just be aware. **************/ @@ -47,13 +49,13 @@ As a workaround, the -moz-element background image is removed somewhat often whi background-image: none !important } -:root[uidensity="compact"] #urlbar .urlbar-input-box::after{ background-position-y: 1px } +:root[uidensity="compact"] #urlbar .urlbar-input-box::after{ background-position-y: 0px } :root[uidensity="touch"] #urlbar .urlbar-input-box::after{ background-position-y: 4px } #statuspanel-inner > #statuspanel-label{ height:3em; min-width: 1000px; - background-color: var(--lwt-toolbar-field-focus) !important; + background-color: var(--lwt-toolbar-field-background-color, #fffc) !important; border: none !important; font-size: 1.15em; color: inherit !important; @@ -67,7 +69,7 @@ As a workaround, the -moz-element background image is removed somewhat often whi /* You will need to adjust these probably as they depend on OS, text size etc. */ #statuspanel-inner{ margin-left: -1px; } -#statuspanel-inner > #statuspanel-label{ margin-left: -2px !important; margin-top: 0px !important; } +#statuspanel-inner > #statuspanel-label{ margin-left: -3px !important; margin-top: 0px !important; } /* OPTIONAL FEATURES */ @@ -92,4 +94,4 @@ As a workaround, the -moz-element background image is removed somewhat often whi /* #statuspanel-inner > #statuspanel-label{ text-align: center } .urlbar-input-box::after{ background-position-x: center !important; } -*/ +*/ \ No newline at end of file diff --git a/chrome/status_inside_urlbar_v2.css b/chrome/status_inside_urlbar_v2.css index 3569209..f035a63 100644 --- a/chrome/status_inside_urlbar_v2.css +++ b/chrome/status_inside_urlbar_v2.css @@ -3,6 +3,9 @@ See the above repository for updates as well as full license text. */ /* STATUSPANEL INSIDE URLBAR */ +/* This _v2 variant "replaces" the whole contents of the urlbar, including all icons, + with statuspanel text when needed. The "normal" variant replaces only the url part. */ + /************** IMPORTANT WARNING Using this style can lead to long tab switch times (and probably other problems). Everything may be fine when Firefox starts but situation gets gradually worse, although pretty slowly. @@ -18,7 +21,7 @@ As a workaround, the -moz-element background image is removed somewhat often whi pointer-events:none; background-repeat: no-repeat; background-image: -moz-element(#statuspanel); - background-position: left 2px; + background-position: left 3px; inset: 1px; } @@ -38,7 +41,7 @@ As a workaround, the -moz-element background image is removed somewhat often whi #statuspanel-inner > #statuspanel-label{ height:3em; min-width: 1000px; - background-color: var(--lwt-toolbar-field-focus) !important; + background-color: var(--lwt-toolbar-field-background-color, #fffc) !important; border: none !important; font-size: 1.15em; color: inherit !important;