puranjayjain / chrome-color-picker

A color picker inspired from chrome's color picker
https://atom.io/packages/chrome-color-picker
Other
16 stars 2 forks source link

chrome-color-picker

Greenkeeper badge A color picker inspired by chrome's dev tools color picker (or spectrum color picker)

Join us on the Atom Community on Slack Gitter

Always mention the relevant person with @username

Preview

Demo Image

Note: The color highlight or marker is not part of this package, to obtain that functionality we use pigments and the syntax theme is chrome-dark-syntax

Install

Using apm:

apm install chrome-color-picker

Using Atom

Search for chrome color picker in Atom Settings (Settings > Install > Search).

Simple Usage

Features

Use Colors in these formats

Integrated Palette

Accessibility

You can use the entire picker using just the keyboard.
Use these keys for navigating within the component:

There are more actions that are possible with keys and mouse

Slide using scroll

You can use the mouse wheel to scroll on the sliders and the main canvas to change the values. You can also do the following:

Note: ctrl also means cmd in Unix based operating systems like Linux or OS X

Slide using arrow keys

You can use the arrow keys to scroll on the sliders and the main canvas to change the values. You can also do the following:

Supports multiple cursors [Beta]

When you have multiple cursors it inserts the color in each of their locations

Color Picking from screen [Beta]

You can now pick colors from anywhere on the screen

Note: Features marked [Beta] are not stable and might not work as expected so feel free to point out any issues with them

Powered by

The plugin uses the following projects (or their sources) or technologies in some manner:

Feel free to use the source code of the converted files as long as you adhere to their respective licenses.

Customize the key binding to your taste

Open your keymap file and add this line to it:

'atom-workspace':
  'your-keybinding': 'chrome-color-picker:toggle'

Note: Your key binding can be e.g. alt + ctrl + c and also make sure to disable the default key binding from the package's settings or resolve it using the key binding resolver

The commands that are supported currently are:

Purpose to create

This implementation was built from ground up to:

FAQs

1) I am seeing strange settings which I'm not able to edit

Solution

  1. Open the developer tools in atom (View > Developers > Toggle Developer Mode or Using ctrl + alt + i)

  2. Enter this command in the developer tools console atom.config.unset('chrome-color-picker') and restart atom

2) How do I know which settings override which ones?

Solution

Feel free to update the wiki with your findings.

3) Do you mind feature requests or suggestions?

Solution

They are always welcome, even if they are present in the milestone

4) Help! the picker won't open !

Solution

Try restarting atom or closing and opening atom or reloading atom (View > Developer > Reload Window)

Versioning

For transparency into our release cycle and in striving to maintain backward compatibility, package is maintained under the Semantic Versioning guidelines. Sometimes we screw up, but we'll adhere to those rules whenever possible.

License

Copyright © 2016 Puranjay Jain and Contributors All Rights Reserved. This project is licensed under an MIT License.

The list of all 3rd party licenses along with the main License can be found here