ke: 玻璃面板(系统材质):WideSidebar bgActive 走 BlurStyle,撤回手写 alpha
遵守既有玻璃纪律(cross-client-theme B/C): - 手写 8 位半透明色一律禁止(半透明归系统材质),撤回 #E6FFFFFF 尝试 - 玻璃 = 系统 BlurStyle(navMaterial) + 不透明系统色 surface,半透明由 BlurStyle 给 - WideSidebar 加 @Prop bgActive:bgActive 时 backgroundBlurStyle,否则 NONE - 内容面板只保留几何(radius/clip/padding/gap),不加材质(判据按 @Builder 解析 owner 会与 NavBar 撞 key;壁纸从面板缝隙露出已达成 app-shell 观感) - GLASS_REGISTRY 登记 WideSidebar#NavItemBuilder(判据按最近 @Builder 命名)
This commit is contained in:
@ -305,7 +305,9 @@ test('B|旧机制不得回来:手写玻璃 alpha、替系统猜深色、与
|
||||
*/
|
||||
const GLASS_REGISTRY = [
|
||||
// 文件(相对 ets 根) + 组件/Builder 名:为什么这里可以有一层系统材质
|
||||
{ file: 'pages/MainPage.ets', provider: 'NavBar', why: 'P5 悬浮玻璃条:浮在**会滚动的内容**之上(pi 给的放行条件②),壁纸层整个不吃材质' }
|
||||
{ file: 'pages/MainPage.ets', provider: 'NavBar', why: 'P5 悬浮玻璃条:浮在**会滚动的内容**之上(pi 给的放行条件②),壁纸层整个不吃材质' },
|
||||
// ★ 2026-09-16:宽屏 app-shell 复刻 WebUI —— 面板走系统材质(半透明由 BlurStyle 给,不手写 alpha)
|
||||
{ file: 'pages/WideSidebar.ets', provider: 'NavItemBuilder', why: '宽屏侧栏(判据按最近的 @Builder 命名):浮在壁纸之上、背后是会滚动的导航内容(WebUI Sidebar 同形状),bgActive 才开' }
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user