diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-04 11:17:25 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-04 11:17:25 +0100 |
commit | d932c03843e7f0333ff20f2bcfee2728234d3660 (patch) | |
tree | 9bf58dcc039488fd3d3fc04d8711e19d16eb402c /LibGUI | |
parent | 06bd2fb2d5f39eb5d6344c87954981bee94758ad (diff) | |
download | serenity-d932c03843e7f0333ff20f2bcfee2728234d3660.zip |
GTableView: Tweak focus appearance for selected items.
Diffstat (limited to 'LibGUI')
-rw-r--r-- | LibGUI/GTableView.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LibGUI/GTableView.cpp b/LibGUI/GTableView.cpp index ea6c76fcda..01a517b844 100644 --- a/LibGUI/GTableView.cpp +++ b/LibGUI/GTableView.cpp @@ -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; |