mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-20 04:23:54 +00:00
Add clear text button to LineEdit
- Add pressed state to clear button - Enable clear button on all inputs with search icon - Remove duplicate clear buttons - Fix rendering of icon for center and right alignments - Add clear button to more search fields - Add clear icon to default theme - Add method to control enabled state of clear button - Add property to enable clear button from inspector
This commit is contained in:
@@ -828,6 +828,8 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
|
||||
theme->set_color("font_color", "LineEdit", font_color);
|
||||
theme->set_color("cursor_color", "LineEdit", font_color);
|
||||
theme->set_color("selection_color", "LineEdit", font_color_selection);
|
||||
theme->set_color("clear_button_color", "LineEdit", font_color);
|
||||
theme->set_color("clear_button_color_pressed", "LineEdit", accent_color);
|
||||
|
||||
// TextEdit
|
||||
theme->set_stylebox("normal", "TextEdit", style_widget);
|
||||
|
||||
Reference in New Issue
Block a user