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,GLSLandhex.
-
Available formats can only be those supported by the current text editor. For example, the dialog only proposes
Qt.rgbaandQt.hslaformats if you're editing aQMLfile. -
There are two ways to insert a color in the current text editor : you can press the
Returnkey or just change the color or the format in the color editor.
Put all files in <QtCreatorSourcesDir>/src/plugins/colorpicker.
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 is developed for QtCreator >= 3.5.0. I will not test it with earlier versions.
-
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 !
