qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.04k stars 2.92k forks source link

Color picker didn't adjust SVG label fill and stroke color using an SVG as background #57196

Open MathiasGroebe opened 2 months ago

MathiasGroebe commented 2 months ago

What is the bug or the crash?

If using an SVG as label background, it is possible to adjust the fill color and stroke color via QGIS. The color pickers (marked in the screenshot) for those parameters don't work, while setting a data-driven override adjusts the colors.

grafik

Steps to reproduce the issue

Create a label for a layer. Set the attached SVG as background for the label and try to adjust the stroke and file color via the color picker.

nk

Versions

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">

QGIS version | 3.36.1-Maidenhead | QGIS code revision | 3e589453264 -- | -- | -- | -- Qt version | 5.15.3 Python version | 3.10.12 GDAL/OGR version | 3.4.1 PROJ version | 8.2.1 EPSG Registry database version | v10.041 (2021-12-03) GEOS version | 3.10.2-CAPI-1.16.0 SQLite version | 3.37.2 PDAL version | 2.3.0 PostgreSQL client version | 14.11 (Ubuntu 14.11-0ubuntu0.22.04.1) SpatiaLite version | 5.0.1 QWT version | 6.1.4 QScintilla2 version | 2.11.6 OS version | Ubuntu 22.04.4 LTS   |   |   |   Active Python plugins MetaSearch | 0.3.6 processing | 2.12.99 grassprovider | 2.12.99 db_manager | 0.1.20 QGIS version 3.36.1-Maidenhead QGIS code revision [3e589453264](https://github.com/qgis/QGIS/commit/3e589453264) Qt version 5.15.3 Python version 3.10.12 GDAL/OGR version 3.4.1 PROJ version 8.2.1 EPSG Registry database version v10.041 (2021-12-03) GEOS version 3.10.2-CAPI-1.16.0 SQLite version 3.37.2 PDAL version 2.3.0 PostgreSQL client version 14.11 (Ubuntu 14.11-0ubuntu0.22.04.1) SpatiaLite version 5.0.1 QWT version 6.1.4 QScintilla2 version 2.11.6 OS version Ubuntu 22.04.4 LTS Active Python plugins MetaSearch 0.3.6 processing 2.12.99 grassprovider 2.12.99 db_manager 0.1.20 ### Supported QGIS version - [X] I'm running a supported QGIS version according to [the roadmap](https://www.qgis.org/en/site/getinvolved/development/roadmap.html#release-schedule). ### New profile - [X] I tried with a new [QGIS profile](https://docs.qgis.org/latest/en/docs/user_manual/introduction/qgis_configuration.html#working-with-user-profiles) ### Additional context _No response_
agiudiceandrea commented 2 months ago

@MathiasGroebe, thanks for reporting. It seems to me the issue occurs using both QGIS 3.36.2 and QGIS 3.34.6, while it didn't occur using QGIS 3.28, QGIS 3.30 and QGIS 3.32. Hi @nirvn, it seems to me the issue occurs since QGIS 3.34.1 while it didn't occur using QGIS 3.34.0: may it be due to changes introduced in Master with https://github.com/qgis/QGIS/pull/55061 and backported to 3.34.1 with https://github.com/qgis/QGIS/pull/55081?