LibGUI: Make AbstractTableView and TableView more customisable

This patchset adds a few getters/setters to AbstractTableView to make
its looks more customisable:
- Header width & text alignment
- Default column width
- Ability to disable selected row highlighting
This commit is contained in:
AnotherTest 2020-08-23 18:35:47 +04:30 committed by Andreas Kling
parent 697faba147
commit e1a819827c
Notes: sideshowbarker 2024-07-19 03:13:16 +09:00
3 changed files with 31 additions and 5 deletions

View file

@ -84,7 +84,7 @@ void TableView::paint_event(PaintEvent& event)
Color background_color;
Color key_column_background_color;
if (is_selected_row) {
if (is_selected_row && highlight_selected_rows()) {
background_color = is_focused() ? palette().selection() : palette().inactive_selection();
key_column_background_color = is_focused() ? palette().selection() : palette().inactive_selection();
} else {