1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 17:15:08 +00:00

GTableView: Tweak focus appearance for selected items.

This commit is contained in:
Andreas Kling 2019-03-04 11:17:25 +01:00
parent 06bd2fb2d5
commit d932c03843

View file

@ -122,7 +122,7 @@ void GTableView::paint_event(GPaintEvent& event)
Color background_color;
Color text_color;
if (row_index == m_model->selected_index().row()) {
background_color = Color::from_rgb(0x84351a);
background_color = is_focused() ? Color::from_rgb(0x84351a) : Color::from_rgb(0x606060);
text_color = Color::White;
} else {
background_color = painted_item_index % 2 ? Color(210, 210, 210) : Color::White;