mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 01:38:52 +00:00
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:
parent
697faba147
commit
e1a819827c
Notes:
sideshowbarker
2024-07-19 03:13:16 +09:00
Author: https://github.com/alimpfard
Commit: e1a819827c
Pull-request: https://github.com/SerenityOS/serenity/pull/3279
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/linusg
3 changed files with 31 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue