mcg

授权协议 MIT License
开发语言 Java
所属分类 手机/移动开发、 Android UI 组件
软件类型 开源软件
地区 不详
投 递 者 尚河
操作系统 Android
开源组织
适用人群 未知
 软件概览

Material Design Color Generator

http://mcg.mbitson.com/

A tool for generating a color palette for Material Design. Supports exporting to and importing from various Material Design frameworks and toolkits.

Screenshot

Supported Frameworks & Tools

This palette generation tool supports both exporting and importing palettes for the following frameworks and tools:

  1. Android XML
  2. AngularJS (Material)
  3. AngularJS 2 (Material 2)
  4. Ember Paper
  5. Material Design Lite (SCSS)
  6. Material UI (React)
  7. Material UI Next (React)
  8. Vue.js Material Design
  9. Flutter
  10. MCG Reimport (Proprietary)

When importing code, please ensure that it was code generated with this tool. In many cases, code generated outside of this tool should work as well, however this is unreliable.

Color Generation

By default, we've chosen an Algorithm that seems to do a decent job at picking colors in most situations. However, if you find your palette doesn't look quite how you'd expect, you may change the algorithm that is used. Options are:

  • "Traditional" is the original MCG logic. It is currently the default. It creates a lower contrast palette.
  • "Constantin" is the logic that was developed based on the outline from here. It creates a higher contrast palette.
  • "Buckner" is a slight variation in "Constantin" focusing on the A100 - A700 hues.

What's New?

Please see the CHANGELOG.

Bugs & Questions

Should you encounter a bug/problem or have a question about the tool please report it using GitHub's "Issues" feature here.

Planned Enhancements

  • (TOP) Determine which palette is primary, secondary, and so on. Drag and drop palettes.
  • (MED) Remove individual color's hex details and create tooltip styled with all color details. (Hoverintent, populated only once it's opening, includes hex, rgb, cmyk, saturation, brightness. Possibly obtained using tinycolor)
  • (MED) Improve performance by dynamically creating and destroying the color picker button and UI instead of loading a ton of Divs into the DOM for each color on the screen and hiding them.
  • (LOW) Add reset buttons for each individual color in a palette (based on main palette color)
  • (LOW) Create UI for more than 5 palettes (and/or alert user about dangers of using this many palettes)

Contributions

  • fireflight1 - Initial concept, starting code base.
  • tkh44 - Optimizations/fixes
  • simon04 - Contrast detection, bug fixes.
  • Constantin - Color algorithm logic per stack overflow answer here.
  • tabuckner - Slight variation in 'Constantin' focusing on the A100 - A700 values.
  • vstollen - Added generators necessary to support Flutter
  • berryp - Bugfixes on Flutter support
 相关资料
  • mcg-helper是一款研发个化性流程自动化工具,提供一套可视化“流程自动化”的规范,丰富的拖拽控件,良好的交互性,基于流程图实现自动化,能够很好感知到可控性、实时性、可追溯性。更好的解决在研发工作中较典型的代码生成、应用部署、环境搭建、模拟环境、自动发现与检测、数据处理等需求场景,从而达到减少简化工作量。其核心亮点在于打造自己的流程控件,实现自定义需求。 mcg-helper的优势? 轻量级、

  • MCGifEmojiLabel 是一款用户友好的 UILabel 子类,允许开发者以动图的形式显示emoji,同时允许自行添加链接。借鉴了 OHAttributedLabel 的部分代码。 使用非常方便:     - (void)viewDidLoad {         [super viewDidLoad];         // Do any additional setup after l

相关阅读

相关文章

相关问答

相关文档