-
-
Notifications
You must be signed in to change notification settings - Fork 32.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
[theme] Rename type
to mode
#22687
[theme] Rename type
to mode
#22687
Conversation
@@ -310,7 +310,7 @@ function AppFrame(props) { | |||
data-ga-event-category="header" | |||
data-ga-event-action="dark" | |||
> | |||
{theme.palette.type === 'light' ? <Brightness4Icon /> : <Brightness7Icon />} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That reminds me (and completely incidental to this PR), but we should really provide an option to return to the browser / system setting. At the moment, once a cookie is set, the mode is fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look great. For the others that might wonder; yes dark mode seems everywhere :)
Breaking changes
Renames
theme.palette.type
totheme.palette.mode
, to better follow the "dark mode" term that is usually used for describing this feature.The changes are supported by the
adaptV4Theme()
for easing the migrationPart of #20012