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

Change the default theme colors. #61

Merged
merged 1 commit into from
Oct 18, 2024
Merged

Change the default theme colors. #61

merged 1 commit into from
Oct 18, 2024

Conversation

WhalesState
Copy link

image

image

@@ -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.
Copy link
Member

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.

Copy link
Author

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);
Copy link
Member

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?

Copy link
Author

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.

Copy link
Member

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.

Copy link
Author

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.

@Bioblaze
Copy link
Member

lol funny how we removed the redot theme XD

@Bioblaze Bioblaze merged commit a06886f into blazium-engine:blazium-dev Oct 18, 2024
22 checks passed
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.

5 participants