mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:38:11 +00:00
LibGUI: Use inactive selection colors from palette instead of hardcoding them
This commit is contained in:
parent
99192fd29f
commit
4d95163400
5 changed files with 14 additions and 12 deletions
|
@ -94,8 +94,10 @@ void ColumnsView::paint_event(PaintEvent& event)
|
|||
Color background_color = palette().color(background_role());
|
||||
Color text_color = palette().color(foreground_role());
|
||||
|
||||
if (next_column != nullptr && next_column->parent_index == index)
|
||||
background_color = background_color.blend(palette().selection().with_alpha(100));
|
||||
if (next_column != nullptr && next_column->parent_index == index) {
|
||||
background_color = palette().inactive_selection();
|
||||
text_color = palette().inactive_selection_text();
|
||||
}
|
||||
|
||||
if (is_selected_row) {
|
||||
background_color = palette().selection();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue