diff options
author | groud <gilles.roudiere@gmail.com> | 2019-01-11 22:05:28 +0100 |
---|---|---|
committer | groud <gilles.roudiere@gmail.com> | 2019-01-24 23:02:53 +0100 |
commit | cb37de33ad84fcb76399fc13fa7974cb596f0e6b (patch) | |
tree | 9776a599c2ee596016f5df86a5c401c7536b88a4 /editor | |
parent | 7fa41f17a608c75d164d313331105140b69cf494 (diff) |
Adds color to the audio buses buttons
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_audio_buses.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/editor/editor_audio_buses.cpp b/editor/editor_audio_buses.cpp index 5d0abef4b8..6593eb8f03 100644 --- a/editor/editor_audio_buses.cpp +++ b/editor/editor_audio_buses.cpp @@ -75,9 +75,16 @@ void EditorAudioBus::_notification(int p_what) { disabled_vu = get_icon("BusVuFrozen", "EditorIcons"); + Color solo_color = Color::html(EditorSettings::get_singleton()->is_dark_theme() ? "#ffe337" : "#ffeb70"); + Color mute_color = Color::html(EditorSettings::get_singleton()->is_dark_theme() ? "#ff2929" : "#ff7070"); + Color bypass_color = Color::html(EditorSettings::get_singleton()->is_dark_theme() ? "#22ccff" : "#70deff"); + solo->set_icon(get_icon("AudioBusSolo", "EditorIcons")); + solo->add_color_override("icon_color_pressed", solo_color); mute->set_icon(get_icon("AudioBusMute", "EditorIcons")); + mute->add_color_override("icon_color_pressed", mute_color); bypass->set_icon(get_icon("AudioBusBypass", "EditorIcons")); + bypass->add_color_override("icon_color_pressed", bypass_color); bus_options->set_icon(get_icon("GuiMiniTabMenu", "EditorIcons")); |