Show Kryon's loading dots while an app opens and while Lumi types, and in Apps' download dialog

This commit is contained in:
waozi committed 2026-10-24 03:52:49 -03:00
1 parent 509f3b58a8
commit 946d2a13f5
19 files changed
+48 -77

No files matched your search

+4
View File
@@ -1,5 +1,9 @@
# Changelog
## [1.5.12] - 2026-10-24
- Lumi types with the same loading dots every app shows.
## [1.5.11] - 2026-10-23
- Maintenance release for Inner Breeze 2.1.45.
+5 -14
View File
@@ -13,6 +13,7 @@
#import "control_props"
#import "box_props"
#import "box_widget"
#import "loading_indicator"
#import "checkbox_props"
#import "checkbox_widget"
#import "context_menu_widget"
@@ -550,20 +551,10 @@ TypingDots :: (x: s32, top: s32) {
Text(frame.session, TextProps.{.key = cast(u64)300382,
.bounds = Bounds(left + Scale(14), top + Scale(8), Scale(68), Scale(20)),
.text = "Lumi", .font = Scale(12)})
for dot: cast(s32)0..2 {
phase := frame.now * 1.4 - cast(float64)dot * 0.2
phase = phase - cast(float64)cast(s64)phase
if phase < 0.0 {
phase += 1.0
}
level := ifx phase < 0.5 then phase * 2.0 else (1.0 - phase) * 2.0
size := Scale(8)
Box(frame.session, BoxProps.{.key = cast(u64)(300383 + dot),
.bounds = Bounds(left + Scale(16) + dot * Scale(14),
top + Scale(38) - cast(s32)(level * cast(float64)Scale(4)), size, size),
.fill = Color.{170, 170, 170, cast(u8)(90.0 + 165.0 * level)},
.radius = cast(float32)size / 2.0})
}
// Kryon's loading dots, the same animation every app shows.
LoadingIndicator(frame.session, LoadingIndicatorProps.{.key = cast(u64)300383,
.bounds = Bounds(left + Scale(16), top + Scale(34), Scale(36), Scale(12)),
.now = frame.now, .scale = frame.scale})
}
// Tapped, Lumi swirls twice around her place beside her message, for fun:
+2 -2
View File
@@ -46,8 +46,8 @@
},
"lumi": {
"id": "inbe.lumi",
"version": "1.5.11",
"sequence": 29,
"version": "1.5.12",
"sequence": 30,
"bundled": true,
"host_api": 20,
"release": "2.1.45"
-3
View File
@@ -5361,9 +5361,6 @@ Nainstalovat
[app_name_chess]
Šachy
---
[node_app_loading]
Načítání…
---
[node_app_unavailable]
Aplikaci se nepodařilo nainstalovat. Zkontrolujte připojení a zkuste to znovu z Aplikací.
---
-3
View File
@@ -5355,9 +5355,6 @@ Installieren
[app_name_chess]
Schach
---
[node_app_loading]
Wird geladen…
---
[node_app_unavailable]
Diese App konnte nicht installiert werden. Prüfe deine Verbindung und versuche es in Apps erneut.
---
-3
View File
@@ -5379,9 +5379,6 @@ Install
[app_name_chess]
Chess
---
[node_app_loading]
Loading…
---
[node_app_unavailable]
This app could not be installed. Check your connection and try again from Apps.
---
-3
View File
@@ -5355,9 +5355,6 @@ Instalar
[app_name_chess]
Ajedrez
---
[node_app_loading]
Cargando…
---
[node_app_unavailable]
No se pudo instalar esta app. Revisa tu conexión y vuelve a intentarlo desde Apps.
---
-3
View File
@@ -5343,9 +5343,6 @@ Installer
[app_name_chess]
Échecs
---
[node_app_loading]
Chargement…
---
[node_app_unavailable]
Impossible d'installer cette app. Vérifiez votre connexion et réessayez depuis Apps.
---
-3
View File
@@ -5344,9 +5344,6 @@ Pasang
[app_name_chess]
Catur
---
[node_app_loading]
Memuat…
---
[node_app_unavailable]
Aplikasi ini tidak bisa dipasang. Periksa koneksi lalu coba lagi dari Aplikasi.
---
-3
View File
@@ -5344,9 +5344,6 @@ Installa
[app_name_chess]
Scacchi
---
[node_app_loading]
Caricamento…
---
[node_app_unavailable]
Impossibile installare l'app. Controlla la connessione e riprova da App.
---
-3
View File
@@ -5340,9 +5340,6 @@ Dewが不足しています。プロフィールでDewを追加してくださ
[app_name_chess]
チェス
---
[node_app_loading]
読み込み中…
---
[node_app_unavailable]
このアプリをインストールできませんでした。接続を確認して、アプリからもう一度お試しください。
---
-3
View File
@@ -5350,9 +5350,6 @@ Dew가 부족합니다. 프로필에서 Dew를 추가하세요.
[app_name_chess]
체스
---
[node_app_loading]
불러오는 중…
---
[node_app_unavailable]
이 앱을 설치하지 못했습니다. 연결을 확인하고 앱에서 다시 시도하세요.
---
-3
View File
@@ -5353,9 +5353,6 @@ Instalar
[app_name_chess]
Xadrez
---
[node_app_loading]
Carregando…
---
[node_app_unavailable]
Não foi possível instalar este app. Verifique sua conexão e tente de novo em Apps.
---
-3
View File
@@ -5349,9 +5349,6 @@ Lumi остаётся без сети, пока вы не примете её у
[app_name_chess]
Шахматы
---
[node_app_loading]
Загрузка…
---
[node_app_unavailable]
Не удалось установить приложение. Проверьте подключение и попробуйте снова в разделе «Приложения».
---
-3
View File
@@ -5355,9 +5355,6 @@ Dew不足,请在个人资料中添加Dew。
[app_name_chess]
国际象棋
---
[node_app_loading]
正在加载…
---
[node_app_unavailable]
无法安装此应用。请检查网络连接,然后在“应用”中重试。
---
+1 -1
View File
@@ -2,7 +2,7 @@
// bytes, but cannot select or replace the host's controller trust anchor.
// Collections built before the ZX format carried ZIB controllers, which this
// runtime cannot run; earlier ZX controllers stay trusted for collections.
AppsControllerSha256 :: "c773cd0d3d8c9ead85e22a476fc0b58aab5723269bbf3aab952409c6cb6037ae"
AppsControllerSha256 :: "20ad36d054088484f069e3e7aa72135762fe25354fb8249ca0a2fcc019834a48"
// The ZX controller before the download dialog and the fading carousel
// titles. Collections published with it, such as Arcade 0.7.49, keep opening.
+2 -2
View File
@@ -3,7 +3,7 @@ PackageBundledVersion :: (index: s32) -> string {
if index < 0 || index >= 7 {
return ""
}
versions: [7]string = .["2.1.45", "1.1.13", "1.2.10", "1.3.10", "1.3.9", "1.5.11", "1.0.14"]
versions: [7]string = .["2.1.45", "1.1.13", "1.2.10", "1.3.10", "1.3.9", "1.5.12", "1.0.14"]
return versions[index]
}
@@ -11,6 +11,6 @@ PackageBundledSequence :: (index: s32) -> s32 {
if index < 0 || index >= 7 {
return 0
}
sequences: [7]s32 = .[42, 21, 22, 21, 26, 29, 15]
sequences: [7]s32 = .[42, 21, 22, 21, 26, 30, 15]
return sequences[index]
}
+13 -1
View File
@@ -17,6 +17,7 @@
#import "widget_codec"
#import "kryon/app_context_host"
#import "layout_props"
#import "loading_indicator"
#import "layout"
#import "layout_widget"
#import "tree"
@@ -24,6 +25,7 @@
#import, file "../cells/node_apps.zi";
#import, file "../cells/node_app_runner.zi";
#import, file "../cells/node_app_tree.zi";
#import, file "../app/smooth_frames.zi";
#import, file "../cells/node_app_input.zi";
#import "apps/node_types"
#import "apps/node_codec"
@@ -231,6 +233,16 @@ NodeScreenNotice :: (app: *InnerBreeze, key: string) {
cast(float32)(app.ui.view_width - margin * 2), cast(float32)AppScale(64)}})
}
// While an app opens: Kryon's loading dots, the same everywhere, in the
// middle of the app's area.
NodeScreenLoading :: (app: *InnerBreeze) {
LoadingIndicator(app.ui.session, LoadingIndicatorProps.{.key = KeyHash("inbe/node-app/loading"),
.bounds = Rectangle.{0.0, 0.0, cast(float32)app.ui.view_width,
cast(float32)(app.ui.view_height - app_content_bottom_reserved(app))},
.now = GetTime(), .scale = MetricsScale()})
AppRequestSmoothFrames(2)
}
#program_export
node_app_screen_draw :: (app: *InnerBreeze) {
if app == null {
@@ -243,7 +255,7 @@ node_app_screen_draw :: (app: *InnerBreeze) {
}
if !NodeAppRunning(slot) {
if NodeAppInstalled(slot) && NodeAppOpen(slot) {
NodeScreenNotice(app, "node_app_loading")
NodeScreenLoading(app)
return
}
// Only installed apps open, so this screen never says installing.
+21 -21
View File
@@ -18,14 +18,6 @@
"ref": "master",
"url": "https://github.com/ziranlang/qrcode.git"
},
{
"commit": "6e05d65c2bdf675f513e1b4a3d76908f273f9b75",
"dependencies": {"raylib": "p5a77c9c35110e925"},
"id": "p0e8eb2ea0d27d6c5",
"name": "kryon",
"ref": "master",
"url": "https://github.com/kryonlabs/kryon.git"
},
{
"commit": "9976953053e4d64b70cd555e0faf1975e6ba212f",
"dependencies": {"oqs": "p7098ac9cd92f7e5f"},
@@ -36,7 +28,7 @@
},
{
"commit": "1cb9df183089a77c8a16448a556186f30b261a98",
"dependencies": {"kryon": "p0e8eb2ea0d27d6c5"},
"dependencies": {"kryon": "p6cdec8351751d915"},
"id": "p1b13dda539ed2a39",
"name": "Kss",
"ref": "master",
@@ -44,12 +36,20 @@
},
{
"commit": "bad2caaa84ef3eae61e40c99bf572d2b060d0ca2",
"dependencies": {"kryon": "p0e8eb2ea0d27d6c5"},
"dependencies": {"kryon": "p6cdec8351751d915"},
"id": "p20eb23d3e6db3711",
"name": "Game2D",
"ref": "master",
"url": "https://github.com/kryonlabs/game2d.git"
},
{
"commit": "03c45f9461d9ace179ac6bf0f97fd5176a712f8c",
"dependencies": {"crypto": "pf039d7a776333200", "kryon": "p6cdec8351751d915"},
"id": "p3c73796b4662b488",
"name": "Apps",
"ref": "master",
"url": "https://github.com/waozixyz/apps.git"
},
{
"commit": "e1f480f382d9443c4412133b55948374c77a5c21",
"dependencies": {},
@@ -68,6 +68,14 @@
"source": true,
"url": "https://github.com/raysan5/raylib.git"
},
{
"commit": "e6a3509dfc1a797593b6498de9842aaf35939220",
"dependencies": {"raylib": "p5a77c9c35110e925"},
"id": "p6cdec8351751d915",
"name": "kryon",
"ref": "master",
"url": "https://github.com/kryonlabs/kryon.git"
},
{
"commit": "22d2ddbdc236796953c905a05a2cebf5ab1b4ff3",
"dependencies": {"liboqs": "p4b0a50b49959e674"},
@@ -85,17 +93,9 @@
"source": true,
"url": "https://github.com/LoupVaillant/Monocypher.git"
},
{
"commit": "d6437fa9c8caede031253737d75331bf926ed64c",
"dependencies": {"crypto": "pf039d7a776333200", "kryon": "p0e8eb2ea0d27d6c5"},
"id": "p92edb77dc857b821",
"name": "Apps",
"ref": "master",
"url": "https://github.com/waozixyz/apps.git"
},
{
"commit": "86e727205407e2ef738f19d2ae3fcc6c515cabbc",
"dependencies": {"daochi_client": "p129ed20dc955aa54", "kryon": "p0e8eb2ea0d27d6c5", "monocypher": "p809b4d31a48625a3", "qrcode": "p0dfa70137405b096"},
"dependencies": {"daochi_client": "p129ed20dc955aa54", "kryon": "p6cdec8351751d915", "monocypher": "p809b4d31a48625a3", "qrcode": "p0dfa70137405b096"},
"id": "pc556f072038bd2a3",
"name": "Entity",
"ref": "master",
@@ -120,7 +120,7 @@
},
{
"commit": "4b0e25bd2df86b54a8f5af3db48282bd41daab1a",
"dependencies": {"kryon": "p0e8eb2ea0d27d6c5"},
"dependencies": {"kryon": "p6cdec8351751d915"},
"id": "pe8e21a1f2b5ff52c",
"name": "plot",
"ref": "master",
@@ -145,7 +145,7 @@
}
],
"root": {
"dependencies": {"apps": "p92edb77dc857b821", "crypto": "pf039d7a776333200", "curl": "pd4bcd11b7d623073", "daochi_client": "p129ed20dc955aa54", "entity": "pc556f072038bd2a3", "game2d": "p20eb23d3e6db3711", "kryon": "p0e8eb2ea0d27d6c5", "kss": "p1b13dda539ed2a39", "liboqs": "p4b0a50b49959e674", "mingcute": "pe1027b9d16704793", "monocypher": "p809b4d31a48625a3", "oqs": "p7098ac9cd92f7e5f", "plot": "pe8e21a1f2b5ff52c", "qrcode": "p0dfa70137405b096", "rini": "p09fa77e94b0dfc6c", "sqlite": "peaa43c4b7ef72edf"},
"dependencies": {"apps": "p3c73796b4662b488", "crypto": "pf039d7a776333200", "curl": "pd4bcd11b7d623073", "daochi_client": "p129ed20dc955aa54", "entity": "pc556f072038bd2a3", "game2d": "p20eb23d3e6db3711", "kryon": "p6cdec8351751d915", "kss": "p1b13dda539ed2a39", "liboqs": "p4b0a50b49959e674", "mingcute": "pe1027b9d16704793", "monocypher": "p809b4d31a48625a3", "oqs": "p7098ac9cd92f7e5f", "plot": "pe8e21a1f2b5ff52c", "qrcode": "p0dfa70137405b096", "rini": "p09fa77e94b0dfc6c", "sqlite": "peaa43c4b7ef72edf"},
"name": "Inbe"
},
"toolchain": {