Skip to content

Is it possible to contrast tab-item.label-content and tab-item.counter font colors against the background color set by the TST Colored Tabs extension #3632

Answered by irvinm
bqback asked this question in Q&A
Discussion options

You must be logged in to vote

So I looked at how TST Colored Tabs is working and they are basically just generating CSS for the background to be passed over to TST a little later.

https://github.com/MurzNN/TST-Colored-tabs/blob/b6ebf80d2603e15a89f5b9816057e7b19cf73fbb/background.js#L111C1-L116C6

    if(ColoredTabs.state.hostsMatchColor !== undefined) {
      ColoredTabs.state.hostsMatchColor.forEach((element, index) => css += `tab-item.coloredTabsHostMatch` + index + ` tab-item-substance {background-color: ` + element + `;}`);
    }
    if(ColoredTabs.state.hostsRegexpColor !== undefined) {
      ColoredTabs.state.hostsRegexpColor.forEach((element, index) => css += `tab-item.coloredTabsHostRegexp` + index + ` tab-item…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bqback
Comment options

@irvinm
Comment options

Answer selected by bqback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants