From 0ab8458ca26e5b5da823cae7d0e63ce891215e3c Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Sat, 29 Nov 2025 14:11:18 +0100 Subject: [PATCH] NIconPicker: replace GridView with NGridView --- Widgets/NIconPicker.qml | 41 +---------------------------------------- 1 file changed, 1 insertion(+), 40 deletions(-) diff --git a/Widgets/NIconPicker.qml b/Widgets/NIconPicker.qml index 63b66a9d..b99f6906 100644 --- a/Widgets/NIconPicker.qml +++ b/Widgets/NIconPicker.qml @@ -82,7 +82,7 @@ Popup { } // Icon grid - GridView { + NGridView { id: grid Layout.fillWidth: true Layout.fillHeight: true @@ -90,45 +90,6 @@ Popup { cellWidth: root.cellW cellHeight: root.cellH model: root.filteredIcons - clip: true - reuseItems: true - - ScrollBar.vertical: ScrollBar { - parent: grid - x: grid.mirrored ? 0 : grid.width - width - y: 0 - height: grid.height - active: grid.ScrollBar.horizontal.active - policy: ScrollBar.AsNeeded - - contentItem: Rectangle { - implicitWidth: 6 - implicitHeight: 100 - radius: Style.radiusM - color: parent.pressed ? Qt.alpha(Color.mHover, 0.8) : parent.hovered ? Qt.alpha(Color.mHover, 0.8) : Qt.alpha(Color.mHover, 0.8) - opacity: grid.contentHeight > grid.height ? (parent.active ? 1.0 : 0.0) : 0.0 - - Behavior on opacity { - NumberAnimation { - duration: Style.animationFast - } - } - } - - background: Rectangle { - implicitWidth: 6 - implicitHeight: 100 - color: Color.transparent - opacity: grid.contentHeight > grid.height ? (parent.active ? 0.3 : 0.0) : 0.0 - radius: Style.radiusM / 2 - - Behavior on opacity { - NumberAnimation { - duration: Style.animationFast - } - } - } - } delegate: Rectangle { width: grid.cellWidth height: grid.cellHeight