When the enforce_theme parameter in config.php is set to default, Nextcloud does not automatically adjust the theme (dark mode or light mode) based on the browser's settings.
Steps to reproduce
Set the enforce_theme parameter in config.php to default:
Open Nextcloud in Browser and confirm default theme is enforced at settings/user/theming
Observe that Nextcloud does not change its theme based on the browser's theme settings. (Dev Tools ⇾ Rendering ⇾ Emulate CSS media feature prefers-color-scheme)
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?
⚠️ This issue respects the following points: ⚠️
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