From 65728fdb77e5d6d3158bee024e917cfafd323de0 Mon Sep 17 00:00:00 2001 From: Wang Zichong Date: Sun, 5 Nov 2023 14:24:49 +0800 Subject: [PATCH] chore: spacing for category seeking MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 从字母表视图点击字母后,跳转回主界面时,为首项之上的分组标题预留空间。 Log: --- qml/AppListView.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qml/AppListView.qml b/qml/AppListView.qml index 6d2daa80..c4bd9a5c 100644 --- a/qml/AppListView.qml +++ b/qml/AppListView.qml @@ -23,6 +23,8 @@ Item { // we use the highlight move to scroll to item listView.highlightMoveDuration = 0 listView.highlightRangeMode = GridView.ApplyRange + listView.preferredHighlightBegin = 32 // the height of a section heading + listView.preferredHighlightEnd = 32 listView.currentIndex = i listView.highlightMoveDuration = 150 listView.highlightRangeMode = GridView.NoHighlightRange