Add missing hover indication to movie maker button

This commit is contained in:
passivestar
2025-12-10 11:04:25 +04:00
parent bb92a4c8e2
commit 3904c60507
3 changed files with 9 additions and 0 deletions

View File

@@ -1648,7 +1648,11 @@ void ThemeModern::populate_editor_styles(const Ref<EditorTheme> &p_theme, Editor
// Needs to present even if unused.
p_theme->set_type_variation("RunBarButtonMovieMakerDisabled", "RunBarButton");
Ref<StyleBoxFlat> movie_maker_button_enabled_hover = run_bar_hover->duplicate();
movie_maker_button_enabled_hover->set_bg_color(p_config.accent_color.lightened(0.2));
p_theme->set_type_variation("RunBarButtonMovieMakerEnabled", "RunBarButton");
p_theme->set_stylebox("hover_pressed", "RunBarButtonMovieMakerEnabled", movie_maker_button_enabled_hover);
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));