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

Fix theme updating of the inspector sections #93000

Merged

Conversation

Chaosus
Copy link
Member

@Chaosus Chaosus commented Jun 10, 2024

Fix #70356

I think it's more precise version than #70381 (not the whole inspector tree is updating, only sections to be redrawn) and have a chance to be merged.

Also fixes few incorrect places in code.
PS: EditorInspectorSection seems to be an internal class, so it's safe to merge without breaking change for the users.

@Chaosus Chaosus added this to the 4.3 milestone Jun 10, 2024
@Chaosus Chaosus force-pushed the fix_inspector_section_theming_update branch 3 times, most recently from a3c6bab to 035b411 Compare June 10, 2024 20:47
@Chaosus Chaosus modified the milestones: 4.3, 4.x Jun 10, 2024
@Chaosus Chaosus force-pushed the fix_inspector_section_theming_update branch from 035b411 to c5de67b Compare June 10, 2024 20:59
@Chaosus Chaosus modified the milestones: 4.x, 4.3 Jun 10, 2024
@Chaosus Chaosus force-pushed the fix_inspector_section_theming_update branch 2 times, most recently from 6e8c864 to 388f93e Compare June 10, 2024 21:09
@akien-mga akien-mga requested a review from KoBeWi June 11, 2024 15:03
@@ -1657,7 +1661,7 @@ void EditorInspectorSection::property_can_revert_changed(const String &p_path, b
}

void EditorInspectorSection::_bind_methods() {
ClassDB::bind_method(D_METHOD("setup", "section", "label", "object", "bg_color", "foldable"), &EditorInspectorSection::setup);
ClassDB::bind_method(D_METHOD("setup", "section", "label", "object", "bg_color", "foldable", "indent_depth", "level"), &EditorInspectorSection::setup, DEFVAL(0), DEFVAL(1));
Copy link
Member

Choose a reason for hiding this comment

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

I wonder why this is exposed 🤔

editor/editor_inspector.cpp Outdated Show resolved Hide resolved
@Chaosus Chaosus force-pushed the fix_inspector_section_theming_update branch from 388f93e to 89dd710 Compare June 19, 2024 16:38
@akien-mga akien-mga merged commit ef90a7e into godotengine:master Jun 20, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@Chaosus Chaosus deleted the fix_inspector_section_theming_update branch June 20, 2024 16:53
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.

Changing the editor's theme does not affect the scrollable property headers in the inspector immediately
3 participants