Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

darkmode在ios中覆盖颜色 #4888

Open
beichen2023 opened this issue May 7, 2024 · 1 comment
Open

darkmode在ios中覆盖颜色 #4888

beichen2023 opened this issue May 7, 2024 · 1 comment

Comments

@beichen2023
Copy link

iPhone 12
苹果版本 17
darkmode监听主题后,我动态设置底部的tabbar
我vuex中定义了一个变量存放主题light和dark
安卓中可以正常设定颜色,但是ios中无法正常动态设置颜色,只能是onshow中uni.setTabbar(可是这样用户体验很差,有一个变色的过程)
ios中被darkmode的框架限制,我动态设置颜色的代码会被覆盖掉,假设我用户选择了light,但是系统是dark,虽然我执行了动态修改的命令,但是仍然显示系统的颜色。这个问题只有ios出现,安卓是正常的。

@beichen2023
Copy link
Author

问题有2个:
1.ios下 原生的tabbar 只能在页面生命周期里动态设置颜色(兼容性问题)
2.darkmode能不能不要只是跟随系统,能不能自己选择dark或light?(功能优化建议)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant