diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-03-23 09:46:59 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-03-28 18:52:09 +0800 |
commit | ccde2bf66fabe319095a9dc3b91cf071313142ba (patch) | |
tree | 74b6919ac49b9be22362878b67acbd46dab78bc9 /editor/import_dock.cpp | |
parent | 6b2481fcfee06c1c946c59cf3f9b21347573d339 (diff) | |
download | redot-engine-ccde2bf66fabe319095a9dc3b91cf071313142ba.tar.gz |
Add property name style toggle to Inspector
Diffstat (limited to 'editor/import_dock.cpp')
-rw-r--r-- | editor/import_dock.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/import_dock.cpp b/editor/import_dock.cpp index 9f1daac69f..4df46f2348 100644 --- a/editor/import_dock.cpp +++ b/editor/import_dock.cpp @@ -564,6 +564,7 @@ void ImportDock::_notification(int p_what) { switch (p_what) { case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: { imported->add_theme_style_override("normal", get_theme_stylebox(SNAME("normal"), SNAME("LineEdit"))); + import_opts->set_property_name_style(EditorPropertyNameProcessor::get_settings_style()); } break; case NOTIFICATION_ENTER_TREE: { @@ -638,6 +639,7 @@ ImportDock::ImportDock() { import_opts = memnew(EditorInspector); content->add_child(import_opts); import_opts->set_v_size_flags(SIZE_EXPAND_FILL); + import_opts->set_property_name_style(EditorPropertyNameProcessor::get_settings_style()); import_opts->connect("property_edited", callable_mp(this, &ImportDock::_property_edited)); import_opts->connect("property_toggled", callable_mp(this, &ImportDock::_property_toggled)); |