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

Add web theme (light/dark) configuration in sidekiq.yml #4453

Closed

Conversation

kihaya
Copy link

@kihaya kihaya commented Feb 7, 2020

Please See: #4409

background

#4231 enables sidekiq web ui to change the theme depending on OS appearence setting (using media query). However, currently no way to force user to see specific theme of web ui (#4231 (comment)).

What

This PR enable sidekiq to configure web theme (light or dark) in sidekiq.yml. Those who (OS) does not support prefers-color-scheme can now enjoy the dark mode (it ease to eyes).

@mperham
Copy link
Collaborator

mperham commented Feb 7, 2020

I think this is not a good idea. You force dark upon all who want the light theme.

@mperham mperham closed this Feb 7, 2020
@kihaya
Copy link
Author

kihaya commented Feb 7, 2020

@mperham

You force dark upon all who want the light theme.

It's sorry for my poor explanation. Could you tell me for which part do you think so ?

This PR intends to:

  • Enable to switch light or dark theme by configuration.
  • If no specific configuration given, theme follows os settings as usual.

@mperham
Copy link
Collaborator

mperham commented Feb 7, 2020

Yes, but if the config says "dark", the Web UI will always use "dark", even if the user's environment wants to use "light".

@damuz91
Copy link

damuz91 commented Jul 20, 2020

@mperham but shouldn't the user config override what the environment 'wants'?

@mperham
Copy link
Collaborator

mperham commented Jul 20, 2020

@damuz91 I'm confused. The user's config in their OS / browser will control the color scheme used, always. Remember, teams of people use the Sidekiq UI. One person might want dark, another might want light. The admin setting up sidekiq.yml should have no say in the matter.

@jcquarto
Copy link

I find this confusing, very much so. It's one thing to have Sidekiq match a user's OS theme when there's no explicit setting -- which is what a team can do if they want their members to see it. But have you had anyone over the age of 40 look at your dark theme? red text on black? This is madness. There absolutely should be a mechanism by which a developer can force a theme on his own machine without having to switch the OS color scheme. Maybe let the YML file take a ENV variable ? that way, in development I will have my own ENV file anyway, and I can set the theme however i like it.

This reminds me of a story from Amazon way way way back in the day. Like, 2001/2002. I bought a book for a relative on Gardening. Thereafter, despite the fact that I never ever had bought a gardening book previously or since, Amazon kept suggesting gardening books to me. A few years later that algorithm change, thank god. It a fine example of developers optimizing for something that is none of their business just for the sake of being cool. It's not Sidekiq's job to care what theme my OS has. Let me worry about that. If you are going to enforce that bit of your-opinion-on-good-design on me, at least make it easy for me to enforce my-own-opinion-on-good-design on myself.

Either that, or I completely have misunderstood whether we can set the theme or not. Can't find much in the way of docs, though I do see a lot of smoke on the topic. (I'm kinda aghast that any of us are spending any mental cycles kvetching on this no-brainer topic of theme. This isn't WordPress.). In the meantime, the dark theme is , just IMHO, a poor choice. I would love for Mike to build me a house; that doesn't mean I want him to pick the paint on my walls.

@seuros
Copy link
Collaborator

seuros commented Aug 24, 2020

@jcquarto , are you aware you can assemble own house and even have the wall transparent glass if you wish ?

In other word, Mike decided make that dashboard as simple as possible. If your theme is dark, it will be dark, if your theme is light, it will be light.

If you want customization, you can mount your own copy of engine and customize it or just interact with the API directly.
You have to support any extra feature manually then, since you are not following the convention.

@mperham
Copy link
Collaborator

mperham commented Aug 24, 2020

As a guy who is over 40 years old, I would welcome any PRs with CSS improvements to the dark theme.

@mperham
Copy link
Collaborator

mperham commented Aug 24, 2020

#4674

@mperham
Copy link
Collaborator

mperham commented Aug 24, 2020

^^^ That took me one hour. @jcquarto Want to try that PR and give me feedback?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants