mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 14:55:07 +00:00
GScrollBar: Improve appearance for curiously-shaped scrollbars.
This commit is contained in:
parent
07a9b2c4e6
commit
16990fece3
2 changed files with 16 additions and 14 deletions
|
@ -41,7 +41,9 @@ private:
|
|||
virtual void mousemove_event(GMouseEvent&) override;
|
||||
virtual void leave_event(CEvent&) override;
|
||||
|
||||
int button_size() const { return orientation() == Orientation::Vertical ? width() : height(); }
|
||||
int button_size() const { return 16; }
|
||||
int button_width() const { return orientation() == Orientation::Vertical ? width() : button_size(); }
|
||||
int button_height() const { return orientation() == Orientation::Horizontal ? height() : button_size(); }
|
||||
Rect up_button_rect() const;
|
||||
Rect down_button_rect() const;
|
||||
Rect upper_gutter_rect() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue