LibGUI: Don't fill IconView item text background unless actually wanted
We were always filling the rect behind item texts, even when the widget had fill_with_background_color() == false.
This commit is contained in:
parent
4236127fb9
commit
226ac8a47b
Notes:
sideshowbarker
2024-07-19 00:47:26 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/226ac8a47b1
1 changed files with 2 additions and 1 deletions
|
@ -499,7 +499,8 @@ void IconView::paint_event(PaintEvent& event)
|
|||
if (item_data.selected) {
|
||||
background_color = is_focused() ? palette().selection() : palette().inactive_selection();
|
||||
} else {
|
||||
background_color = widget_background_color;
|
||||
if (fill_with_background_color())
|
||||
background_color = widget_background_color;
|
||||
}
|
||||
|
||||
auto icon = item_data.index.data(ModelRole::Icon);
|
||||
|
|
Loading…
Add table
Reference in a new issue