thomaslindstrom / color-picker

A color picker for the Atom Editor. Right click a color and select color picker to open it.
MIT License
246 stars 50 forks source link

Exposing a service for third party packages #156

Closed abe33 closed 8 years ago

abe33 commented 8 years ago

It would be great if the package could provide a service to allow packages to open a color picker with a specific color, a screen position and a function to callback when the user is done with the picker (by passing either the new color or undefined if cancelled, or something along this line).

Related to abe33/atom-pigments#16

steelbrain commented 8 years ago

Bump. This would be really useful

steelbrain commented 8 years ago

Just something like this would cover my use case

interface ColorPicker {
  openColorPicker({textEditor, bufferPosition})
}
thomaslindstrom commented 8 years ago

@abe33 This should be available in color-picker 2.1.0!