mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-27 01:50:24 +00:00
LibGUI: Paint TextEditor background same as widget's if it's not enabled
Now TextEditor draws it's background as a colour that does not make the user think it can be writed into. This also affects TextBox.
This commit is contained in:
parent
24cce3674b
commit
be8dc41b9c
Notes:
sideshowbarker
2024-07-19 07:13:42 +09:00
Author: https://github.com/zlotny Commit: https://github.com/SerenityOS/serenity/commit/be8dc41b9c6 Pull-request: https://github.com/SerenityOS/serenity/pull/1996 Issue: https://github.com/SerenityOS/serenity/issues/1987
1 changed files with 1 additions and 1 deletions
|
@ -359,7 +359,7 @@ Gfx::Rect TextEditor::visible_text_rect_in_inner_coordinates() const
|
|||
|
||||
void TextEditor::paint_event(PaintEvent& event)
|
||||
{
|
||||
Color widget_background_color = palette().color(background_role());
|
||||
Color widget_background_color = palette().color(is_enabled() ? background_role() : Gfx::ColorRole::Window);
|
||||
// NOTE: This ensures that spans are updated before we look at them.
|
||||
flush_pending_change_notification_if_needed();
|
||||
|
||||
|
|
Loading…
Reference in a new issue