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

Allow negative contrast values in the editor theme settings #48534

Merged

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented May 7, 2021

master version of #48540.

When using a negative contrast value, the base color will be lightened to create the derivative colors instead of being darkened.

This can lead to better-looking themes, especially for light themes.

I also fixed the default theme contrast value not matching the new default.

See #48477 (comment).

Preview

Light theme

Light theme

Custom theme based on Light theme with base color set to #ddd and contrast to -0.08

Custom theme

When using a negative contrast value, the base color will be lightened
to create the derivative colors instead of being darkened.

This can lead to better-looking themes, especially for light themes.
@Calinou Calinou added this to the 4.0 milestone May 7, 2021
@Calinou
Copy link
Member Author

Calinou commented May 7, 2021

PS: It would be interesting to see whether we should change the Light theme preset to use a negative contrast. Any opinions?

@akien-mga akien-mga merged commit 3e71009 into godotengine:master May 9, 2021
@akien-mga
Copy link
Member

Thanks!

PS: It would be interesting to see whether we should change the Light theme preset to use a negative contrast. Any opinions?

Might be worth a try, but needs feedback from Light theme users (I tend to stick with the default so Dark theme).

@Calinou Calinou deleted the editor-theme-allow-negative-contrast branch August 3, 2021 15:59
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.

2 participants