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

DarkModeEnabled = true not having any effect #2434

Open
SkinnySackboy opened this issue Aug 23, 2024 · 1 comment
Open

DarkModeEnabled = true not having any effect #2434

SkinnySackboy opened this issue Aug 23, 2024 · 1 comment

Comments

@SkinnySackboy
Copy link

Hi all,

Firstly, what a great project, IJW!

I've got a quick question about dark mode, which is the only thing I was unable to get to work. I'm setting DarkModeEnabled = true but this seems to have no effect, even in a bare bones simple application. Am I missing some additional configuration?

Thanks in advance.

@SkinnySackboy SkinnySackboy changed the title DarkModeEnabled = true DarkModeEnabled = true not having any effect Aug 23, 2024
@PhilipDn
Copy link

I'm not sure about this, but I think "DarkModeEnabled" can only be used to DISABLE dark mode for the dashboard if you have dark mode enabled for all your apps in Windows. It cannot be used to enable dark mode for the dashboard if it's not already enabled in Windows.

Try this - right-click on your Windows desktop and select "Personalize". In the Personalization control panel, select "Colors" on the left, and then under "Choose your default app mode" select "Dark". After a few seconds, all your apps (if they inherit from Windows) will switch to "dark" mode. The Hangfire dashboard will also switch to dark mode, UNLESS you specify "DarkModeEnabled = false" in which case it will run in light mode even if all the apps (including your browsers) are in dark mode.

There is also a "UseDarkModeSupportForDashboard()" option for the Hangfire configuration, but this takes "assembly" and "resource" parameters and I'm not sure what needs to be supplied for these parameters. This option does not seem to be required for "DarkModeEnabled" to work (as described above).

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

No branches or pull requests

2 participants