11 Commits

Author SHA1 Message Date
Alexander Bruy
e3148219fe clean up SVG files from unnecessary data 2016-12-14 09:20:16 +02:00
Nyall Dawson
9d2fe8f943 Port more svgs to parameters, remove default colors 2016-03-08 10:47:21 +11:00
Nyall Dawson
8cac36433d [FEATURE] Add support for transparency in SVG color params
...and update all bundled SVGs to suit

Non-bundled SVGs must add:

fill-opacity="param(fill-opacity)"
and
stroke-opacity="param(outline-opacity)"

to enable transparency support
2015-12-08 22:45:51 +11:00
Nyall Dawson
06c2190e3d Remove default outline-width param from included SVGs if
default value is non 0

using the monstrosity:
zerowidth='!0'; grep -R -rl -P "\"param\(outline-width\) (?${zerowidth})(.*?)\"" | xargs sed -i -b 's/\(param(outline-width)\)[^"]*"/\1\"/g'

(fix #10908)
2015-10-12 07:49:41 +11:00
Nyall Dawson
be6faef0fc Remove default outline param from included SVG files if default is #000
using:
grep -R -rl \"param\(outline\)[[:space:]]*#000\" | xargs sed -i -b 's/\(param(outline)\)\s*#000"/\1\"/g'

(refs #10908)
2015-10-12 07:49:41 +11:00
Nyall Dawson
66e6f399c4 Remove default fill param from included SVG files if default is #FFF
using:
grep -R -rl \"param\(fill\)[[:space:]]*#FFF\" | xargs sed -i -b 's/\(param(fill)\)\s*#FFF"/\1\"/g'

(refs #10908)
2015-10-12 07:49:41 +11:00
Nyall Dawson
a784d6bc3d If svg files with params do not have a default value set, then don't
reset the fill/border color and border width when changing svg
marker/svg fill SVG files

This change makes the behaviour consistent between the svg marker
symbol and the other marker symbols. Additionally, svg files
which have customisable colors and NO default values set will
be shaded in gray fill/black outline in the svg selector widget,
to follow the same behaviour as the other marker symbol selectors.

Note that this change has NO EFFECT unless the svg files are
modified to remove the default param value, so there will be no
change for users' custom symbols. A follow up commit will need
to remove the default param values from the preinstalled SVG
files though. If you want to test in the meantime, I've modified
just the first two symbols in the accomodation group to make
this change for testing.

(refs #10908)
2015-10-11 23:00:01 +11:00
olivierdalang
f9386d9786 SVG : forgot some 2013-04-29 20:31:42 +00:00
olivierdalang
c15768bf0a SVG : add parameters 2013-04-29 19:53:05 +00:00
olivierdalang
d3a988ba91 SVG : remove backgrounds, harmonize coulours, harmonize sizes, and add some symbols 2013-04-29 19:53:03 +00:00
timlinux
81dd9405d8 Added SJJB icons - see http://www.sjjb.co.uk/mapicons/introduction
git-svn-id: http://svn.osgeo.org/qgis/trunk@14131 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-08-23 14:40:16 +00:00