Ash Color Chooser

Overview

This document describes how to achieve <input type=”color”> UI in ChromeOS/Ash.

Motivation

<input type=”color”> is a new input type introduced in HTML5.  It enables users to pick a color and returns a value of #hhhhhh format.  WebKit forms team has decided to use platform’s default color picker rather than implementing a new one.  It means that we need to implement our own color picker view for ChromeOS/Ash.

First Goal

  • Implement simple color picker dialog working with <input type=”color>.
  • Implement with views, not HTML.
  • Features
    • Behave as Modal Dialog (see doc)

      • Appears in the topmost z-order
    • Pick up a color from HSV model
      • Has both a Hue bar and a Saturation-Value plane (see below mock).
    • Pick up a color from text
      • Allow copy/paste
      • Specify the color by …
        • rgb(xx ,yy, zz)
        • #RRGGBB
        • CSS well-known color name
        • … anything else?
    • Work on Chrome OS
  • first mock

    • Confirmed that the upper box isn’t necessary, since the color will be shown in the page.
  • Current screenshot:

Next plans (not confirmed yet)

  • Global Color Picker: Picking a color from any point on the desktop.

    • Even from other tab, window or desktop.
  • “Favorite Color” feature
    • Pick up the color easily from each user’s favorite color.
  • Works on Windows and Chrome OS
    • Currently, Windows has native OS Color PIcker Dialog. This new Color Picker will replace it.

Not Goal

  • Alpha value (transparency) support

    • HTML5 spec has not supported alpha value.

References

Input type=color spec: http://www.w3.org/TR/html-markup/input.color.html

转载于:https://www.cnblogs.com/huangguanyuan/p/10072749.html

UI Framework-1: Ash Color Chooser相关推荐

  1. when is Component-preload.js loaded by UI Framework

    Created by Jerry Wang, last modified on Jan 16, 2015 sap.ushell.services.AppConfiguration.getMetadat ...

  2. Element - Vue UI Framework

    Element - The world's most popular Vue UI framework

  3. Symbian的UI Framework

    应用程序类(CAknApplication->CEikApplication->CApaApplication) 文档类(CAknDocument->CEikDocument-> ...

  4. UI framework显示message technical information的实现

    Created by Jerry Wang, last modified on Jun 24, 2014 User parameter里只要BSPWD_USER_LEVEL 值大于5 即可在webcl ...

  5. UI framework 处理user 错误输入的逻辑

    例子: 在opportunity的创建页面,给closing date输入一个无效的日期,回车: 下面方法是UI框架处理的入口: 在试图将1.2转换为日期时出错,抛出cx_bsp_conv_ill_d ...

  6. Unity3D通过代码修改RGB值来控制UI与物体的Color颜色

    在实际应用过程中,经常有需要将某一物体颜色修改成特定颜色的情况,此时Color中自带的颜色就不够用了,此时我们就需要通过用代码修改RGB值来控制颜色. 常见的错误写法 下面以修改TextMeshPro ...

  7. Unable to preview the file. Please open a JS, CSS or HML file of the JS UI framework or a layout.xml

    这个是DevEco 开发工具提示的. 这个问题是打开HarmonyOS graphic 里面的xml文件,比如自己画了一个shape想预览下 什么效果,出现了这个问题, 就是不支持,刚开始想了半天为啥 ...

  8. Android UI selector 例子 (drawable/color)

    <?xml version="1.0" encoding="utf-8"?>  <selector xmlns:android="h ...

  9. how drop down list description is displayed by UI framework

最新文章

  1. Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in lib
  2. 关于开源堡垒机Jumpserver二次开发
  3. 科大星云诗社动态20210824
  4. 全国计算机等级考试题库二级C操作题100套(第49套)
  5. POJ-1260 Pearls DP
  6. Grafana+Prometheus系统监控MySQL
  7. ubuntu 18 安装xgboost GPU版本
  8. html子级透明度不随父级别,我不想从CSS的父级继承子级不透明度
  9. VM虚拟机的三种网络连接模式
  10. Matlab图像显示
  11. 国产_系统_加油 by tmddebaba
  12. 浏览器报错 CORS 请求不是 http
  13. 交换机设备登录账号权限1_h3c交换机设置用户权限
  14. 负载均衡性能参数如何测评?
  15. phalapi-进阶篇6(解决大量数据存储数据库分表分库拓展)
  16. PCIe卡知识扫盲:你想了解的都在这里
  17. 计算机系统软件与工具软件
  18. android高德方向,Android 高德地图进阶功能
  19. vb 读取mysql所有表名_VB 读取ACCESS数据库中所有表名和指定表字段名.doc
  20. 分布式处理系统服务器配置,分布式解决方案

热门文章

  1. linux基本命令示例_Linux mv命令用法和示例
  2. 亚马逊,应用网关_Amazon API网关
  3. Android Instant Apps教程
  4. java访问修饰符_Java访问修饰符
  5. Java中的AtomicInteger
  6. 运行Eclipse出错:Failed to load the JNI shared library
  7. 从事前端开发,日常工作中必备的工具有哪些?
  8. 目前人工智能技术趋势如何?
  9. 开课吧Java课堂:如何使用isAlive()和join()
  10. PYTHON——TCPUDP:socketserver实现多人聊天