Set a minimum size for scrollbars
This commit is contained in:
parent
926f77fa91
commit
e756bd2909
|
@ -4,7 +4,7 @@ import QtQuick 2.12
|
||||||
import QtQuick.Controls 2.12
|
import QtQuick.Controls 2.12
|
||||||
|
|
||||||
Flickable {
|
Flickable {
|
||||||
ScrollBar.vertical: ScrollBar {
|
ScrollBar.vertical: HScrollBar {
|
||||||
visible: parent.interactive
|
visible: parent.interactive
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@ GridView {
|
||||||
color: theme.controls.gridView.highlight
|
color: theme.controls.gridView.highlight
|
||||||
}
|
}
|
||||||
|
|
||||||
ScrollBar.vertical: ScrollBar {
|
ScrollBar.vertical: HScrollBar {
|
||||||
visible: gridView.interactive
|
visible: gridView.interactive
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ ListView {
|
||||||
color: theme.controls.listView.highlight
|
color: theme.controls.listView.highlight
|
||||||
}
|
}
|
||||||
|
|
||||||
ScrollBar.vertical: ScrollBar {
|
ScrollBar.vertical: HScrollBar {
|
||||||
visible: listView.interactive
|
visible: listView.interactive
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
8
src/gui/Base/HScrollBar.qml
Normal file
8
src/gui/Base/HScrollBar.qml
Normal 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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user