@@ -1014,13 +1014,13 @@ void PopupMenu::_draw_items() {
10141014 if (theme_cache.font_outline_size > 0 && theme_cache.font_outline_color .a > 0 ) {
10151015 items[i].text_buf ->draw_outline (ci, text_pos, theme_cache.font_outline_size , theme_cache.font_outline_color );
10161016 }
1017- items[i].text_buf ->draw (ci, text_pos, items[i].disabled ? theme_cache.font_disabled_color : ((active_submenu_index == -1 && i == mouse_over) || i == active_submenu_index ? theme_cache.font_hover_color : theme_cache.font_color ));
1017+ items[i].text_buf ->draw (ci, text_pos, items[i].disabled ? theme_cache.font_disabled_color : ((( active_submenu_index == -1 && i == mouse_over) || i == active_submenu_index) ? theme_cache.font_hover_color : theme_cache.font_color ));
10181018 } else {
10191019 Vector2 text_pos = item_ofs + Point2 (0 , Math::floor ((h - items[i].text_buf ->get_size ().y ) / 2.0 ));
10201020 if (theme_cache.font_outline_size > 0 && theme_cache.font_outline_color .a > 0 ) {
10211021 items[i].text_buf ->draw_outline (ci, text_pos, theme_cache.font_outline_size , theme_cache.font_outline_color );
10221022 }
1023- items[i].text_buf ->draw (ci, text_pos, items[i].disabled ? theme_cache.font_disabled_color : ((active_submenu_index == -1 && i == mouse_over) || i == active_submenu_index ? theme_cache.font_hover_color : theme_cache.font_color ));
1023+ items[i].text_buf ->draw (ci, text_pos, items[i].disabled ? theme_cache.font_disabled_color : ((( active_submenu_index == -1 && i == mouse_over) || i == active_submenu_index) ? theme_cache.font_hover_color : theme_cache.font_color ));
10241024 }
10251025 }
10261026
@@ -1035,7 +1035,7 @@ void PopupMenu::_draw_items() {
10351035 if (theme_cache.font_outline_size > 0 && theme_cache.font_outline_color .a > 0 ) {
10361036 items[i].accel_text_buf ->draw_outline (ci, text_pos, theme_cache.font_outline_size , theme_cache.font_outline_color );
10371037 }
1038- items[i].accel_text_buf ->draw (ci, text_pos, i == mouse_over ? theme_cache.font_hover_color : theme_cache.font_accelerator_color );
1038+ items[i].accel_text_buf ->draw (ci, text_pos, ((active_submenu_index == - 1 && i == mouse_over) || i == active_submenu_index) ? theme_cache.font_hover_color : theme_cache.font_accelerator_color );
10391039 }
10401040
10411041 // Cache the item vertical offset from the first item and the height.
0 commit comments