[codex] adapt UI for HarmonyOS 7 - #11
Draft
haohaoai0 wants to merge 1 commit into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动内容
HdsMiniBarButton,标题栏按钮、分段按钮和搜索框改用原生Button、SegmentButton、Search系统材质。Function.bind、类作为对象和嵌套函数。改动原因
现有界面以旧版系统版本字符串和定制 MiniBar 包装组件控制材质效果,窗口安全区也混用了 px 与 vp。在 HarmonyOS 7、横屏、平板和可变窗口环境下可能出现首帧布局、顶部/底部避让和材质回退不一致的问题。
用户与开发者影响
验证
devecocli build cleandevecocli build:ArkTS 编译及打包检查通过git diff --checkHdsMiniBarButton遗留引用检查:0已知限制
上游仓库未包含
entry/src/main/cpp/types/libffi_ohos的真实私有原生库。完整编译验证使用过仅含类型声明的临时桩,临时桩未包含在本 PR 中;生成可运行安装包仍需补回真实原生库并配置签名。