easonwong-de / Adaptive-Tab-Bar-Colour

Changes the colour of Firefox tab bar to match the website theme.
https://addons.mozilla.org/firefox/addon/adaptive-tab-bar-colour/
MIT License
334 stars 12 forks source link

Overwriting Specific Firefox CSS Variables as Advance Settings #38

Open Josch- opened 1 year ago

Josch- commented 1 year ago

Hi,

thanks a lot for this useful Add-On.

I have one problem - the URL field gets the same color, that I set for a specific URL. That color or - with the slider "URL field color" an even darker color. I would prefer a simple white (Tab and Toolbar color is enough, a colored URL field is too much) and tried it with an additional chrome/userChrome.css:

#urlbar-background {
    background: white !important;
}

But that doesn't overwrite the colors set by your Add-On.

How can I achieve this?

Any help will be highly appreciated.

Thanks a lot in advance!

easonwong-de commented 1 year ago

Hello! @Josch-, your CSS code seems to work pretty well. The URL background gets overwritten by the CSS on my end. (I changed the colour to blue for aesthetics)

Screenshot 2022-12-15 at 02 08 28
KEDO-GmbH commented 1 year ago

Hi,

after re-create the userCrome.css it now works for mee, too :-)

Could you integrate an option to set the URL field color in your Add-ON? That would be perfect.

Thanks a lot and best wishes,

Josch

easonwong-de commented 1 year ago

Hello,

I might not add functions to set specific colour directly. Instead, I’m thinking about letting users set specific CSS variables explicitly as advanced settings, e.g. –lwt-accent-color for the tab bar. But that might not come very soon. So, I would recommand you keeping using CSS theme for the present.

Josch- commented 1 year ago

Hi,

that is a good idea. I'll be surprised when you get to it :-) Thanks a lot for this helpful Add-On!

Best wishes,

Josch