-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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
[Paper] Support dark mode brightening based on elevation #21748
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ export const light = { | |
// Consistency between these values is important. | ||
background: { | ||
paper: common.white, | ||
default: grey[50], | ||
default: common.white, | ||
}, | ||
// The colors used to style the action elements. | ||
action: { | ||
|
@@ -61,8 +61,8 @@ export const dark = { | |
}, | ||
divider: 'rgba(255, 255, 255, 0.12)', | ||
background: { | ||
paper: grey[800], | ||
default: '#303030', | ||
paper: '#121212', | ||
default: '#121212', | ||
Comment on lines
+64
to
+65
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that we should explore how to integrate this: Into the library. The fact that we had to extend likely suggest that there is an opportunity. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looking into the usage of background level1 and 2 I see it is for hard-coding elevation into the documentation's appBar, drawer etc. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
We aim to remove the custom theme values of the documentation. It's a signal that the default palette is wrong. We definitely want to fix #18309 |
||
}, | ||
action: { | ||
active: common.white, | ||
|
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.
It was so hard to find an algorithm for the brightening values...
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.
I wonder if 80% of the value wouldn't come from the dark theme palette of grey colors as opposed to the Paper supporting it (which help too). It could be very interesting to integrate it into the system.