Qt: faster app icons on start
Three things still held icons up: - The app list was built on Qt's thread, so nothing on screen could paint (icons included) until every app was listed and labelled. HomeActivity now lists apps on its own thread and answers through Native.appList. - Each icon was drawn, PNG-encoded in Java and decoded again in C++. Icons now cross as raw premultiplied RGBA, and drawn ones are kept in the cache dir, keyed by the app's last update, so a fresh start just reads them. - The closed drawer made its icons at the same time as home. It now waits 1.5s, or until it opens. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hiQsCq11CwCPnKPp9D
This commit is contained in:
7 files changed
+115
-16
No files matched your search
+2
-1
@@ -10,6 +10,7 @@ Item {
|
||||
property var apps: [] // [{label, component, system}]
|
||||
property var homeSet: ({}) // component -> true: on the home screen
|
||||
property bool loading: true
|
||||
property bool warm: true // false: hold off making icons until it opens
|
||||
property var iconGen: ({}) // package -> n, see Main.gen
|
||||
property real insetTop: 0
|
||||
property real insetBottom: 0
|
||||
@@ -102,7 +103,7 @@ Item {
|
||||
clip: true
|
||||
bottomMargin: root.insetBottom + 24
|
||||
boundsBehavior: Flickable.DragOverBounds
|
||||
model: root.shown
|
||||
model: root.warm || root.visible ? root.shown : []
|
||||
// Swiping up once the list is at its end puts the drawer away.
|
||||
onDragEnded: if (verticalOvershoot > 48) root.closeRequested()
|
||||
delegate: Item {
|
||||
|
||||
Reference in new issue
Block a user