[Scene] Add SceneStringNames::panel
This commit is contained in:
@ -717,7 +717,7 @@ void GraphEdit::_notification(int p_what) {
|
||||
|
||||
zoom_label->set_custom_minimum_size(Size2(48, 0) * theme_cache.base_scale);
|
||||
|
||||
menu_panel->add_theme_style_override("panel", theme_cache.menu_panel);
|
||||
menu_panel->add_theme_style_override(SceneStringName(panel), theme_cache.menu_panel);
|
||||
} break;
|
||||
case NOTIFICATION_READY: {
|
||||
Size2 hmin = h_scrollbar->get_combined_minimum_size();
|
||||
@ -1536,7 +1536,7 @@ void GraphEdit::_minimap_draw() {
|
||||
Ref<StyleBoxFlat> sb_minimap = minimap->theme_cache.node_style->duplicate();
|
||||
|
||||
// Override default values with colors provided by the GraphNode's stylebox, if possible.
|
||||
Ref<StyleBoxFlat> sb_frame = graph_frame->get_theme_stylebox(graph_frame->is_selected() ? SNAME("panel_selected") : SNAME("panel"));
|
||||
Ref<StyleBoxFlat> sb_frame = graph_frame->get_theme_stylebox(graph_frame->is_selected() ? SNAME("panel_selected") : SceneStringName(panel));
|
||||
if (sb_frame.is_valid()) {
|
||||
Color node_color = sb_frame->get_bg_color();
|
||||
if (graph_frame->is_tint_color_enabled()) {
|
||||
|
||||
Reference in New Issue
Block a user