1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Highlight Editor Settings categories

This commit is contained in:
Ray Koopa
2017-12-11 12:59:33 +01:00
parent dfb3634c34
commit d0ebcb61c8

View File

@@ -4532,6 +4532,7 @@ void SectionedPropertyEditor::update_category_list() {
for (int i = 0; i < sc; i++) { for (int i = 0; i < sc; i++) {
TreeItem *parent = section_map[metasection]; TreeItem *parent = section_map[metasection];
parent->set_custom_bg_color(0, get_color("prop_subsection", "Editor"));
if (i > 0) { if (i > 0) {
metasection += "/" + sectionarr[i]; metasection += "/" + sectionarr[i];
@@ -4585,7 +4586,7 @@ SectionedPropertyEditor::SectionedPropertyEditor() {
search_box = NULL; search_box = NULL;
VBoxContainer *left_vb = memnew(VBoxContainer); VBoxContainer *left_vb = memnew(VBoxContainer);
left_vb->set_custom_minimum_size(Size2(160, 0) * EDSCALE); left_vb->set_custom_minimum_size(Size2(170, 0) * EDSCALE);
add_child(left_vb); add_child(left_vb);
sections = memnew(Tree); sections = memnew(Tree);