Add property name style toggle to Inspector
This commit is contained in:
@ -201,6 +201,9 @@ void EditorSettingsDialog::_update_shortcuts() {
|
||||
|
||||
Map<String, TreeItem *> sections;
|
||||
|
||||
const EditorPropertyNameProcessor::Style name_style = EditorPropertyNameProcessor::get_settings_style();
|
||||
const EditorPropertyNameProcessor::Style tooltip_style = EditorPropertyNameProcessor::get_tooltip_style(name_style);
|
||||
|
||||
for (List<String>::Element *E = slist.front(); E; E = E->next()) {
|
||||
Ref<ShortCut> sc = EditorSettings::get_singleton()->get_shortcut(E->get());
|
||||
if (!sc->has_meta("original")) {
|
||||
@ -218,9 +221,11 @@ void EditorSettingsDialog::_update_shortcuts() {
|
||||
} else {
|
||||
section = shortcuts->create_item(root);
|
||||
|
||||
String item_name = EditorPropertyNameProcessor::get_singleton()->process_name(section_name);
|
||||
const String item_name = EditorPropertyNameProcessor::get_singleton()->process_name(section_name, name_style);
|
||||
const String tooltip = EditorPropertyNameProcessor::get_singleton()->process_name(section_name, tooltip_style);
|
||||
|
||||
section->set_text(0, item_name);
|
||||
section->set_tooltip(0, EditorPropertyNameProcessor::get_singleton()->make_tooltip_for_name(section_name));
|
||||
section->set_tooltip(0, tooltip);
|
||||
|
||||
if (collapsed.has(item_name)) {
|
||||
section->set_collapsed(collapsed[item_name]);
|
||||
|
||||
Reference in New Issue
Block a user