MurzNN / TST-Colored-tabs

TST Colored Tabs extension for Mozilla Firefox & Tree Style Tab, that colorize tabs background based on opened domain.
https://addons.mozilla.org/firefox/addon/tst-colored-tabs/
GNU General Public License v3.0
45 stars 13 forks source link

Text-colour settings, or CSS selector for custom-color tabs? #15

Open ELLIOTTCABLE opened 4 years ago

ELLIOTTCABLE commented 4 years ago

So, I use a dark theme, and low-brightness settings for the 15 randomly-assigned TCT colours. Cool!

However, I'd like to be able to use light backgrounds for some of the custom domains; and the light-text instantly becomes invisible:

Screen Shot 2020-06-24 at 10 26 03

This, of course, is unsurprising. However, I'd really like to either:

  1. Be able to select both foreground and background colours per-domain,
  2. have TCT automatically calculate contrast for the text and select between two dark/light text-colours automatically,
  3. or both!
dhasial commented 3 years ago

I have the exact same problem and it's been driving me crazy. I cannot find a CSS property for changing firefox's sidebar text no matter how many keywords I use when searching, and I can't find a damn thing even on Github. I love this extension but I'm ready to dump it, seeing as how useless it is making my tabs :( :-1:

ELLIOTTCABLE commented 2 years ago

@Dhamma-valence It doesn't help with the above issue specifically (because my issue is about setting a dynamic text-colour based on the dynamic background); but if you just want a specific, static text-colour for Tree Style Tab … it's easy as pie. Add the following the the "custom CSS" settings in Tree Style Tab's configuration:

tab-item .label-content {
  color: #ABCDEF;
}

Hope that helped. (Despite being nearly a year late.)