mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
GTableView: Tweak appearance of key column with alternating rows.
This commit is contained in:
parent
5f63f8120c
commit
de913529d7
1 changed files with 2 additions and 2 deletions
|
@ -147,10 +147,10 @@ void GTableView::paint_event(GPaintEvent& event)
|
||||||
} else {
|
} else {
|
||||||
if (alternating_row_colors() && (painted_item_index % 2)) {
|
if (alternating_row_colors() && (painted_item_index % 2)) {
|
||||||
background_color = Color(210, 210, 210);
|
background_color = Color(210, 210, 210);
|
||||||
key_column_background_color = Color(190, 190, 190);
|
key_column_background_color = Color(180, 180, 180);
|
||||||
} else {
|
} else {
|
||||||
background_color = Color::White;
|
background_color = Color::White;
|
||||||
key_column_background_color = Color(235, 235, 235);
|
key_column_background_color = Color(210, 210, 210);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
painter.fill_rect(row_rect(painted_item_index), background_color);
|
painter.fill_rect(row_rect(painted_item_index), background_color);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue