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 theming renderer colors #93229

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

passivestar
Copy link
Contributor

These were already exposed to theming but unused in code

Slightly brighter colors in a theme:

Before After
before after

@@ -7117,6 +7114,8 @@ EditorNode::EditorNode() {
renderer->set_focus_mode(Control::FOCUS_NONE);
renderer->set_tooltip_text(TTR("Choose a rendering method.\n\nNotes:\n- On mobile platforms, the Mobile rendering method is used if Forward+ is selected here.\n- On the web platform, the Compatibility rendering method is always used."));

callable_mp(this, &EditorNode::_update_renderer_color).call_deferred();
Copy link
Member

Choose a reason for hiding this comment

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

I've never seen this form of using call_deferred() in C++ before, but I guess it makes sense to avoid String usage. We should probably start using it in other places too.

Copy link
Contributor Author

@passivestar passivestar Jun 16, 2024

Choose a reason for hiding this comment

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

You are already using it :)

callable_mp(this, &EditorNode::_begin_first_scan).call_deferred();

Here's the commit: 0e8f90f

editor/editor_node.cpp Outdated Show resolved Hide resolved
@akien-mga akien-mga merged commit 0fd5aad into godotengine:master Jun 18, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

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.

4 participants