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

颜色值设置问题 #33

Closed
smallevilbeast opened this issue Jun 3, 2019 · 3 comments
Closed

颜色值设置问题 #33

smallevilbeast opened this issue Jun 3, 2019 · 3 comments
Labels
question Further information is requested

Comments

@smallevilbeast
Copy link
Contributor

smallevilbeast commented Jun 3, 2019

问题现象

<HBox width="stretch" height="35" bkcolor="#ff0E8EE7">

bkcolor 不能这样设置吗

这样设置就直接报错了

@smallevilbeast
Copy link
Contributor Author

有的颜色是单页面使用的, 全放在Global也不合适丫- -

@nmgwddj
Copy link
Collaborator

nmgwddj commented Jun 4, 2019

一套合理的视觉设计颜色不会多种多样的,每一个颜色都是有针对性、精心挑选的。类似 element-ui、antd 等前端 UI 组件库,都是有一套主题管理方案的:https://element.eleme.cn/#/zh-CN/component/custom-theme

每一种色彩对应的都是一个场景,比如进度条前景色、进度条背景色等,这样方便换肤等特效方法的实现。如果您出现了一个颜色只有一个位置使用,那是不是应该考虑一下这是否违背了 UI 的设计原则呢?

@nmgwddj nmgwddj added the question Further information is requested label Jun 4, 2019
@smallevilbeast
Copy link
Contributor Author

这个回答真赞 👍

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

No branches or pull requests

2 participants