Fix: audio buses buttons hard to see if pressed or not
This commit is contained in:
parent
840ac8c018
commit
0e5daa7436
|
@ -632,21 +632,24 @@ EditorAudioBus::EditorAudioBus(EditorAudioBuses *p_buses) {
|
||||||
solo = memnew(ToolButton);
|
solo = memnew(ToolButton);
|
||||||
solo->set_text("S");
|
solo->set_text("S");
|
||||||
solo->set_toggle_mode(true);
|
solo->set_toggle_mode(true);
|
||||||
solo->set_modulate(Color(0.8, 1.2, 0.8));
|
solo->add_color_override("font_color_pressed", Color(0.2, 0.9, 0.2));
|
||||||
|
solo->add_color_override("font_color_hover", Color(0.6, 0.9, 0.6));
|
||||||
solo->set_focus_mode(FOCUS_NONE);
|
solo->set_focus_mode(FOCUS_NONE);
|
||||||
solo->connect("pressed", this, "_solo_toggled");
|
solo->connect("pressed", this, "_solo_toggled");
|
||||||
hbc->add_child(solo);
|
hbc->add_child(solo);
|
||||||
mute = memnew(ToolButton);
|
mute = memnew(ToolButton);
|
||||||
mute->set_text("M");
|
mute->set_text("M");
|
||||||
mute->set_toggle_mode(true);
|
mute->set_toggle_mode(true);
|
||||||
mute->set_modulate(Color(1.2, 0.8, 0.8));
|
mute->add_color_override("font_color_pressed", Color(0.9, 0.2, 0.2));
|
||||||
|
mute->add_color_override("font_color_hover", Color(0.9, 0.6, 0.6));
|
||||||
mute->set_focus_mode(FOCUS_NONE);
|
mute->set_focus_mode(FOCUS_NONE);
|
||||||
mute->connect("pressed", this, "_mute_toggled");
|
mute->connect("pressed", this, "_mute_toggled");
|
||||||
hbc->add_child(mute);
|
hbc->add_child(mute);
|
||||||
bypass = memnew(ToolButton);
|
bypass = memnew(ToolButton);
|
||||||
bypass->set_text("B");
|
bypass->set_text("B");
|
||||||
bypass->set_toggle_mode(true);
|
bypass->set_toggle_mode(true);
|
||||||
bypass->set_modulate(Color(1.1, 1.1, 0.8));
|
bypass->add_color_override("font_color_pressed", Color(0.9, 0.9, 0.2));
|
||||||
|
bypass->add_color_override("font_color_hover", Color(0.9, 0.9, 0.6));
|
||||||
bypass->set_focus_mode(FOCUS_NONE);
|
bypass->set_focus_mode(FOCUS_NONE);
|
||||||
bypass->connect("pressed", this, "_bypass_toggled");
|
bypass->connect("pressed", this, "_bypass_toggled");
|
||||||
hbc->add_child(bypass);
|
hbc->add_child(bypass);
|
||||||
|
|
Loading…
Reference in New Issue