Bug report #11996

Custom hightlight color for 'Identify Features' tool not applied when right clicking on the map canvas

Added by Koen De Munter almost 7 years ago. Updated over 6 years ago.

Status:Closed
Priority:Low
Assignee:-
Category:Map Canvas
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:20201

Description

When you change the color of the Identify Features tool, that color is applied to the objects you clicked on the map.
This change of color is not consistent in the following situation:

If you click on the map, and features of multiple visible layers have been hit, a grey box appears giving the option to choose of which layer you'd like to consult the appointed features. But, when you hover over the options, the default red color is used for indicating the respective features. As you eventually choose of the options, your customized color returns.

Bottom-line: the custom defined color is not used for dynamic indication of the features on the map when hovering over the options if features from different layers have been activated.

History

#1 Updated by Giovanni Manghi over 6 years ago

  • OS version deleted (Windows 7 Pro (SP1))
  • Target version changed from Future Release - Nice to have to Future Release - Lower Priority
  • Subject changed from Custom color 'Identify Features' tool not applied to options 'Layer selection' mode to Custom hightlight color for 'Identify Features' tool not applied when right clicking on the map canvas
  • Affected QGIS version changed from 2.6.1 to master
  • Operating System deleted (Windows )

It is not related to the "mode" (current layer, top down, layer selection, etc.). The custom color is never used when right clicking on the map canvas to choose what layer the identify should be applied.

#2 Updated by Richard Duivenvoorde over 6 years ago

the color is set here
https://github.com/qgis/QGIS/blob/master/src/gui/qgsidentifymenu.cpp#L583
it is 255,0,0 now (red)

I've added a pull request to use the same colors as the user defined colors:

https://github.com/qgis/QGIS/pull/1839

NOTE: IF the user did NOT set an opacity <1 here for the color you will have a fully opaque 'rubberband', so will not 'see through' the different features in different layers. BUT that's up to the user to do it right.
Using the default color (red 50% opaque) it is ok.

#3 Updated by Richard Duivenvoorde over 6 years ago

  • Status changed from Open to Closed

Code is merged in master, plz test and reopen if you see other problems.

Also available in: Atom PDF