ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Color​Picker

by Weslly H. ALL Top 25

A multi-platform color picker plugin

Labels css

Details

Installs

  • Total 1.49M
  • Win 1.09M
  • Mac 215K
  • Linux 189K
Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30
Windows 9 36 24 34 28 27 18 22 40 32 32 30 17 18 21 58 41 24 27 28 21 27 45 61 55 17 21 11 21 16 38 48 29 38 15 21 35 62 29 23 29 17 28 52 35 24
Mac 0 1 4 5 3 0 2 4 1 3 3 3 0 5 2 4 2 2 2 4 6 3 7 5 2 6 2 3 0 2 5 3 7 3 1 1 5 8 7 3 2 4 6 8 4 0
Linux 3 1 2 4 5 3 4 0 8 4 5 2 8 1 3 5 3 4 9 1 5 0 9 6 6 2 2 5 7 1 5 4 4 1 8 1 2 4 7 8 6 1 7 8 4 5
0204060Jun 14Jun 11Jun 8Jun 5Jun 2May 30May 27May 24May 21May 18May 15May 12May 9May 6May 3Apr 30Jun 14 Linux: 3 Mac: 0 Windows: 9Jun 13 Linux: 1 Mac: 1 Windows: 36Jun 12 Linux: 2 Mac: 4 Windows: 24Jun 11 Linux: 4 Mac: 5 Windows: 34Jun 10 Linux: 5 Mac: 3 Windows: 28Jun 9 Linux: 3 Mac: 0 Windows: 27Jun 8 Linux: 4 Mac: 2 Windows: 18Jun 7 Linux: 0 Mac: 4 Windows: 22Jun 6 Linux: 8 Mac: 1 Windows: 40Jun 5 Linux: 4 Mac: 3 Windows: 32Jun 4 Linux: 5 Mac: 3 Windows: 32Jun 3 Linux: 2 Mac: 3 Windows: 30Jun 2 Linux: 8 Mac: 0 Windows: 17Jun 1 Linux: 1 Mac: 5 Windows: 18May 31 Linux: 3 Mac: 2 Windows: 21May 30 Linux: 5 Mac: 4 Windows: 58May 29 Linux: 3 Mac: 2 Windows: 41May 28 Linux: 4 Mac: 2 Windows: 24May 27 Linux: 9 Mac: 2 Windows: 27May 26 Linux: 1 Mac: 4 Windows: 28May 25 Linux: 5 Mac: 6 Windows: 21May 24 Linux: 0 Mac: 3 Windows: 27May 23 Linux: 9 Mac: 7 Windows: 45May 22 Linux: 6 Mac: 5 Windows: 61May 21 Linux: 6 Mac: 2 Windows: 55May 20 Linux: 2 Mac: 6 Windows: 17May 19 Linux: 2 Mac: 2 Windows: 21May 18 Linux: 5 Mac: 3 Windows: 11May 17 Linux: 7 Mac: 0 Windows: 21May 16 Linux: 1 Mac: 2 Windows: 16May 15 Linux: 5 Mac: 5 Windows: 38May 14 Linux: 4 Mac: 3 Windows: 48May 13 Linux: 4 Mac: 7 Windows: 29May 12 Linux: 1 Mac: 3 Windows: 38May 11 Linux: 8 Mac: 1 Windows: 15May 10 Linux: 1 Mac: 1 Windows: 21May 9 Linux: 2 Mac: 5 Windows: 35May 8 Linux: 4 Mac: 8 Windows: 62May 7 Linux: 7 Mac: 7 Windows: 29May 6 Linux: 8 Mac: 3 Windows: 23May 5 Linux: 6 Mac: 2 Windows: 29May 4 Linux: 1 Mac: 4 Windows: 17May 3 Linux: 7 Mac: 6 Windows: 28May 2 Linux: 8 Mac: 8 Windows: 52May 1 Linux: 4 Mac: 4 Windows: 35Apr 30 Linux: 5 Mac: 0 Windows: 24Jun 14 Linux: 3 Mac: 0 Windows: 9Jun 13 Linux: 1 Mac: 1 Windows: 36Jun 12 Linux: 2 Mac: 4 Windows: 24Jun 11 Linux: 4 Mac: 5 Windows: 34Jun 10 Linux: 5 Mac: 3 Windows: 28Jun 9 Linux: 3 Mac: 0 Windows: 27Jun 8 Linux: 4 Mac: 2 Windows: 18Jun 7 Linux: 0 Mac: 4 Windows: 22Jun 6 Linux: 8 Mac: 1 Windows: 40Jun 5 Linux: 4 Mac: 3 Windows: 32Jun 4 Linux: 5 Mac: 3 Windows: 32Jun 3 Linux: 2 Mac: 3 Windows: 30Jun 2 Linux: 8 Mac: 0 Windows: 17Jun 1 Linux: 1 Mac: 5 Windows: 18May 31 Linux: 3 Mac: 2 Windows: 21May 30 Linux: 5 Mac: 4 Windows: 58May 29 Linux: 3 Mac: 2 Windows: 41May 28 Linux: 4 Mac: 2 Windows: 24May 27 Linux: 9 Mac: 2 Windows: 27May 26 Linux: 1 Mac: 4 Windows: 28May 25 Linux: 5 Mac: 6 Windows: 21May 24 Linux: 0 Mac: 3 Windows: 27May 23 Linux: 9 Mac: 7 Windows: 45May 22 Linux: 6 Mac: 5 Windows: 61May 21 Linux: 6 Mac: 2 Windows: 55May 20 Linux: 2 Mac: 6 Windows: 17May 19 Linux: 2 Mac: 2 Windows: 21May 18 Linux: 5 Mac: 3 Windows: 11May 17 Linux: 7 Mac: 0 Windows: 21May 16 Linux: 1 Mac: 2 Windows: 16May 15 Linux: 5 Mac: 5 Windows: 38May 14 Linux: 4 Mac: 3 Windows: 48May 13 Linux: 4 Mac: 7 Windows: 29May 12 Linux: 1 Mac: 3 Windows: 38May 11 Linux: 8 Mac: 1 Windows: 15May 10 Linux: 1 Mac: 1 Windows: 21May 9 Linux: 2 Mac: 5 Windows: 35May 8 Linux: 4 Mac: 8 Windows: 62May 7 Linux: 7 Mac: 7 Windows: 29May 6 Linux: 8 Mac: 3 Windows: 23May 5 Linux: 6 Mac: 2 Windows: 29May 4 Linux: 1 Mac: 4 Windows: 17May 3 Linux: 7 Mac: 6 Windows: 28May 2 Linux: 8 Mac: 8 Windows: 52May 1 Linux: 4 Mac: 4 Windows: 35Apr 30 Linux: 5 Mac: 0 Windows: 24Jun 14 Linux: 3 Mac: 0 Windows: 9Jun 13 Linux: 1 Mac: 1 Windows: 36Jun 12 Linux: 2 Mac: 4 Windows: 24Jun 11 Linux: 4 Mac: 5 Windows: 34Jun 10 Linux: 5 Mac: 3 Windows: 28Jun 9 Linux: 3 Mac: 0 Windows: 27Jun 8 Linux: 4 Mac: 2 Windows: 18Jun 7 Linux: 0 Mac: 4 Windows: 22Jun 6 Linux: 8 Mac: 1 Windows: 40Jun 5 Linux: 4 Mac: 3 Windows: 32Jun 4 Linux: 5 Mac: 3 Windows: 32Jun 3 Linux: 2 Mac: 3 Windows: 30Jun 2 Linux: 8 Mac: 0 Windows: 17Jun 1 Linux: 1 Mac: 5 Windows: 18May 31 Linux: 3 Mac: 2 Windows: 21May 30 Linux: 5 Mac: 4 Windows: 58May 29 Linux: 3 Mac: 2 Windows: 41May 28 Linux: 4 Mac: 2 Windows: 24May 27 Linux: 9 Mac: 2 Windows: 27May 26 Linux: 1 Mac: 4 Windows: 28May 25 Linux: 5 Mac: 6 Windows: 21May 24 Linux: 0 Mac: 3 Windows: 27May 23 Linux: 9 Mac: 7 Windows: 45May 22 Linux: 6 Mac: 5 Windows: 61May 21 Linux: 6 Mac: 2 Windows: 55May 20 Linux: 2 Mac: 6 Windows: 17May 19 Linux: 2 Mac: 2 Windows: 21May 18 Linux: 5 Mac: 3 Windows: 11May 17 Linux: 7 Mac: 0 Windows: 21May 16 Linux: 1 Mac: 2 Windows: 16May 15 Linux: 5 Mac: 5 Windows: 38May 14 Linux: 4 Mac: 3 Windows: 48May 13 Linux: 4 Mac: 7 Windows: 29May 12 Linux: 1 Mac: 3 Windows: 38May 11 Linux: 8 Mac: 1 Windows: 15May 10 Linux: 1 Mac: 1 Windows: 21May 9 Linux: 2 Mac: 5 Windows: 35May 8 Linux: 4 Mac: 8 Windows: 62May 7 Linux: 7 Mac: 7 Windows: 29May 6 Linux: 8 Mac: 3 Windows: 23May 5 Linux: 6 Mac: 2 Windows: 29May 4 Linux: 1 Mac: 4 Windows: 17May 3 Linux: 7 Mac: 6 Windows: 28May 2 Linux: 8 Mac: 8 Windows: 52May 1 Linux: 4 Mac: 4 Windows: 35Apr 30 Linux: 5 Mac: 0 Windows: 24

Readme

Source
raw.​githubusercontent.​com

Mac OSX

Linux

Windows

Installation

Install this repository via Package Control.

Usage

To insert or change a selected color, use:

  • Linux: ctrl+shift+c
  • Windows: ctrl+shift+c
  • OS X: cmd+shift+c

or use menu action

  • Tools** -> **ColorPicker

By default, the hex color code is inserted using uppercase letters. To use lowercase letters instead, copy the contents of **Preferences -> Package Settings -> ColorPicker -> Settings-Default** to the empty file created by selecting **Preferences -> Package Settings -> ColorPicker -> Settings-User**, then change "color_upper_case" to false.

Calling from Other Plugins

To commands are provided to assist in calling a color picker from other plugins. Info is shared between the plugins via a settings file. It does not have to exist on disk; it can exist only in memory for the sole purpose of sharing the return. It is advised to use a unique name for the settings file. The data is returned in the settings key color_pick_return. It is advised to set color_pick_return to None in your settings file before calling any of the commands. So you can tell if it set teh variable or not.

ColorPickApiIsAvailableCommand

This command is used to test if ColorPicker is installed.

>> settings = sublime.load_settings('my_shared.sublime-settings')
>> settings.set('color_pick_return', None)
>> sublime.run_command('color_pick_api_is_available', {'settings': 'my_shared.sublime-settings'})
>> print(settings.get('color_pick_return'))
True

ColorPickApiGetColorCommand

This command is used to call a color picker and get the selected value. It takes a setings file and an optional default_color.

>> settings = sublime.load_settings('my_shared.sublime-settings')
>> settings.set('color_pick_return', None)
>> sublime.run_command('color_pick_api_get_color', {'settings': 'my_shared.sublime-settings', 'default_color': '#ff0000'})
>> print(settings.get('color_pick_return'))
#23af44

Acknowledgements