Sublime Forum

ColorHelper 3.0 Beta

#1

It’s been a long time coming, but the ColorHelper 3.0 Beta is now available. A number of issues were fixed, a number of things were improved. Some things got the axe, but also new features were added.

The goal was to make it perform better, to make it more flexible in regards to managing colors, and make maintaining the project less of a chore for me, so I don’t hide from giving the project the attention it deserves :smile: .

The new ColorHelper supports more color formats and more color spaces. Did you need the latest CSS syntax (rgb(0 0 0 / 1)? ColorHelper has you covered. Did you need it to support new spaces coming down the pipe like LCH and Lab? ColorHelper supports those.

We’ve even taught it some new tricks. Preview only on selection?

Want to play around with mixing colors?

What about comparing the contrast of colors (in sRGB, HSL, and HWB)?

You can pick up the beta on Package Control and try it out, but it is a beta, and there are a couple of steps. The dependency we need is not yet on Package Control, but we provide a channel repository file that will allow Package Control to locate and install it now. You also have to enable prereleases for ColorHelper. Instructions can be found here: https://facelessuser.github.io/ColorHelper/installation/#install-3.0-beta.

Give it a try. Let me know what you think, good, bad, or in between.

4 Likes

#2

UPDATE: it works on ST 3211. False alarm.


Seems not working for ST 3211. (I didn’t encounter such an issue when I try it in my ST 4 setup)

I check the http_cache in Package Control’s cache, there IS coloraide in the cached json but somehow the following still happened

Package Control: The dependency 'coloraide' is not available

After manually install coloraide dependency (which I copied from my ST 4 setup), following errors appeared

Traceback (most recent call last):
  File "D:\_Download\Sublime Text Build 3211 x64\sublime_plugin.py", line 125, in reload_plugin
    m = importlib.import_module(modulename)
  File "./python3.3/importlib/__init__.py", line 90, in import_module
  File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "D:\_Download\Sublime Text Build 3211 x64\sublime_plugin.py", line 1199, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "D:\_Download\Sublime Text Build 3211 x64\Data\Installed Packages\ColorHelper.sublime-package\color_helper.py", line 9, in <module>
ImportError: cannot import name Color

Not sure it’s a PC issue or CH’s.

1 Like

#3

Did you restart after installing everything? I did perform this on a clean portable ST before making this public to make sure it worked, but a restart after installation is mandatory or things won’t load proper.

0 Likes

#4

Yes, but it remained same errors.

ImportError: cannot import name Color
0 Likes

#5

Let me double check that I ran this in ST3 and not ST4.

0 Likes

#6

I hit github API rate limit hence I installed coloraide manually after that. I would try later with a normal installation process.

0 Likes

#7

Yeah, the github rate limit is a problem. If you git clone it manually, you have to run Package Control’s install local dependency,

0 Likes

#8

ok. somehow it works now. I did nothing since then :slight_smile:

0 Likes

#9

Things will hopefully be smoother once the lib is in Package Control, but the process is slow at times, so this was the best way to start getting it into people’s hands sooner rather than later :slightly_smiling_face:.

2 Likes