Bug report #17721
Color picker does not pick the color (always set to transparent)
|Affected QGIS version:||master||Regression?:||Yes|
|Operating System:||Windows||Easy fix?:||No|
|Pull Request or Patch supplied:||Yes||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||25617|
#1 Updated by Kurt Menke almost 3 years ago
- File colorpickerdropdown.gif added
I am still seeing this issue with QGIS Version: 2.99.0-Master QGIS code revision: d87c60512c
Compiled against Qt: 5.9.2
Running against Qt: 5.9.2
Compiled against GDAL: 2.2.3
Running against GDAL: 2.2.3
Windows 10 64 bit
The Pick color tool does not select the correct color when selecting a color from the desktop. When using the Color --> Pick Color tool either from the Styling Dock or Layer Properties the tool makes the color transparent.
#3 Updated by Kurt Menke almost 3 years ago
- File ColorPicker.gif added
No, when using the Pick color tool from the dropdown color widget, the color is set to transparent even if I pick a color within the QGIS application. However, if I select Choose color... --> Sample color it works. From there I can select a color from within QGIS or from other places on my desktop.
#6 Updated by Alessandro Pasotti almost 3 years ago
Ok, I have a fix for item 2 above.
But I'm hesitant: why do we have/need two different ways to pick a color? Wouldn't be better to just keep the "Sample color" from "Choose color" action?
What we should probably do is to make the "Pick color" action activate the color widget (like the "Choose color..." action does) and activate the "Sample color" action within the color widget: this way we have a consistent behavior and less (duplicated) code to maintain.
In other words, I suggest to make the "Pick color" action a shortcut for "Choose color..." -> "Sample color".
#7 Updated by Alessandro Pasotti almost 3 years ago
- Pull Request or Patch supplied changed from No to Yes
This hopefully fixes the issue, works for me on win 10 and Linux but on Win 10 the cursor does not always immediately changes to a picker: sometimes it takes a few seconds or a few mouse moves, I'm not sure if this is something due to my relatively slow Win 10 VM.
Please give this a try.