Andreas Kling
d333013a54
LibGUI: Support horizontal GScrollBars as well.
2019-02-10 12:27:21 +01:00
Andreas Kling
8313ce57dc
LibGUI: Improve GScrollBar button look a bit.
...
The arrows look better when they're sharp. :^)
2019-02-10 11:57:19 +01:00
Andreas Kling
29f2a22d34
LibGUI: Minor cleanup in GScrollBar.
2019-02-10 08:23:03 +01:00
Andreas Kling
f7831f8c76
LibGUI: Draw GScrollBar buttons with a disabled look when appropriate.
2019-02-10 07:37:02 +01:00
Andreas Kling
e354c08c98
LibGUI: Share code for widget rendering styles in a GStyle class.
...
Since GScrollBar wants its internal buttons to look like GButtons,
let's share the painting code between them.
2019-02-10 07:11:01 +01:00
Andreas Kling
9ea2131adf
LibGUI: Support dragging the GScrollBar scrubber.
...
This was pleasantly easy to implement with the global mouse tracking. :^)
2019-02-10 06:51:01 +01:00
Andreas Kling
464873f8b5
LibGUI: Draw some cute arrows on the GScrollBar buttons.
2019-02-10 06:10:27 +01:00
Andreas Kling
6a3ff7efc5
GScrollBar: Start looking a bit more like a proper scrollbar.
...
And hook up FileManager's DirectoryView with its scrollbar so it actually
causes the directory view to shift up and down. Very cool. :^)
2019-02-09 11:29:59 +01:00
Andreas Kling
1f355f2a79
LibGUI: Start working on a GScrollBar.
...
This widget is far from finished, but it's off to a good start.
Also added a GResizeEvent and GWidget::resize_event() so that widgets
can react to being resized.
2019-02-09 11:19:38 +01:00