Merge pull request #112360 from DeeJayLSP/more-prop-subsection
Modern Style: Use a StyleBox in signals and groups
This commit is contained in:
@ -204,6 +204,7 @@ void GroupsEditor::_update_tree() {
|
||||
local_root->set_text(0, TTR("Scene Groups"));
|
||||
local_root->set_icon(0, get_editor_theme_icon(SNAME("PackedScene")));
|
||||
local_root->set_custom_bg_color(0, get_theme_color(SNAME("prop_subsection"), EditorStringName(Editor)));
|
||||
local_root->set_custom_stylebox(0, get_theme_stylebox(SNAME("prop_subsection_stylebox"), EditorStringName(Editor)));
|
||||
local_root->set_selectable(0, false);
|
||||
|
||||
List<StringName> scene_keys;
|
||||
@ -241,6 +242,7 @@ void GroupsEditor::_update_tree() {
|
||||
global_root->set_text(0, TTR("Global Groups"));
|
||||
global_root->set_icon(0, get_editor_theme_icon(SNAME("Environment")));
|
||||
global_root->set_custom_bg_color(0, get_theme_color(SNAME("prop_subsection"), EditorStringName(Editor)));
|
||||
global_root->set_custom_stylebox(0, get_theme_stylebox(SNAME("prop_subsection_stylebox"), EditorStringName(Editor)));
|
||||
global_root->set_selectable(0, false);
|
||||
|
||||
for (const StringName &E : keys) {
|
||||
|
||||
@ -1627,6 +1627,7 @@ void ConnectionsDock::update_tree() {
|
||||
section_item->set_selectable(0, false);
|
||||
section_item->set_editable(0, false);
|
||||
section_item->set_custom_bg_color(0, get_theme_color(SNAME("prop_subsection"), EditorStringName(Editor)));
|
||||
section_item->set_custom_stylebox(0, get_theme_stylebox(SNAME("prop_subsection_stylebox"), EditorStringName(Editor)));
|
||||
section_item->set_metadata(0, doc_class_name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user