Files
MemRelay/projects/a84c6646-289e-46f8-b0f9-41317c651955/Checkpoint 2026-11-19 08-19-38 UTC [f3b4114ade].md
T
memrelay b2c4a64fa1 create: Checkpoint 2026-11-19 08:19:38 UTC [f3b4114ade]
MemRelay-Operation: checkpoint-save:punchlog-checkpoint-egui-trial-2026-11-19
MemRelay-Resource: 40193e96-f6d0-431b-a85c-513b0c884d18
2026-11-19 16:19:42 +08:00

38 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Checkpoint 2026-11-19 08:19:38 UTC [f3b4114ade]
type: checkpoint
permalink: main/projects/a84c6646-289e-46f8-b0f9-41317c651955/checkpoint-2026-11-19-08-19-38-utc-f3b4114ade
stable_id: 40193e96-f6d0-431b-a85c-513b0c884d18
scope: project
memory_type: checkpoint
project_id: a84c6646-289e-46f8-b0f9-41317c651955
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: punchlog-checkpoint-egui-trial-2026-11-19
created_at: '2026-11-19T08:19:38.473625+00:00'
updated_at: '2026-11-19T08:19:38.473625+00:00'
tags:
- handoff
- ui
---
== 已完成 ==
在 rust 分支增加 egui 打卡列表窗口,提交 65a35ed,并推送 origin/rust(若推送失败以仓库状态为准)。Slint 窗口保留。
运行:
- cargo run --bin punchlog-ui
- cargo run --bin punchlog-egui --features egui
egui 用 eframe 0.37 + glow,不启用 wgpu。中文用本机微软雅黑 msyh.ttc。排版与 Slint 一致:标题和日期靠左,刷新靠右,每天日期/时间/小时靠左,状态靠右,站点和完整 memo 在下面。
== 验证 ==
release 窗口实际打开。egui 从 11-13 排到 11-19,11-19 为缺卡(不足2次),第 2 条 memo 可见。鼠标移到刷新上会变手型,点击后列表仍在。
同时打开 release 窗口:egui 工作集约 127MB、私有内存约 64MB、exe 10.6MB;Slint 工作集约 33MB、私有内存约 15MB、exe 15.5MB。
== 下一步 ==
等用户看完两个窗口后决定留 Slint 还是 egui。未决定前不要删任一边,不要加回关于页,不要合并到 main。
== 给下个会话 ==
两个 release 窗口可能还开着,重叠在一起:左边带小图标的是 Slint,右边普通标题栏的是 egui。
egui 内存更高,一部分是把整份雅黑 TTC 读进进程,加上 glow。若用户选 egui,再考虑改成系统字体回退以降低内存;若选 Slint,删掉 egui feature 和 punchlog-egui.rs。
凭证只在 .env,不要写进记忆或提交。main 仍是旧 Python 线,不要合并。