Give LineEdit a custom font color when un-editable
By default the LineEdit's text when editable is unchecked had some transparency hardcoded. This change adds a custom color to LineEdit for adjusting the font when editable is off. Addresses issue 29814
This commit is contained in:
@ -398,6 +398,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
|
||||
|
||||
theme->set_color("font_color", "LineEdit", control_font_color);
|
||||
theme->set_color("font_color_selected", "LineEdit", Color(0, 0, 0));
|
||||
theme->set_color("font_color_uneditable", "LineEdit", Color(control_font_color.r, control_font_color.g, control_font_color.b, 0.5f));
|
||||
theme->set_color("cursor_color", "LineEdit", control_font_color_hover);
|
||||
theme->set_color("selection_color", "LineEdit", font_color_selection);
|
||||
theme->set_color("clear_button_color", "LineEdit", control_font_color);
|
||||
|
||||
Reference in New Issue
Block a user