Merge pull request #74599 from timothyqiu/colorful-day

Fix coloring of the renderer options button
This commit is contained in:
Rémi Verschelde 2023-03-08 14:07:22 +01:00
commit 465306c363
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -6482,13 +6482,15 @@ void EditorNode::_bottom_panel_raise_toggled(bool p_pressed) {
}
void EditorNode::_update_renderer_color() {
if (renderer->get_text() == "Forward+") {
String rendering_method = renderer->get_selected_metadata();
if (rendering_method == "forward_plus") {
renderer->add_theme_color_override("font_color", Color::hex(0x5d8c3fff));
}
if (renderer->get_text() == "Mobile") {
if (rendering_method == "mobile") {
renderer->add_theme_color_override("font_color", Color::hex(0xa5557dff));
}
if (renderer->get_text() == "Compatibility") {
if (rendering_method == "gl_compatibility") {
renderer->add_theme_color_override("font_color", Color::hex(0x5586a4ff));
}
}