update: 打卡界面选定 Slint,egui 已去掉
MemRelay-Operation: memory-save:punchlog-choose-slint-2026-11-19 MemRelay-Resource: a534a3a1-b442-453c-99e6-f68528fa13cf
This commit is contained in:
@@ -1,28 +0,0 @@
|
|||||||
---
|
|
||||||
title: egui 与 Slint 打卡窗口并存,尚未选型
|
|
||||||
type: fact
|
|
||||||
permalink: main/projects/a84c6646-289e-46f8-b0f9-41317c651955/egui-与-slint-打卡窗口并存尚未选型
|
|
||||||
stable_id: a534a3a1-b442-453c-99e6-f68528fa13cf
|
|
||||||
scope: project
|
|
||||||
memory_type: fact
|
|
||||||
project_id: a84c6646-289e-46f8-b0f9-41317c651955
|
|
||||||
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
|
|
||||||
status: active
|
|
||||||
revision: 1
|
|
||||||
request_id: punchlog-egui-trial-2026-11-19
|
|
||||||
created_at: '2026-11-19T08:19:28.240199+00:00'
|
|
||||||
updated_at: '2026-11-19T08:19:28.240199+00:00'
|
|
||||||
tags:
|
|
||||||
- ui
|
|
||||||
- egui
|
|
||||||
- slint
|
|
||||||
---
|
|
||||||
|
|
||||||
两套桌面并存,用户还没有选定留哪一套。
|
|
||||||
|
|
||||||
Slint:`cargo run --bin punchlog-ui`,界面在 ui/app.slint,ScrollView + 固定行高。
|
|
||||||
egui:`cargo run --bin punchlog-egui --features egui`,代码在 src/bin/punchlog-egui.rs。eframe 0.37,只开 glow,不开 wgpu。中文字体读本机 C:\Windows\Fonts\msyh.ttc(微软雅黑,约 19MB)。滚动条用 floating,平时不占位。
|
|
||||||
|
|
||||||
2026-11-19 release 窗口打开并已显示最近一周后测得:egui 工作集约 127MB、私有内存约 64MB、exe 10.6MB;Slint 工作集约 33MB、私有内存约 15MB、exe 15.5MB。
|
|
||||||
|
|
||||||
两边都显示 11-13 到 11-19,左对齐,状态在右,站点和完整 memo 在下面。没有关于页。不要合并进 main。凭证只在 .env。
|
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
title: 打卡界面选定 Slint,egui 已去掉
|
||||||
|
type: decision
|
||||||
|
permalink: main/projects/a84c6646-289e-46f8-b0f9-41317c651955/打卡界面选定-slintegui-已去掉
|
||||||
|
stable_id: a534a3a1-b442-453c-99e6-f68528fa13cf
|
||||||
|
scope: project
|
||||||
|
memory_type: decision
|
||||||
|
project_id: a84c6646-289e-46f8-b0f9-41317c651955
|
||||||
|
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
|
||||||
|
status: active
|
||||||
|
revision: 2
|
||||||
|
request_id: punchlog-choose-slint-2026-11-19
|
||||||
|
created_at: '2026-11-19T08:19:28.240199+00:00'
|
||||||
|
updated_at: '2026-11-19T08:27:12.893089+00:00'
|
||||||
|
tags:
|
||||||
|
- ui
|
||||||
|
- slint
|
||||||
|
---
|
||||||
|
|
||||||
|
界面已选定 Slint。egui 试过一版后用户决定去掉,代码已删(提交 46a7b0a)。
|
||||||
|
|
||||||
|
保留:`cargo run --bin punchlog-ui`,界面在 ui/app.slint。
|
||||||
|
不要再加 egui/eframe,除非用户重新提出。
|
||||||
|
不要加回关于页,不要合并进 main。凭证只在 .env。
|
||||||
|
|
||||||
|
对比时的 release 数据:Slint 工作集约 33MB、私有内存约 15MB;当时 egui 约 127MB / 64MB。
|
||||||
Reference in New Issue
Block a user