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

Use system's settings for default theme #41425

Merged
merged 4 commits into from May 21, 2024
Merged

Use system's settings for default theme #41425

merged 4 commits into from May 21, 2024

Conversation

avatus
Copy link
Contributor

@avatus avatus commented May 10, 2024

Currently, if no user preferences are set, and no theme has been chosen on this device, the default is automatically "Light Theme". This change will instead defer to the system's preferred theme

af334ef39917510e82f87b47b0e1fe40.mp4

changelog: The default theme of teleport now defers to the system's setting

@avatus
Copy link
Contributor Author

avatus commented May 10, 2024

@ryanclark I also removed the old deprecated setting for theme (it was marked to be removed in 15). I've removed the backports and will just make this change from v16+

Currently, if no user preferences are set, and no theme has been chosen
on this device, the default is automatically "Light Theme". This change
will instead defer to the system's preferred theme
This change makes 'unspecified' the default option for user preferences
which will allow the frontend to assume "unspecified" means "use the
system setting"
@avatus
Copy link
Contributor Author

avatus commented May 16, 2024

I updated to prevent the backend from making Light the default for new users. Could you guys test around again for me? Existing users, new users, (make sure to remove the localStorage to simulate an actual real new user), and then update the settings and what not. Please and ty!

@avatus avatus requested review from ryanclark and rudream May 16, 2024 18:12
@avatus
Copy link
Contributor Author

avatus commented May 21, 2024

friendly ping @ryanclark @rudream

@avatus avatus added this pull request to the merge queue May 21, 2024
Merged via the queue into master with commit 9714335 May 21, 2024
41 checks passed
@avatus avatus deleted the avatus/system_theme branch May 21, 2024 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants