mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 10:44:26 +00:00
Add hover styles to buttons in Script/Shader editor
This commit is contained in:
parent
0c51ede243
commit
c21a03361a
9 changed files with 49 additions and 22 deletions
|
|
@ -2857,6 +2857,8 @@ ScriptTextEditor::ScriptTextEditor() {
|
|||
edit_hb = memnew(HBoxContainer);
|
||||
|
||||
edit_menu = memnew(MenuButton);
|
||||
edit_menu->set_flat(false);
|
||||
edit_menu->set_theme_type_variation("FlatMenuButton");
|
||||
edit_menu->set_text(TTRC("Edit"));
|
||||
edit_menu->set_switch_on_hover(true);
|
||||
edit_menu->set_shortcut_context(this);
|
||||
|
|
@ -2873,11 +2875,15 @@ ScriptTextEditor::ScriptTextEditor() {
|
|||
set_syntax_highlighter(highlighter);
|
||||
|
||||
search_menu = memnew(MenuButton);
|
||||
search_menu->set_flat(false);
|
||||
search_menu->set_theme_type_variation("FlatMenuButton");
|
||||
search_menu->set_text(TTRC("Search"));
|
||||
search_menu->set_switch_on_hover(true);
|
||||
search_menu->set_shortcut_context(this);
|
||||
|
||||
goto_menu = memnew(MenuButton);
|
||||
goto_menu->set_flat(false);
|
||||
goto_menu->set_theme_type_variation("FlatMenuButton");
|
||||
goto_menu->set_text(TTRC("Go To"));
|
||||
goto_menu->set_switch_on_hover(true);
|
||||
goto_menu->set_shortcut_context(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue