1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:08:11 +00:00

GTableView: Highlight the hovered column header

This makes it feel even *more* like a proper button.
This commit is contained in:
Andreas Kling 2019-11-20 22:19:30 +01:00
parent 191535d626
commit 16c290e8d5
2 changed files with 22 additions and 2 deletions

View file

@ -73,6 +73,7 @@ protected:
void update_column_sizes();
static const Font& header_font();
void update_headers();
void set_hovered_header_index(int);
struct ColumnData {
int width { 0 };
@ -94,6 +95,7 @@ protected:
int m_resizing_column { -1 };
int m_pressed_column_header_index { -1 };
bool m_pressed_column_header_is_pressed { false };
int m_hovered_column_header_index { -1 };
GMenu& ensure_header_context_menu();
OwnPtr<GMenu> m_header_context_menu;