[ui] Add MScrollBar for better visibility

Always visible if height or width need it, with specific colors for hovered and pressed behaviors.
This commit is contained in:
Aurore LAFAURIE 2024-09-11 17:33:29 +02:00
parent eb3ac6cd50
commit f8d963e0b0
11 changed files with 44 additions and 39 deletions

View file

@ -26,17 +26,6 @@ Item {
uigraph.selectedNode = node
}
ScrollBar {
id: hbar
hoverEnabled: true
active: true
orientation: Qt.Horizontal
size: root.width / taskList.width
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
}
TextMetrics {
id: nbMetrics
text: root.taskManager ? root.taskManager.nodes.count : "0"
@ -65,7 +54,7 @@ Item {
ListView {
id: taskList
anchors.fill: parent
ScrollBar.vertical: ScrollBar {}
ScrollBar.vertical: MScrollBar {}
model: parent.taskManager ? parent.taskManager.nodes : null
spacing: 3