LibGUI: Use inactive selection colors from palette instead of hardcoding them

This commit is contained in:
Tibor Nagy 2020-02-15 16:24:20 +01:00 committed by Andreas Kling
commit 4d95163400
Notes: sideshowbarker 2024-07-19 09:18:46 +09:00
5 changed files with 14 additions and 12 deletions

View file

@ -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();