diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-10 11:57:19 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-10 11:57:19 +0100 |
commit | 8313ce57dc26f2c11a2a580153dfbb7feffcaedc (patch) | |
tree | 6ef039379703c01cc1b57ba3fca7d988886fdf57 /Applications/FileManager/DirectoryView.cpp | |
parent | ddd580c30fee0a779c9e173fb11fbb19f7192723 (diff) | |
download | serenity-8313ce57dc26f2c11a2a580153dfbb7feffcaedc.zip |
LibGUI: Improve GScrollBar button look a bit.
The arrows look better when they're sharp. :^)
Diffstat (limited to 'Applications/FileManager/DirectoryView.cpp')
-rw-r--r-- | Applications/FileManager/DirectoryView.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Applications/FileManager/DirectoryView.cpp b/Applications/FileManager/DirectoryView.cpp index 4ffc28feb6..85dbcb55a7 100644 --- a/Applications/FileManager/DirectoryView.cpp +++ b/Applications/FileManager/DirectoryView.cpp @@ -16,7 +16,7 @@ DirectoryView::DirectoryView(GWidget* parent) m_file_icon = GraphicsBitmap::load_from_file("/res/icons/file16.rgb", { 16, 16 }); m_symlink_icon = GraphicsBitmap::load_from_file("/res/icons/link16.rgb", { 16, 16 }); - m_scrollbar = new GScrollBar(this); + m_scrollbar = new GScrollBar(Orientation::Vertical, this); m_scrollbar->set_step(4); m_scrollbar->set_big_step(30); m_scrollbar->on_change = [this] (int) { @@ -30,7 +30,7 @@ DirectoryView::~DirectoryView() void DirectoryView::resize_event(GResizeEvent& event) { - m_scrollbar->set_relative_rect(event.size().width() - 16, 0, 16, event.size().height()); + m_scrollbar->set_relative_rect(event.size().width() - m_scrollbar->preferred_size().width(), 0, m_scrollbar->preferred_size().width(), event.size().height()); } void DirectoryView::open(const String& path) |