mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
GTableView: Tweak focus appearance for selected items.
This commit is contained in:
parent
06bd2fb2d5
commit
d932c03843
Notes:
sideshowbarker
2024-07-19 15:33:15 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/d932c03843e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue