WIP checkpoint (M2.53→M2.54 工作区): 字体归MeowOS/fonts+SDK跟随+多字体(进行中)+boot板载+状态栏28+亮度/音量修复+文档刷新

This commit is contained in:
MeowOS Dev committed 2026-08-30 03:27:24 +08:00
1 parent 245bee2946
commit 064635b3c4
44 files changed
+2834 -308

No files matched your search

+7 -5
View File
@@ -10,7 +10,8 @@
* - 电量 /sys/class/power_supply/battery/{capacity,status}
* - WiFi /sys/class/net/wlan0/operstate
* - 蓝牙 实际 powered(hciconfig -a hci0 的 UP;spawn 贵 → 缓存 30s 刷一次)
* - 音量 /usr/data/meow/settings.conf 的 audio.volume(launcher 同文件)
* - 音量 /usr/data/meow/settings.conf 的 audio.volume(launcher 同文件;
* 0-100 并 clamp 到 audio.volume_max 上限,与 launcher vol_clamp 口径一致)
* - 时钟 localtime_r(每秒在绘制时现取)
*/
#ifndef MEOW_UI_SYS_H
@@ -28,9 +29,10 @@ typedef struct meow_sys_state {
int vol; /* 音量 0-100 */
} meow_sys_state;
/* 顶部状态栏几何(与 launcher SB_BAR_H=40 / SB_FONT=28 对齐,视觉统一)。 */
#define MUI_SBAR_H 40
#define MUI_SBAR_FONT 28
/* 顶部状态栏几何(与 launcher SB_BAR_H=28 / SB_FONT=20 对齐,视觉统一)。
* 高度 40→28(用户定),字号 28→20(28px 栏放不下 28 号;20 号按 (高-行高)/2 垂直居中)。 */
#define MUI_SBAR_H 28
#define MUI_SBAR_FONT 20
/* 首次全量读取;失败仍返回 0(字段置 -1/0)。 */
int meow_ui_sys_init(void);
@@ -44,7 +46,7 @@ const meow_sys_state *meow_ui_sys_get(void);
/* 状态栏是否应绘制(= set_statusbar(1) 且 非 fullscreen)。 */
int meow_ui_sys_statusbar_active(void);
/* 状态栏高度(px):active 时 40,否则 0(供 meow_ui_statusbar_height 用)。 */
/* 状态栏高度(px):active 时 28,否则 0(供 meow_ui_statusbar_height 用)。 */
int meow_ui_sys_statusbar_height(void);
/* 自上次渲染后状态栏数据是否已变(1s 轻刷/显隐切换置位);读取即清除。