Skip to content
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

Web client text unreadable in dark mode #3834

Closed
1100101 opened this issue Sep 21, 2022 · 12 comments
Closed

Web client text unreadable in dark mode #3834

1100101 opened this issue Sep 21, 2022 · 12 comments
Labels
good first issue For people who'd like to start contributing pr welcome scope:web type:ui

Comments

@1100101
Copy link
Contributor

1100101 commented Sep 21, 2022

I'm using the latest Transmission from develop, but for a while now I noticed that text in the web client's torrent details, or tracker page is unreadable. It's very light grey text on a white(ish?) background.
I see this on a Windows 11 machine in dark mode (using Firefox or Edge), as well as on an iPad mini, also in dark mode.
Once I switch either device to light mode, the text becomes readable again.

I found #2609 which supposedly should've fixed this?

@ckerr ckerr added scope:web pr welcome good first issue For people who'd like to start contributing type:ui labels Sep 21, 2022
@GaryElshaw
Copy link
Contributor

@ckerr Any tips on where i should start looking to help fix this?

@ckerr
Copy link
Member

ckerr commented Sep 22, 2022

It's likely something in the scss file in web/assets/css. There are a few dark / light mode customizations there @ https://github.com/transmission/transmission/blob/main/web/assets/css/transmission-app.scss#L111

@GaryElshaw
Copy link
Contributor

@1100101 Because it can be weird, if you navigate to line 111 and change these values to transmission-app.scss, does it resolve your issue?

@media (prefers-color-scheme: dark) { --color-fg-primary: #{$grey-400}; --color-fg-secondary: #{$grey-300}; --color-fg-tertiary: #{$grey-200};

@ckerr
Copy link
Member

ckerr commented Sep 22, 2022

(Also to be clear, you have to rebuild the web app before the change will take effect. Sass converts the scss into css, which then gets webpacked up with the rest of the app)

@1100101
Copy link
Contributor Author

1100101 commented Sep 22, 2022

@GaryElshaw Yes, that worked. The text in those screens is now readable again.

Since actually there isn't much difference in the overall appearance of the web interface between dark and light mode (the main window stays white, the menu bar does not change color etc), I decided to use the same values for primary/secondary/tertiary color as for color-schema: light.
Now there really is no difference between light and dark.

@GaryElshaw
Copy link
Contributor

@1100101 Frank can you please show me a screen shot of the change? At some point i want to pull apart the entire theme.

Charles, is the change i've suggested something that should permanently change?

@ckerr
Copy link
Member

ckerr commented Sep 22, 2022

Charles, is the change i've suggested something that should permanently change?

IDK, let's see the screenshot 😸

@1100101
Copy link
Contributor Author

1100101 commented Sep 23, 2022

Here are the requested screenshots:

Light mode

01 light mode

Dark mode (before the change)

02 dark_mode old

Dark mode (after the change)

03 dark_mode new

While the text on the details page is now quite readable, some of the other text values (# of torrents, up/down speed) are now less readable.

@GaryElshaw
Copy link
Contributor

GaryElshaw commented Sep 23, 2022

Thanks for sharing those Frank. Essentially, dark mode is busted right now, and needs reworking for white text to appear on a black background. Thanks for bringing it to the project's attention, i'm not sure when it will be fixed, but it's on the list!

Oh, and you're absolutely right to have copied over those 'day' values. If it can't be fixed in the short-term, those values should be there. Charles, your thoughts?

@ckerr
Copy link
Member

ckerr commented Sep 23, 2022

Yeah, looks to me like the problem isn't the text color, but background color in dark mode should actually be dark

@MechMK1
Copy link

MechMK1 commented Sep 26, 2022

@ckerr Yes, changing the background color is what will actually fix the issue. I've mocked up a web UI, showing what that should look like in the end:

Transmission Dark Mode

Unfortunately, the bars and borders still look a bit too bright, because I did't know how that effect was achieved. I think Github's dark mode theme would be a great starting place to copy values from actually.

@ckerr
Copy link
Member

ckerr commented Oct 21, 2022

Fixed by #3985

@ckerr ckerr closed this as completed Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue For people who'd like to start contributing pr welcome scope:web type:ui
Development

No branches or pull requests

4 participants