LibGUI: Remove some unused code in GUI::TreeView
This commit is contained in:
parent
28ee513bdf
commit
4486e5b26d
Notes:
sideshowbarker
2024-07-18 08:02:42 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/4486e5b26d2
1 changed files with 0 additions and 5 deletions
|
@ -8,7 +8,6 @@
|
|||
#include <LibGUI/HeaderView.h>
|
||||
#include <LibGUI/Model.h>
|
||||
#include <LibGUI/Painter.h>
|
||||
#include <LibGUI/Scrollbar.h>
|
||||
#include <LibGUI/TreeView.h>
|
||||
#include <LibGfx/Bitmap.h>
|
||||
#include <LibGfx/Palette.h>
|
||||
|
@ -254,17 +253,13 @@ void TreeView::paint_event(PaintEvent& event)
|
|||
text_color = is_focused() ? palette().selection_text() : palette().inactive_selection_text();
|
||||
|
||||
Color background_color;
|
||||
Color key_column_background_color;
|
||||
if (is_selected_row) {
|
||||
background_color = is_focused() ? palette().selection() : palette().inactive_selection();
|
||||
key_column_background_color = is_focused() ? palette().selection() : palette().inactive_selection();
|
||||
} else {
|
||||
if (alternating_row_colors() && (painted_row_index % 2)) {
|
||||
background_color = Color(220, 220, 220);
|
||||
key_column_background_color = Color(200, 200, 200);
|
||||
} else {
|
||||
background_color = palette().color(background_role());
|
||||
key_column_background_color = Color(220, 220, 220);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue