mwalbeck / nextcloud-breeze-dark

A Breeze Dark theme for Nextcloud
GNU Affero General Public License v3.0
313 stars 56 forks source link

How to enable dark theme #293

Closed 807801002 closed 2 years ago

807801002 commented 2 years ago

I've enabled app and enabled all the checkbox and saved and refreshed page,but nothing changed at my page theme. image image image

mwalbeck commented 2 years ago

The theme not activating is a combination of your browser and the automated activation option being enabled. When that option is enabled the theme relies on the prefers-color-scheme CSS feature to enable or disable the theme. https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme

When using the option your browser would report your preference based on the theme you use for your browser. If you're using Chrome then it doesn't really seem to work at the moment, but Firefox does work as intended.

If you just want the theme to be enabled at all times you can just disable that option, and it will stay enable or disabled based on the toggled option in either personal or admin settings.