Set a minimum size for scrollbars

This commit is contained in:
miruka 2020-06-19 12:03:04 -04:00
parent 926f77fa91
commit e756bd2909
4 changed files with 11 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import QtQuick 2.12
import QtQuick.Controls 2.12
Flickable {
ScrollBar.vertical: ScrollBar {
ScrollBar.vertical: HScrollBar {
visible: parent.interactive
}
}

View File

@ -21,7 +21,7 @@ GridView {
color: theme.controls.gridView.highlight
}
ScrollBar.vertical: ScrollBar {
ScrollBar.vertical: HScrollBar {
visible: gridView.interactive
}

View File

@ -22,7 +22,7 @@ ListView {
color: theme.controls.listView.highlight
}
ScrollBar.vertical: ScrollBar {
ScrollBar.vertical: HScrollBar {
visible: listView.interactive
}

View File

@ -0,0 +1,8 @@
// SPDX-License-Identifier: LGPL-3.0-or-later
import QtQuick 2.12
import QtQuick.Controls 2.12
ScrollBar {
minimumSize: (Math.min(height / 1.5, 48) * theme.uiScale) / height
}