sdk: full-sync M7.0a/b (theme view input gfx 等, 真实功能非FT)
This commit is contained in:
1 parent
a70cdbc0f7
commit
a1687486bc
7 files changed
+86
-8
No files matched your search
@@ -62,6 +62,28 @@ void meow_theme_remove_listener(meow_theme_listener cb);
|
||||
/* [D4] 脱机访问两套内置色板(无 settings 文件也可靠):返回当前解析生效的色板副本。 */
|
||||
meow_theme meow_theme_defaults(meow_theme_mode m);
|
||||
|
||||
/* ---- §8.1.5 色板导出/注入(单一权威桥,M7.0a)----
|
||||
* 用户在 M7 定案「SDK meow_theme 为唯一权威」:launcher 的 s_ui_theme() 将改为读 SDK 的薄壳,
|
||||
* 不再自持 4 套静态色板。本接口是那个前置(launcher 侧改动不在此批)——
|
||||
*
|
||||
* meow_theme_export(out) 把当前「style×mode」解析生效的完整权威主题拷给调用方。
|
||||
* 调用方是 stateless 的绘制原语时(如 launcher s_ui_theme),由此读
|
||||
* 单一权威,再按它的角色字段(9 色)映射到自己的绘制便利结构,即:
|
||||
* surface → surface
|
||||
* surfaceVariant → surface_variant
|
||||
* surfaceContainer → surface_container
|
||||
* primary → primary
|
||||
* onSurface → on_surface
|
||||
* onSurfaceVariant → on_surface_variant
|
||||
* outline → outline
|
||||
* error → error
|
||||
* surfaceTint → surface_tint
|
||||
* meow_theme_inject(src) 用一份自定义板覆写当前生效主题(如 launcher 自定义背景/强调/风格),
|
||||
* src==NULL 恢复内建(随 settings 解析)。覆写不随 meow_theme_reload() 丢弃
|
||||
* (程序化覆写优先于 settings,与 meow_ui_set_style 语义一致)。 */
|
||||
void meow_theme_export(meow_theme *out);
|
||||
void meow_theme_inject(const meow_theme *src);
|
||||
|
||||
/* ---- §8.1 顶级主题风格族(minimal,2026-08-30)----
|
||||
* 主题 = 顶级主题风格族(ui.style:MD3/MIUIx)× 明暗(display.theme)。本批只落「状态栏图标集
|
||||
* 随 ui.style 换集」的最小闭环:meow_ui_set_style 记录 style(同值忽略)+ 触发 theme_reload/
|
||||
|
||||
Reference in new issue
Block a user