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
Notes: sideshowbarker 2024-07-19 15:33:15 +09:00

View file

@ -122,7 +122,7 @@ void GTableView::paint_event(GPaintEvent& event)
Color background_color; Color background_color;
Color text_color; Color text_color;
if (row_index == m_model->selected_index().row()) { 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; text_color = Color::White;
} else { } else {
background_color = painted_item_index % 2 ? Color(210, 210, 210) : Color::White; background_color = painted_item_index % 2 ? Color(210, 210, 210) : Color::White;