-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Most recent update forced Plain to Plain Dark, causing mismatch to system GTK theme #2667
Comments
Thanks, sorry I misdetected the actual colors finally applied to the UI... I've reverted the commit to drop system-color support d066fb0 so now TST should respect colors defined by GTK+. Could you try the development build?: https://github.com/piroor/treestyletab#development-builds |
Development build fixes it! Thank you! :) |
By the way, I removed the theme "Plain Dark" before I read this issue. TST applies similar colors when the media query to detect dark color scheme is active, but it become impossible to apply the dark colors only for the sidebar. (And there is alternative: https://github.com/piroor/treestyletab/wiki/Plain-Dark-theme-(patch-for-the-theme-%22Plain%22) ) |
Well, "Plain Dark" was just the best way for me to describe the issue. My GTK theme is Adapta-Nokto, so it's already dark, and I have my browser configured to display most pages dark. That might be part of why it looked like that. |
I didn't comment earlier since this was fixed immediately in 3.5.16. But now it's broken again in 3.5.20 😑 Platform (OS): Arch Linux |
"Don't apply system colors when the dark color scheme is activated by the OS itself" I dont understand what was the point of this. Just becuase the OS uses a dark color scheme, we cant use the system colors? 😕 I could swear there used to be a flag for use system colors at some point in the past but dont see it anymore. |
I also thought so, but actually the GTK+ theme color looks not affected to CSS system colors. On my testing environment (Ubuntu 20.04LTS) they are still bright colors even if I choose the Adwaita-dark theme. Here is a screenshot on the testing page http://www.iangraham.org/books/xhtml1/appd/update-23feb2000.html Anyway there are too many factors about colors of TST. Something old workaround you did can produce unexpected coloring. Currently the basic settings I'm testing are:
If you have any difference, please try this combination. |
Firefox added a default setting of Everyone using a dark gtk theme on linux that wanted to continue using the dark theme with firefox had to toggle this to true. Check your |
Yeah, I forgot about having to do that, but I remember it now that @jayywolff mentions it. It was a bummer to have this addon fixed and then suddenly not fixed, but I understand why @piroor was confused, because that sort of extra step you're really only gonna find if you're all-in on dark themes on your Linux setup. |
@piroor ☝️ It might be worth mentioning this in the wiki or readme (however you wanna word it) for linux users that want to use a dark gtk system theme with TST. |
Thank you for re-mentioning about
That was produced with the default preference So, if you really want to use colors defined in the GTK+ theme instead of TST's built-in dark colors (it quotes colors from Firefox's in-content dark theme), you need to use the combination:
TST "Mixed" on GTK+ "Adapta-Nokto" (current default configs): not natural, unmatched colors. TST sidebar and the about:config pages have same colors because TST's built-in dark colors are copied from Firefox's in-content dark color definitions. TST "High Contrast" on GTK+ "Adapta-Nokto" with |
I've added a new FAQ topic: https://github.com/piroor/treestyletab#appearance |
Yeah, I'm not a fan of the high-contrast theme either. Please just revert that commit. |
I think the commit can't be reverted, because the old behavior forces people to change |
Correct, this is how its been ever since firefox 68 introduced this setting In that commit 7c72282 you override the plain style, the mixed style, and the vertigo style to ignore the system colors if the user has a dark gtk theme. The only reason why high-contrast still works with dark gtk themes is because you didnt override the css with the Its a limitation of firefox, unless you can override it somehow via the webextensions API there's not much we can do to get around it. You could always bring back the plain dark theme (not sure why it was removed 🤷♂️) for people that want to use that or tell them to use the Photon color scheme. But most users with a dark gtk theme would want to use their system theme with the plain theme as it looks the best. Everyone that uses dark themes in any app or OS understands that you 9/10 times have to go and find a setting to enable the dark theme so its really not a big deal as long as its documented well |
If you want to use "Plain" theme with GTK+ theme color, here is a workaround: please put these lines to the user style rules. treestyletab/webextensions/sidebar/styles/square/plain.css Lines 47 to 74 in 0859730
I think there are some patterns of Linux users:
And we need to pay attention that default settings for cases 2 and 4 are sadly exclusive.
Of course there are many Linux distributions and Ubuntu is just one of them, and there are many power users matching to the case 4. But I think that the number of people who newly use Linux with the most major distribution will grow. I think the speed of growing is faster than the growing of the number of about case 4 people. (Yes, there is no evidence, this is just my personal biased view.) This is the reason why I chose to configure TST for the case 2 instead of the case 4. I believe that the case 4 experts will find out this workaround information smartly. |
I appreciate your thoughtfulness on this issue, and thanks for including a workaround to bring back the plain theme with system colors. Still at the end of the day though, agree to disagree. Breaking changes are not cool 😞 I also don't have stats to back it up but my thoughts would be that at least 80% of users using a flavor of Linux, a dark gtk theme, firefox, and TST is indeed a power user themselves or their desktop was configured by a power user. It seems extremely unlikely non power user would be running Linux, Firefox (most people use chrome), a dark GTK theme (which is not default in any popular user-friendly distro), and on top of that customizes their web browser experience with addons (other than maybe sometimes an adblocker). To be fair though, I had already assumed us power users lost this battle and went ahead and added custom styles to mimic the plain theme hardcoding some of my gtk theme system colors, but your solution is much simpler 👍 so I'll swap it out with that. If you're going to keep it this way moving forward, could you add that in the FAQ you added regarding this issue or in the wiki somewhere. |
I've updated the FAQ for Linux users: https://github.com/piroor/treestyletab#appearance I hope it helps more people. |
@piroor is there anything more to do with this issue? |
Because of the decisiton at #2667 (comment) I'll do no more about this request for now. I close this. |
Short description
The colors for the Plain style used to inherit the browser theme, which allowed it to match the GTK theme on Linux by default. But for some reason, they are now identical to the Plain Dark theme, which forces some color choices. Many other styles have this behavior. High Contrast does not, but it also has a really wonky background color.
Expected result
Tree Style Tab blends in with the GTK theme by default and looks like a part of Firefox's UI.
Actual result
It sticks out like a sore thumb. It looks like this item in the release notes has something to do with it:
"Always apply the "Photon" color scheme on Linux environments."
Why was this done? It seems counter to your intent as stated in issue 2662.
Environment
The text was updated successfully, but these errors were encountered: