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

SAK-50134 Portal theme property for auto detecting dark mode should match documentation #12886

Merged
merged 3 commits into from
Oct 1, 2024

Conversation

jkjanetschek
Copy link
Contributor

…tches with documentation

@ern ern changed the title SAK-50134: Portal: Default value of themes property autoDetectDark ma… SAK-50134 Portal theme property for auto detecting dark mode should match documentation Sep 16, 2024
@@ -288,7 +288,7 @@ public void init(ServletConfig config) throws ServletException {
preferenceToolId = serverConfigurationService.getString("portal.preferencestool", "sakai.preferences");
profileToolId = serverConfigurationService.getString("portal.profiletool", "sakai.profile2");
sakaiThemeSwitcherEnabled = serverConfigurationService.getBoolean(PROP_PORTAL_THEMES_SWITCHER, true);
sakaiThemesAutoDetectDarkEnabled = serverConfigurationService.getBoolean(PROP_PORTAL_THEMES_AUTO_DARK, true);
sakaiThemesAutoDetectDarkEnabled = serverConfigurationService.getBoolean(PROP_PORTAL_THEMES_AUTO_DARK, false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jkjanetschek I think the docs should be adjusted to match the code

@jkjanetschek
Copy link
Contributor Author

Do I understand you correctly, that you feel to change the comment in sakai.properties instead to

Enable/disable the OS dark theme auto-detect mode

DEFAULT: true

@ern
Copy link
Contributor

ern commented Sep 25, 2024

Yes many applications these days follow the user's os setting when it comes to dark mode.

change back to  default PROP_PORTAL_THEMES_AUTO_DARK = true
change default.sakai.properties to match default value in code
@ern ern merged commit 51ba177 into sakaiproject:master Oct 1, 2024
5 checks passed
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.

2 participants