1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-27 21:24:47 +01:00

Make the patterns work with Qt5

This commit is contained in:
Martin Tůma 2024-11-18 10:59:37 +01:00
parent 67c1c1fd27
commit 8d3784e142
7 changed files with 18 additions and 55 deletions

View File

@ -49,10 +49,10 @@
<area fill="#e4efcf"/>
</rule>
<rule e="way" closed="yes" k="landuse" v="orchard" zoom-min="10">
<area src=":/patterns/orchard.svg" symbol-width="28"/>
<area src=":/patterns/orchard.svg" symbol-width="7"/>
</rule>
<rule e="way" closed="yes" k="landuse" v="vineyard" zoom-min="10">
<area src=":/patterns/vineyard.svg" symbol-width="28" symbol-height="32"/>
<area src=":/patterns/vineyard.svg" symbol-width="7" symbol-height="8"/>
</rule>
<!-- Hillshading -->
@ -90,7 +90,7 @@
</rule>
</rule>
<rule e="way" closed="yes" k="natural" v="marsh|wetland|mud" zoom-min="13">
<area src=":/patterns/wetland.svg" symbol-height="32"/>
<area src=":/patterns/wetland.svg" symbol-height="4"/>
</rule>
<rule e="way" k="waterway" v="river" zoom-min="8">
@ -152,7 +152,7 @@
<!-- City areas -->
<rule e="way" closed="yes" k="landuse" v="cemetery">
<area src=":/patterns/cemetery.svg" symbol-width="30" symbol-height="28"/>
<area src=":/patterns/cemetery.svg" symbol-width="6" symbol-height="7"/>
<rule e="way" k="*" v="*" zoom-min="15">
<caption fill="#000000" font-size="10" font-style="italic" k="name" stroke="#FFFFFF" stroke-width="1"/>
</rule>
@ -184,12 +184,12 @@
<!-- Area overlays -->
<rule e="way" k="landuse" v="military" zoom-min="10">
<area src=":/patterns/military-area.svg" symbol-height="32"/>
<area src=":/patterns/military-area.svg" symbol-height="4"/>
<caption fill="#ff4040" font-size="10" font-style="italic" text-transform="uppercase" k="name" stroke="#ffffff" stroke-width="1"/>
</rule>
<rule e="way" k="boundary" v="protected_area|national_park" zoom-min="10" zoom-max="14">
<rule e="way" k="protect_class" v="pr_2">
<area src=":/patterns/nature-reserve.svg" symbol-height="32"/>
<area src=":/patterns/nature-reserve.svg" symbol-height="4"/>
<rule e="way" k="*" v="*" zoom-max="12">
<caption fill="#9ac269" font-size="10" font-style="italic" text-transform="uppercase" k="name" stroke="#ffffff" stroke-width="1"/>
</rule>

View File

@ -1,11 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="30" height="28" version="1.1" viewBox="0 0 30 28">
<defs>
<pattern id="crosses" patternUnits="userSpaceOnUse" width="6" height="7">
<path d="M 1.5,0.5 L 1.5,3.5" stroke="#444444" stroke-width="1"/>
<path d="M 0.5,1.5 L 2.5,1.5" stroke="#444444" stroke-width="1"/>
</pattern>
</defs>
<rect x="0" y="0" width="100%" height="100%" fill="url(#crosses)"/>
<svg width="6" height="7" version="1.1" viewBox="0 0 6 7">
<path d="M 1.5,0.5 L 1.5,3.5 M 0.5,1.5 L 2.5,1.5" stroke="#444444" stroke-width="1"/>
</svg>

Before

Width:  |  Height:  |  Size: 423 B

After

Width:  |  Height:  |  Size: 192 B

View File

@ -1,10 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="32" height="32" version="1.1" viewBox="0 0 32 32">
<defs>
<pattern id="diagonalHatch" patternUnits="userSpaceOnUse" width="4" height="4">
<path d="M-1,1 l2,-2 M0,4 l4,-4 M3,5 l2,-2" stroke="red" stroke-width="1"/>
</pattern>
</defs>
<rect x="0" y="0" width="100%" height="100%" fill="url(#diagonalHatch)"/>
<svg width="4" height="4" version="1.1" viewBox="0 0 4 4">
<path d="M-1,1 l2,-2 M0,4 l4,-4 M3,5 l2,-2" stroke="red" stroke-width="1"/>
</svg>

Before

Width:  |  Height:  |  Size: 376 B

After

Width:  |  Height:  |  Size: 182 B

View File

@ -1,10 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="32" height="32" version="1.1" viewBox="0 0 32 32">
<defs>
<pattern id="diagonalHatch" patternUnits="userSpaceOnUse" width="4" height="4">
<path d="M-1,1 l2,-2 M0,4 l4,-4 M3,5 l2,-2" stroke="#9ac269" stroke-width="1"/>
</pattern>
</defs>
<rect x="0" y="0" width="100%" height="100%" fill="url(#diagonalHatch)"/>
<svg width="4" height="4" version="1.1" viewBox="0 0 4 4">
<path d="M-1,1 l2,-2 M0,4 l4,-4 M3,5 l2,-2" stroke="#9ac269" stroke-width="1"/>
</svg>

Before

Width:  |  Height:  |  Size: 380 B

After

Width:  |  Height:  |  Size: 186 B

View File

@ -1,11 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="28" height="28" version="1.1" viewBox="0 0 28 28">
<defs>
<pattern id="circles" patternUnits="userSpaceOnUse" width="7" height="7">
<circle cx="3" cy="3" r="1.5" stroke="#c9d69c" stroke-width="1" fill="none"/>
</pattern>
</defs>
<svg width="7" height="7" version="1.1" viewBox="0 0 7 7">
<rect x="0" y="0" width="100%" height="100%" fill="#dee9bc"/>
<rect x="0" y="0" width="100%" height="100%" fill="url(#circles)"/>
<circle cx="3" cy="3" r="1.5" stroke="#c9d69c" stroke-width="1" fill="none"/>
</svg>

Before

Width:  |  Height:  |  Size: 429 B

After

Width:  |  Height:  |  Size: 247 B

View File

@ -1,11 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="28" height="32" version="1.1" viewBox="0 0 28 32">
<defs>
<pattern id="circles" patternUnits="userSpaceOnUse" width="7" height="8">
<path d="M 3,2 L 3,6" stroke="#c9d69c" stroke-width="1"/>
</pattern>
</defs>
<svg width="7" height="8" version="1.1" viewBox="0 0 7 8">
<rect x="0" y="0" width="100%" height="100%" fill="#dee9bc"/>
<rect x="0" y="0" width="100%" height="100%" fill="url(#circles)"/>
<path d="M 3,2 L 3,6" stroke="#c9d69c" stroke-width="1"/>
</svg>

Before

Width:  |  Height:  |  Size: 409 B

After

Width:  |  Height:  |  Size: 227 B

View File

@ -1,10 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="32" height="32" version="1.1" viewBox="0 0 32 32">
<defs>
<pattern id="diagonalHatch" patternUnits="userSpaceOnUse" width="4" height="4">
<path d="M-1,1 l2,-2 M0,4 l4,-4 M3,5 l2,-2" stroke="#9fc4e1" stroke-width="1"/>
</pattern>
</defs>
<rect x="0" y="0" width="100%" height="100%" fill="url(#diagonalHatch)"/>
<svg width="4" height="4" version="1.1" viewBox="0 0 4 4">
<path d="M-1,1 l2,-2 M0,4 l4,-4 M3,5 l2,-2" stroke="#9fc4e1" stroke-width="1"/>
</svg>

Before

Width:  |  Height:  |  Size: 380 B

After

Width:  |  Height:  |  Size: 186 B