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

Spearhead: Add dynamic Dark Mode support for Editor #3030

Closed
wants to merge 1 commit into from

Conversation

pbking
Copy link
Contributor

@pbking pbking commented Jan 14, 2021

Changes proposed in this Pull Request:

When initializing the editor determine the background color and
optionally enabled "dark editor support" based on a luminocity
calculation of that background color

This is a Work in Progress

Related issue(s):

This is related to #2905 which should be retested with this fix.

When initializing the editor determine the background color and
optionally enabled "dark editor support" based on a luminocity
calculation of that background color

This is a Work in Progress
@pbking pbking marked this pull request as draft January 14, 2021 21:00
@pbking pbking changed the title Add dynamic Dark Mode support for Editor Spearhead: Add dynamic Dark Mode support for Editor Jan 14, 2021
*/

// domReady( function() {
setTimeout(()=>{
Copy link
Member

Choose a reason for hiding this comment

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

Is there something we could listen to/wait for rather than just waiting 3 seconds?

@scruffian
Copy link
Member

I tried a different approach here: WordPress/gutenberg#28233

@pbking
Copy link
Contributor Author

pbking commented Jan 18, 2021

Closing in deference of Gutenberg change.

@pbking pbking closed this Jan 18, 2021
@scruffian scruffian deleted the fix/seedlet-dark-editor-support branch January 18, 2021 22:00
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.

None yet

2 participants