-
Notifications
You must be signed in to change notification settings - Fork 28
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
Change the default theme colors. #61
Change the default theme colors. #61
Conversation
WhalesState
commented
Oct 18, 2024
@@ -250,7 +250,7 @@ EditorThemeManager::ThemeConfiguration EditorThemeManager::_create_theme_config( | |||
config.color_picker_button_height = 28 * EDSCALE; | |||
config.subresource_hue_tint = EDITOR_GET("docks/property_editor/subresource_hue_tint"); | |||
|
|||
config.default_contrast = 0.3; // Make sure to keep this in sync with the editor settings definition. | |||
config.default_contrast = 0.24; // Make sure to keep this in sync with the editor settings definition. |
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.
Multiple themes use the default contrast, please adjust them accordingly so they do not have unintended visual changes.
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 gave the other themes that was using the default contrast a 0.3 value, also removed redot and blazium presets, we already are the default so we don't need to add a preset.
@@ -7061,6 +7061,7 @@ EditorNode::EditorNode() { | |||
scene_root_parent->set_v_size_flags(Control::SIZE_EXPAND_FILL); | |||
|
|||
scene_root = memnew(SubViewport); | |||
scene_root->set_transparent_background(true); |
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.
Why is this line being added?
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.
this is for the CanvasItemEditor viewport background color, without it, the background will always be gray and will not follow the theme colors when we change it, we can't override the default_clear_color for the viewport with every release, so it's better to use a transparent background instead for the 2D editor.
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 is a fine reason. I am curious if it would have any impact on performance or battery life when using the editor on mobile though.
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 shouldn't have any impact on performance, the rendering server will not draw a clear color for the CanvasItemEditor
SubViewport
.
lol funny how we removed the redot theme XD |