Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stroke color override with @symbol_color does not use overridden Fill color #28620

Closed
qgib opened this issue Dec 13, 2018 · 2 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers

Comments

@qgib
Copy link
Contributor

qgib commented Dec 13, 2018

Author Name: Johannes Kroeger (Johannes Kroeger)
Original Redmine Issue: 20800
Affected QGIS version: 3.5(master)
Redmine category:symbology


Use some polygon data.

  1. Override the fill color to something with an expression, e.g. @color_rgb(255,0,0)@
  2. Override the stroke color to use @@symbol_color@

The stroke will not use the overridden fill color but the color that option had before the overriding.

The stroke should be using the overridden fill color.

@qgib
Copy link
Contributor Author

qgib commented Jan 8, 2019

Author Name: Nyall Dawson (@nyalldawson)


This is working as intended -- The @symbol_color variable contains the color set for the "top level" of the symbol (i.e. the color you see when you click the "Marker"/"Line"/"Fill" option at the top of the symbol widget's layer list.

When you override the fill color, you're only setting the color for that single symbol layer, but potentially there could be many layers in your symbols, each with their own colors.

I think this report is more of a "feature request", requiring new variable(s) of the type @symbol_layer_fill_color, etc. But that's also complicated -- because there's no dependency resolution here, and you could potentially have the outline color depend on the fill color, OR the fill color depend on the outline color, etc...


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Jan 22, 2019

Author Name: Nyall Dawson (@nyalldawson)


  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed Jan 22, 2019
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers
Projects
None yet
Development

No branches or pull requests

1 participant