-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[Bug]: enforce_theme=default
Disables Browser-Based Dark/Light Mode Detection
#46217
Comments
Ah, we should just remove |
Currently it does make sense. It is the only way to force browser based choice of theme. for me, that makes sense, as I am using a custom theme, that is designed to work in dark and light mode. If I force either dark or light, it will overwrite the theme completely. |
|
Correct. It used to be that you could just write your theme name "my_theme" directly in "enforce_theme" to apply the theme, and disable user theming. But as always with nextcloud, admin control is slowly getting deprecated.. Now you can only use the build-in themes: dark, dark-highcontrast, default, light, light-highcontrast, opendyslexic. Where default is the current theme. |
Exactly, that's why enforcing |
@pandusen yeah, the custom theming feature you're using is slowly getting deprecated for a few years now. |
Bug description
When the
enforce_theme
parameter inconfig.php
is set todefault
, Nextcloud does not automatically adjust the theme (dark mode or light mode) based on the browser's settings.Steps to reproduce
enforce_theme
parameter inconfig.php
todefault
:Expected behavior
Nextcloud should automatically switch between dark mode and light mode based on the browser's theme settings when the enforce_theme parameter is set to default.
Installation method
None
Nextcloud Server version
29
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: