mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix coloring of the renderer options button
(cherry picked from commit ac7a4f6e87)
This commit is contained in:
parent
4ff705b37e
commit
b4a1bfd6d5
1 changed files with 5 additions and 3 deletions
|
|
@ -6494,13 +6494,15 @@ void EditorNode::_bottom_panel_raise_toggled(bool p_pressed) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditorNode::_update_renderer_color() {
|
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));
|
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));
|
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));
|
renderer->add_theme_color_override("font_color", Color::hex(0x5586a4ff));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue