Add dropdown to Movie Maker button in editor run bar to access settings
Display Movie Maker button as "pressed" when Movie Maker mode is enabled Fix Movie Maker button colors Use enum for Movie Maker menu options Fix Movie Maker button background when switching themes Apply suggestions from code review Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com> Use a theme variation for button colors Update editor/gui/editor_run_bar.h Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
This commit is contained in:
parent
99f5a3d665
commit
e6038335b2
3 changed files with 53 additions and 21 deletions
|
|
@ -1957,6 +1957,18 @@ void EditorThemeManager::_populate_editor_styles(const Ref<EditorTheme> &p_theme
|
|||
p_theme->set_stylebox("disabled", "RunBarButton", menu_transparent_style);
|
||||
p_theme->set_stylebox(SceneStringName(pressed), "RunBarButton", menu_transparent_style);
|
||||
|
||||
p_theme->set_type_variation("RunBarButtonMovieMakerDisabled", "RunBarButton");
|
||||
p_theme->set_color("icon_normal_color", "RunBarButtonMovieMakerDisabled", Color(1, 1, 1, 0.7));
|
||||
p_theme->set_color("icon_pressed_color", "RunBarButtonMovieMakerDisabled", Color(1, 1, 1, 0.84));
|
||||
p_theme->set_color("icon_hover_color", "RunBarButtonMovieMakerDisabled", Color(1, 1, 1, 0.9));
|
||||
p_theme->set_color("icon_hover_pressed_color", "RunBarButtonMovieMakerDisabled", Color(1, 1, 1, 0.84));
|
||||
|
||||
p_theme->set_type_variation("RunBarButtonMovieMakerEnabled", "RunBarButton");
|
||||
p_theme->set_color("icon_normal_color", "RunBarButtonMovieMakerEnabled", Color(0, 0, 0, 0.7));
|
||||
p_theme->set_color("icon_pressed_color", "RunBarButtonMovieMakerEnabled", Color(0, 0, 0, 0.84));
|
||||
p_theme->set_color("icon_hover_color", "RunBarButtonMovieMakerEnabled", Color(0, 0, 0, 0.9));
|
||||
p_theme->set_color("icon_hover_pressed_color", "RunBarButtonMovieMakerEnabled", Color(0, 0, 0, 0.84));
|
||||
|
||||
// Bottom panel.
|
||||
Ref<StyleBoxFlat> style_bottom_panel = p_config.content_panel_style->duplicate();
|
||||
style_bottom_panel->set_corner_radius_all(p_config.corner_radius * EDSCALE);
|
||||
|
|
@ -2020,12 +2032,6 @@ void EditorThemeManager::_populate_editor_styles(const Ref<EditorTheme> &p_theme
|
|||
style_write_movie_button->set_expand_margin(SIDE_RIGHT, 2 * EDSCALE);
|
||||
p_theme->set_stylebox("MovieWriterButtonPressed", EditorStringName(EditorStyles), style_write_movie_button);
|
||||
|
||||
// Movie writer button colors.
|
||||
p_theme->set_color("movie_writer_icon_normal", EditorStringName(EditorStyles), Color(1, 1, 1, 0.7));
|
||||
p_theme->set_color("movie_writer_icon_pressed", EditorStringName(EditorStyles), Color(0, 0, 0, 0.84));
|
||||
p_theme->set_color("movie_writer_icon_hover", EditorStringName(EditorStyles), Color(1, 1, 1, 0.9));
|
||||
p_theme->set_color("movie_writer_icon_hover_pressed", EditorStringName(EditorStyles), Color(0, 0, 0, 0.84));
|
||||
|
||||
// Profiler autostart indicator panel.
|
||||
Ref<StyleBoxFlat> style_profiler_autostart = style_launch_pad->duplicate();
|
||||
style_profiler_autostart->set_bg_color(Color(1, 0.867, 0.396));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue