Skip to content

Color Picker

Compare
Choose a tag to compare
@thatsIch thatsIch released this 20 Dec 15:51
· 187 commits to master since this release

Build against: 3126
Requires at least: 3092

I fixed the integration with the color picker.

The default keybinding for the color picker ctrl+shift+c.
It worked by selecting the area like this:

selected-area-shaded

which makes it really inconvenient. I changed the behaviour where only the caret needs to be inside of the color. So that it could be either |75A0E8FF or 75A0|E8FF or 75A0E8FF| and it would still trigger the color picker.

The color picker also supported multiple OS which makes in case of Rainmeter little sense. I think only 4 people installed it on Linux and OSX and probably just by accident. I removed that and replaced the default windows color picker with a shipped one.

color-picker-gui-shaded

It has better UI and additionally supports alpha-channel editing. Basic color picking is also supported where you do not have to replace any existing color, but just execute it to get your color.

I also added some convenient conversions for the colors:

Alpha Detection:
If you change the color, it automatically detects if you already had an alpha channel and thus uses that information. But if you had no alpha channel and changed the alpha value in the color picker, it will be added.

Example:

  • FF0000 ->FFFF00 changed color, had no alpha-channel, alpha-channel was truncated
  • FF0000 -> FF000080 had no alpha-channel, added alpha-channel
  • FF000080 -> FFFF0080 changed color, had alpha-channel, alpha-channel stays

Hex Detection:
If you like to write in the Rainmeter color Format RRR,GGG,BBB,AAA then the new color picker respects that.

Fixup release, because I forgot to push -.-