From 58f5ba502364014bc7a1d7736b69e73cb5660308 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Tue, 14 Feb 2023 22:00:05 +0100 Subject: Make scrollbars optional and disabled by default Also add them to the communities sidebar --- resources/qml/RoomList.qml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'resources/qml/RoomList.qml') diff --git a/resources/qml/RoomList.qml b/resources/qml/RoomList.qml index d51933f9..18afba8b 100644 --- a/resources/qml/RoomList.qml +++ b/resources/qml/RoomList.qml @@ -58,13 +58,12 @@ Page { anchors.right: parent.right height: parent.height model: Rooms - reuseItems: true + //reuseItems: true - ScrollBar.vertical: ScrollBar { - id: roomlistscrollbar - active: true - visible: (! collapsed) && (parent.contentHeight > parent.height) + ScrollBar { + id: scrollbar } + ScrollBar.vertical: (!collapsed && Settings.scrollbarsInRoomlist) ? scrollbar : null ScrollHelper { flickable: parent @@ -264,7 +263,7 @@ Page { } height: avatarSize + 2 * Nheko.paddingMedium - width: ListView.view.width - roomlistscrollbar.width + width: ListView.view.width - (scrollbar.interactive && scrollbar.visible ? scrollbar.width : 0) state: "normal" ToolTip.visible: hovered && collapsed ToolTip.delay: Nheko.tooltipDelay -- cgit 1.5.1