Quick poll… what’s the most frustrating thing about GIS? Fighting with colour plotters? Trying to remember GDAL command line syntax? MapInfo’s new ribbon interface* ? All of the above?
It’s getting a colour from here:
…all the way over to here:
Since the dawn of GIS humanity has struggled with this simple task* . We’ve come up with multiple techniques for solving this problem, ranging from the RSI inducing “select and copy red value, alt-tab, paste, alt-tab, select and copy green value, alt-tab, paste, etc….” method, through to chanting “70, 145, 160… 70, 145, 160… 70, 145, 150… 70, 145, 150” to ourselves as we frantically try and rearrange dialogs to find the destination colour picker, all the while avoiding strange looks from co-workers.
Fortunately, QGIS 2.4 is coming to the rescue! Now, you can right click on any of QGIS’ colour picker buttons for a handy copy/paste colour shortcut menu. Pasting colours works from a whole range of formats, including hex codes, color names, and css-style “rgb” and “rgba” strings.
Even better, you can just drag colours from one colour button to another:
Or, drag a colour from GIMP and drop it onto a QGIS colour button:
Or even drag a colour from a QGIS button directly onto a shape in Inkscape! All this win is coming your way in QGIS 2.4, due June 2014.
 Pre-empting the inevitable flood of complaints when this new interface is rolled out
 I assume
WOAH! That’s very nice!
Do you reckon you could build in a colour picker / eyedropper to the “Select Color” window so we can pick colours from outside of QGIS, something like Pixie (http://www.nattyware.com/pixie.php) or ColorPic (http://www.iconico.com/ColorPic/)? That’d be awesome when trying to match colours in a map from a pdf or website, etc. I guess you could have Gimp open and drag the colour tile but a built-in picker would be sweet as!
It’s on my to do list- I also find that a really useful feature in GIMP, and I think it would be great for sampling colors from a raster layer.
I couldn’t have drag&drop work in revision a94483e as you mention. Copy on right click works.
Is it merged yet?
a94483e is too old – the change was made a few commits after that.
Just add a colour picker for both fill and border and we can be in color nirvana
Ha ha! Love the bit about chanting RGB values…I find myself doing it all the time. Looking forward to all these new features
Another chanter here.
Love the dragging features, a toggle button ala the old Photoshop would also allow quick fill/border colour changing.
That is awesome. Great article Nyall and a great user friendly feature. That is bound to speed up repetive Mapping tasks.
[…] with colours is a huge part of cartography. In QGIS 2.4 I made a few changes to improve interaction with colours. These included the ability to copy and paste colours by right clicking on a colour button, and […]
Lol, “chanting “70, 145, 160…” is my personal favorite.