From 4545b12bbcedca327b4692c8e73685c33669237f Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Wed, 24 Jan 2024 08:48:48 +0900 Subject: [PATCH] Fix: Theme - Urlbar background on linux default theme #864 --- css/leptonChrome.css | 12 ------------ css/leptonChromeESR.css | 5 ----- src/theme/system_default_theme/_gtk.scss | 6 ------ 3 files changed, 23 deletions(-) diff --git a/css/leptonChrome.css b/css/leptonChrome.css index 1b2b21c0..42fc5d4d 100644 --- a/css/leptonChrome.css +++ b/css/leptonChrome.css @@ -763,11 +763,6 @@ --urlbar-popup-url-color: -moz-accent-color; } } - /* Nightly Compatibility */ - :root:not(:-moz-lwtheme) #urlbar { - --toolbar-field-focus-color: var(--toolbar-field-color); /* Nightly: rgba(0, 0, 0, 1) */ - --toolbar-field-focus-background-color: var(--toolbar-field-background-color); /* Nightly: white */ - } } /*= Mac - Default like color =================================================*/ @supports -moz-bool-pref("layout.css.osx-font-smoothing.enabled") { @@ -14085,19 +14080,12 @@ :root:not(:-moz-lwtheme) .urlbarView-url { --urlbar-popup-url-color: AccentColor; } - /* Nightly Compatibility */ } @media (-moz-bool-pref: "userChrome.theme.system_default") and (-moz-gtk-csd-available) and (-moz-bool-pref: "userChrome.compatibility.accent_color") { :root:not(:-moz-lwtheme) .urlbarView-url { --urlbar-popup-url-color: -moz-accent-color; } } -@media (-moz-bool-pref: "userChrome.theme.system_default") and (-moz-gtk-csd-available) { - :root:not(:-moz-lwtheme) #urlbar { - --toolbar-field-focus-color: var(--toolbar-field-color); /* Nightly: rgba(0, 0, 0, 1) */ - --toolbar-field-focus-background-color: var(--toolbar-field-background-color); /* Nightly: white */ - } -} @media (-moz-bool-pref: "userChrome.theme.system_default") and (-moz-bool-pref: "layout.css.osx-font-smoothing.enabled") { :root:not(:-moz-lwtheme), :root[lwt-default-theme-in-dark-mode] { diff --git a/css/leptonChromeESR.css b/css/leptonChromeESR.css index 590cbe25..edee2db6 100644 --- a/css/leptonChromeESR.css +++ b/css/leptonChromeESR.css @@ -982,11 +982,6 @@ --urlbar-popup-url-color: -moz-accent-color; } } - /* Nightly Compatibility */ - :root:not(:-moz-lwtheme) #urlbar { - --toolbar-field-focus-color: var(--toolbar-field-color); /* Nightly: rgba(0, 0, 0, 1) */ - --toolbar-field-focus-background-color: var(--toolbar-field-background-color); /* Nightly: white */ - } } /*= Mac - Default like color =================================================*/ @supports -moz-bool-pref("layout.css.osx-font-smoothing.enabled") { diff --git a/src/theme/system_default_theme/_gtk.scss b/src/theme/system_default_theme/_gtk.scss index 4a2e4547..fb4ec0f3 100644 --- a/src/theme/system_default_theme/_gtk.scss +++ b/src/theme/system_default_theme/_gtk.scss @@ -5,10 +5,4 @@ --urlbar-popup-url-color: #{$accentColor}; } } - - /* Nightly Compatibility */ - :root:not(:-moz-lwtheme) #urlbar { - --toolbar-field-focus-color: var(--toolbar-field-color); /* Nightly: rgba(0, 0, 0, 1) */ - --toolbar-field-focus-background-color: var(--toolbar-field-background-color); /* Nightly: white */ - } }