Skip to content

Commit 2ab796b

Browse files
committed
Merge pull request godotengine#112360 from DeeJayLSP/more-prop-subsection
Modern Style: Use a StyleBox in signals and groups
2 parents 791565d + 5c4d993 commit 2ab796b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

editor/docks/groups_editor.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ void GroupsEditor::_update_tree() {
204204
local_root->set_text(0, TTR("Scene Groups"));
205205
local_root->set_icon(0, get_editor_theme_icon(SNAME("PackedScene")));
206206
local_root->set_custom_bg_color(0, get_theme_color(SNAME("prop_subsection"), EditorStringName(Editor)));
207+
local_root->set_custom_stylebox(0, get_theme_stylebox(SNAME("prop_subsection_stylebox"), EditorStringName(Editor)));
207208
local_root->set_selectable(0, false);
208209

209210
List<StringName> scene_keys;
@@ -241,6 +242,7 @@ void GroupsEditor::_update_tree() {
241242
global_root->set_text(0, TTR("Global Groups"));
242243
global_root->set_icon(0, get_editor_theme_icon(SNAME("Environment")));
243244
global_root->set_custom_bg_color(0, get_theme_color(SNAME("prop_subsection"), EditorStringName(Editor)));
245+
global_root->set_custom_stylebox(0, get_theme_stylebox(SNAME("prop_subsection_stylebox"), EditorStringName(Editor)));
244246
global_root->set_selectable(0, false);
245247

246248
for (const StringName &E : keys) {

editor/scene/connections_dialog.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,6 +1627,7 @@ void ConnectionsDock::update_tree() {
16271627
section_item->set_selectable(0, false);
16281628
section_item->set_editable(0, false);
16291629
section_item->set_custom_bg_color(0, get_theme_color(SNAME("prop_subsection"), EditorStringName(Editor)));
1630+
section_item->set_custom_stylebox(0, get_theme_stylebox(SNAME("prop_subsection_stylebox"), EditorStringName(Editor)));
16301631
section_item->set_metadata(0, doc_class_name);
16311632
}
16321633

0 commit comments

Comments
 (0)