A color picker plugin to easily insert and modify colors in QtCreator's text documents, inspired by Adobe Brackets.
- Supports the following color formats :
rgb
,hsv
,hsl
,QML
,GLSL
andhex
.
-
Available formats can only be those supported by the current text editor. For example, the dialog only proposes
Qt.rgba
andQt.hsla
formats if you're editing aQML
file. -
There are two ways to insert a color in the current text editor : you can press the
Return
key or just change the color or the format in the color editor.
Put the folder colorpicker
in <QtCreatorSourcesDir>/src/plugins/
.
Now open <QtCreatorSourcesDir>/src/plugins.qbs
with your favorite text editor and add the project file to the reference list (something like "colorpicker/colorpicker.qbs"
).
Build QtCreator. That's it.
Open the Tools
menu and trigger the action ColorPicker | Trigger Color Edit
, or use Ctrl + Alt + C
.
-
This plugin requires C++14 and is developed for QtCreator >= 4.0.0.
-
I use Qbs rather than QMake. It seems that there's currently no way to develop a plugin without having the whole QtCreator project opened.
-
WIP !