Code Monkey home page Code Monkey logo

chameleon's People

Contributors

fya7 avatar jyhu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chameleon's Issues

针对Button,如果在同一主题下面,Button有多个背景颜色,如何设计?

仔细看了作者写的文章,写得很好,不知道对于同一主题下面同一个抽象控件(比如UIButton)有多个背景颜色,及在不同背景颜色下面有不同的字体大小和字体颜色,该如何设计,才能让使用者做到见名知义了?

思考:

想过参考UIButton的构造方法中枚举一样(UIButtonTypeCustom和UIButtonTypeSystem等)在Button这个json文件下面设置对应的key和value,但是如果在同一个主题下面button超过3种以上的不同背景颜色,使用者可能需要通过看注释说明,如果在添加一个新的主题,json文件中的颜色值对应关系也不好确定。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.