[gnome-mines] Replaced text label minecounts to SVG counts for better scaling
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mines] Replaced text label minecounts to SVG counts for better scaling
- Date: Mon, 28 Apr 2014 19:56:06 +0000 (UTC)
commit 060d1fe46ccf2c1983739cb420b0c7d71216cf1a
Author: Robert Roth <robert roth off gmail com>
Date: Thu Apr 24 23:13:39 2014 +0300
Replaced text label minecounts to SVG counts for better scaling
data/1mine.svg | 80 +++++++++++++++++++++++++++++++++++++++++++++++
data/2mines.svg | 80 +++++++++++++++++++++++++++++++++++++++++++++++
data/3mines.svg | 80 +++++++++++++++++++++++++++++++++++++++++++++++
data/4mines.svg | 80 +++++++++++++++++++++++++++++++++++++++++++++++
data/5mines.svg | 80 +++++++++++++++++++++++++++++++++++++++++++++++
data/6mines.svg | 80 +++++++++++++++++++++++++++++++++++++++++++++++
data/7mines.svg | 80 +++++++++++++++++++++++++++++++++++++++++++++++
data/8mines.svg | 80 +++++++++++++++++++++++++++++++++++++++++++++++
data/Makefile.am | 3 +-
data/gnome-mines.css.in | 35 ++++++++++++++++++++-
src/minefield-view.vala | 8 +----
11 files changed, 677 insertions(+), 9 deletions(-)
---
diff --git a/data/1mine.svg b/data/1mine.svg
new file mode 100644
index 0000000..6bba912
--- /dev/null
+++ b/data/1mine.svg
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ id="svg3767"
+ version="1.1"
+ inkscape:version="0.48.4 r9939"
+ sodipodi:docname="New document 3">
+ <defs
+ id="defs3769" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="5.6"
+ inkscape:cx="33.68578"
+ inkscape:cy="31.76782"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ inkscape:window-width="1120"
+ inkscape:window-height="647"
+ inkscape:window-x="0"
+ inkscape:window-y="66"
+ inkscape:window-maximized="0" />
+ <metadata
+ id="metadata3772">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.36218)">
+ <text
+ xml:space="preserve"
+
style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Cantarell;-inkscape-font-specification:Cantarell"
+ x="28.284271"
+ y="32.685272"
+ id="text4299"
+ sodipodi:linespacing="125%"
+ transform="translate(0,988.36218)"><tspan
+ sodipodi:role="line"
+ id="tspan4301"
+ x="28.284271"
+ y="32.685272" /></text>
+ <text
+ xml:space="preserve"
+
style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#2e3436;fill-opacity:1;stroke:none;font-family:Cantarell;-inkscape-font-specification:Cantarell"
+ x="8.7441406"
+ y="1046.6063"
+ id="text4303"
+ sodipodi:linespacing="125%"><tspan
+ sodipodi:role="line"
+ id="tspan4305"
+ x="8.7441406"
+ y="1046.6063"
+
style="font-size:72px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#2e3436;font-family:Monospace;-inkscape-font-specification:Monospace
Bold">1</tspan></text>
+ </g>
+</svg>
diff --git a/data/2mines.svg b/data/2mines.svg
new file mode 100644
index 0000000..f9ac25f
--- /dev/null
+++ b/data/2mines.svg
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ id="svg3767"
+ version="1.1"
+ inkscape:version="0.48.4 r9939"
+ sodipodi:docname="2mines.svg">
+ <defs
+ id="defs3769" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="5.6"
+ inkscape:cx="33.68578"
+ inkscape:cy="31.76782"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ inkscape:window-width="1120"
+ inkscape:window-height="647"
+ inkscape:window-x="0"
+ inkscape:window-y="66"
+ inkscape:window-maximized="0" />
+ <metadata
+ id="metadata3772">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.36218)">
+ <text
+ xml:space="preserve"
+
style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Cantarell;-inkscape-font-specification:Cantarell"
+ x="28.284271"
+ y="32.685272"
+ id="text4299"
+ sodipodi:linespacing="125%"
+ transform="translate(0,988.36218)"><tspan
+ sodipodi:role="line"
+ id="tspan4301"
+ x="28.284271"
+ y="32.685272" /></text>
+ <text
+ xml:space="preserve"
+
style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#2e3436;fill-opacity:1;stroke:none;font-family:Cantarell;-inkscape-font-specification:Cantarell"
+ x="11.292969"
+ y="1047.0809"
+ id="text4303"
+ sodipodi:linespacing="125%"><tspan
+ sodipodi:role="line"
+ id="tspan4305"
+ x="11.292969"
+ y="1047.0809"
+
style="font-size:72px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#2e3436;font-family:Monospace;-inkscape-font-specification:Monospace
Bold">2</tspan></text>
+ </g>
+</svg>
diff --git a/data/3mines.svg b/data/3mines.svg
new file mode 100644
index 0000000..57d249b
--- /dev/null
+++ b/data/3mines.svg
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ id="svg3767"
+ version="1.1"
+ inkscape:version="0.48.4 r9939"
+ sodipodi:docname="3mines.svg">
+ <defs
+ id="defs3769" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="5.6"
+ inkscape:cx="33.68578"
+ inkscape:cy="31.76782"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ inkscape:window-width="1120"
+ inkscape:window-height="647"
+ inkscape:window-x="0"
+ inkscape:window-y="66"
+ inkscape:window-maximized="0" />
+ <metadata
+ id="metadata3772">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.36218)">
+ <text
+ xml:space="preserve"
+
style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Cantarell;-inkscape-font-specification:Cantarell"
+ x="28.284271"
+ y="32.685272"
+ id="text4299"
+ sodipodi:linespacing="125%"
+ transform="translate(0,988.36218)"><tspan
+ sodipodi:role="line"
+ id="tspan4301"
+ x="28.284271"
+ y="32.685272" /></text>
+ <text
+ xml:space="preserve"
+
style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#2e3436;fill-opacity:1;stroke:none;font-family:Cantarell;-inkscape-font-specification:Cantarell"
+ x="10.466797"
+ y="1046.5712"
+ id="text4303"
+ sodipodi:linespacing="125%"><tspan
+ sodipodi:role="line"
+ id="tspan4305"
+ x="10.466797"
+ y="1046.5712"
+
style="font-size:72px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#2e3436;font-family:Monospace;-inkscape-font-specification:Monospace
Bold">3</tspan></text>
+ </g>
+</svg>
diff --git a/data/4mines.svg b/data/4mines.svg
new file mode 100644
index 0000000..12906ee
--- /dev/null
+++ b/data/4mines.svg
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ id="svg3767"
+ version="1.1"
+ inkscape:version="0.48.4 r9939"
+ sodipodi:docname="4mines.svg">
+ <defs
+ id="defs3769" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="5.6"
+ inkscape:cx="33.68578"
+ inkscape:cy="32.791013"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ inkscape:window-width="1120"
+ inkscape:window-height="647"
+ inkscape:window-x="0"
+ inkscape:window-y="66"
+ inkscape:window-maximized="0" />
+ <metadata
+ id="metadata3772">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.36218)">
+ <text
+ xml:space="preserve"
+
style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Cantarell;-inkscape-font-specification:Cantarell"
+ x="28.284271"
+ y="32.685272"
+ id="text4299"
+ sodipodi:linespacing="125%"
+ transform="translate(0,988.36218)"><tspan
+ sodipodi:role="line"
+ id="tspan4301"
+ x="28.284271"
+ y="32.685272" /></text>
+ <text
+ xml:space="preserve"
+
style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#2e3436;fill-opacity:1;stroke:none;font-family:Cantarell;-inkscape-font-specification:Cantarell"
+ x="10.150391"
+ y="1046.6063"
+ id="text4303"
+ sodipodi:linespacing="125%"><tspan
+ sodipodi:role="line"
+ id="tspan4305"
+ x="10.150391"
+ y="1046.6063"
+
style="font-size:72px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#2e3436;font-family:Monospace;-inkscape-font-specification:Monospace
Bold">4</tspan></text>
+ </g>
+</svg>
diff --git a/data/5mines.svg b/data/5mines.svg
new file mode 100644
index 0000000..7cb4c23
--- /dev/null
+++ b/data/5mines.svg
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ id="svg3767"
+ version="1.1"
+ inkscape:version="0.48.4 r9939"
+ sodipodi:docname="5mines.svg">
+ <defs
+ id="defs3769" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="5.6"
+ inkscape:cx="33.68578"
+ inkscape:cy="32.791013"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ inkscape:window-width="1120"
+ inkscape:window-height="647"
+ inkscape:window-x="0"
+ inkscape:window-y="66"
+ inkscape:window-maximized="0" />
+ <metadata
+ id="metadata3772">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.36218)">
+ <text
+ xml:space="preserve"
+
style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Cantarell;-inkscape-font-specification:Cantarell"
+ x="28.284271"
+ y="32.685272"
+ id="text4299"
+ sodipodi:linespacing="125%"
+ transform="translate(0,988.36218)"><tspan
+ sodipodi:role="line"
+ id="tspan4301"
+ x="28.284271"
+ y="32.685272" /></text>
+ <text
+ xml:space="preserve"
+
style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#2e3436;fill-opacity:1;stroke:none;font-family:Cantarell;-inkscape-font-specification:Cantarell"
+ x="10.255859"
+ y="1046.0966"
+ id="text4303"
+ sodipodi:linespacing="125%"><tspan
+ sodipodi:role="line"
+ id="tspan4305"
+ x="10.255859"
+ y="1046.0966"
+
style="font-size:72px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#2e3436;font-family:Monospace;-inkscape-font-specification:Monospace
Bold">5</tspan></text>
+ </g>
+</svg>
diff --git a/data/6mines.svg b/data/6mines.svg
new file mode 100644
index 0000000..960c218
--- /dev/null
+++ b/data/6mines.svg
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ id="svg3767"
+ version="1.1"
+ inkscape:version="0.48.4 r9939"
+ sodipodi:docname="6mines.svg">
+ <defs
+ id="defs3769" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="5.6"
+ inkscape:cx="33.68578"
+ inkscape:cy="33.265622"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ inkscape:window-width="1120"
+ inkscape:window-height="647"
+ inkscape:window-x="0"
+ inkscape:window-y="66"
+ inkscape:window-maximized="0" />
+ <metadata
+ id="metadata3772">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.36218)">
+ <text
+ xml:space="preserve"
+
style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Cantarell;-inkscape-font-specification:Cantarell"
+ x="28.284271"
+ y="32.685272"
+ id="text4299"
+ sodipodi:linespacing="125%"
+ transform="translate(0,988.36218)"><tspan
+ sodipodi:role="line"
+ id="tspan4301"
+ x="28.284271"
+ y="32.685272" /></text>
+ <text
+ xml:space="preserve"
+
style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#2e3436;fill-opacity:1;stroke:none;font-family:Cantarell;-inkscape-font-specification:Cantarell"
+ x="9.9746094"
+ y="1046.5009"
+ id="text4303"
+ sodipodi:linespacing="125%"><tspan
+ sodipodi:role="line"
+ id="tspan4305"
+ x="9.9746094"
+ y="1046.5009"
+
style="font-size:72px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#2e3436;font-family:Monospace;-inkscape-font-specification:Monospace
Bold">6</tspan></text>
+ </g>
+</svg>
diff --git a/data/7mines.svg b/data/7mines.svg
new file mode 100644
index 0000000..7e117a5
--- /dev/null
+++ b/data/7mines.svg
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ id="svg3767"
+ version="1.1"
+ inkscape:version="0.48.4 r9939"
+ sodipodi:docname="7mines.svg">
+ <defs
+ id="defs3769" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="5.6"
+ inkscape:cx="33.68578"
+ inkscape:cy="33.265622"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ inkscape:window-width="1120"
+ inkscape:window-height="647"
+ inkscape:window-x="0"
+ inkscape:window-y="66"
+ inkscape:window-maximized="0" />
+ <metadata
+ id="metadata3772">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.36218)">
+ <text
+ xml:space="preserve"
+
style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Cantarell;-inkscape-font-specification:Cantarell"
+ x="28.284271"
+ y="32.685272"
+ id="text4299"
+ sodipodi:linespacing="125%"
+ transform="translate(0,988.36218)"><tspan
+ sodipodi:role="line"
+ id="tspan4301"
+ x="28.284271"
+ y="32.685272" /></text>
+ <text
+ xml:space="preserve"
+
style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#2e3436;fill-opacity:1;stroke:none;font-family:Cantarell;-inkscape-font-specification:Cantarell"
+ x="10.660156"
+ y="1046.6063"
+ id="text4303"
+ sodipodi:linespacing="125%"><tspan
+ sodipodi:role="line"
+ id="tspan4305"
+ x="10.660156"
+ y="1046.6063"
+
style="font-size:72px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#2e3436;font-family:Monospace;-inkscape-font-specification:Monospace
Bold">7</tspan></text>
+ </g>
+</svg>
diff --git a/data/8mines.svg b/data/8mines.svg
new file mode 100644
index 0000000..a3894cc
--- /dev/null
+++ b/data/8mines.svg
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="64"
+ height="64"
+ id="svg3767"
+ version="1.1"
+ inkscape:version="0.48.4 r9939"
+ sodipodi:docname="8mines.svg">
+ <defs
+ id="defs3769" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="5.6"
+ inkscape:cx="33.68578"
+ inkscape:cy="33.265622"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ inkscape:window-width="1120"
+ inkscape:window-height="647"
+ inkscape:window-x="0"
+ inkscape:window-y="66"
+ inkscape:window-maximized="0" />
+ <metadata
+ id="metadata3772">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-988.36218)">
+ <text
+ xml:space="preserve"
+
style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Cantarell;-inkscape-font-specification:Cantarell"
+ x="28.284271"
+ y="32.685272"
+ id="text4299"
+ sodipodi:linespacing="125%"
+ transform="translate(0,988.36218)"><tspan
+ sodipodi:role="line"
+ id="tspan4301"
+ x="28.284271"
+ y="32.685272" /></text>
+ <text
+ xml:space="preserve"
+
style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#2e3436;fill-opacity:1;stroke:none;font-family:Cantarell;-inkscape-font-specification:Cantarell"
+ x="10.326172"
+ y="1046.5712"
+ id="text4303"
+ sodipodi:linespacing="125%"><tspan
+ sodipodi:role="line"
+ id="tspan4305"
+ x="10.326172"
+ y="1046.5712"
+
style="font-size:72px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#2e3436;font-family:Monospace;-inkscape-font-specification:Monospace
Bold">8</tspan></text>
+ </g>
+</svg>
diff --git a/data/Makefile.am b/data/Makefile.am
index a676475..4e2ffe7 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -6,7 +6,8 @@ gsettings_SCHEMAS = org.gnome.mines.gschema.xml
man_MANS = gnome-mines.6
pixmapdir = $(pkgdatadir)
-pixmap_DATA = flag.svg flag-question.svg mine.svg bang.svg warning.svg flag-fallen.svg
+pixmap_DATA = flag.svg flag-question.svg mine.svg bang.svg warning.svg flag-fallen.svg \
+ 1mine.svg 2mines.svg 3mines.svg 4mines.svg 5mines.svg 6mines.svg 7mines.svg 8mines.svg
gnome-mines.css: gnome-mines.css.in Makefile
$(AM_V_GEN) sed -e "s|\ pkgdatadir\@|$(pkgdatadir)|" $< > $@
diff --git a/data/gnome-mines.css.in b/data/gnome-mines.css.in
index 78d4534..629e207 100644
--- a/data/gnome-mines.css.in
+++ b/data/gnome-mines.css.in
@@ -35,7 +35,8 @@ Changes are applied instantly and globally, for the whole application.
.count {
color:black;
- font-size:16px;
+ font-size:0px;
+ background-image:none;
background-color:#cadbed;
transition-duration:0.4s;
}
@@ -66,6 +67,38 @@ Changes are applied instantly and globally, for the whole application.
background-color:#729fcf;
}
+.mines1 {
+ background-image:url('@pkgdatadir@/1mine.svg');
+}
+
+.mines2 {
+ background-image:url('@pkgdatadir@/2mines.svg');
+}
+
+.mines3 {
+ background-image:url('@pkgdatadir@/3mines.svg');
+}
+
+.mines4 {
+ background-image:url('@pkgdatadir@/4mines.svg');
+}
+
+.mines5 {
+ background-image:url('@pkgdatadir@/5mines.svg');
+}
+
+.mines6 {
+ background-image:url('@pkgdatadir@/6mines.svg');
+}
+
+.mines7 {
+ background-image:url('@pkgdatadir@/7mines.svg');
+}
+
+.mines8 {
+ background-image:url('@pkgdatadir@/8mines.svg');
+}
+
.cursor {
background-color:#e9b96e;
}
diff --git a/src/minefield-view.vala b/src/minefield-view.vala
index 4b4ecf1..989a3ba 100644
--- a/src/minefield-view.vala
+++ b/src/minefield-view.vala
@@ -426,16 +426,10 @@ public class MinefieldView : Gtk.Grid
}
var n = minefield.get_n_adjacent_mines (x, y);
- if (n != 0)
- {
- mines[x, y].label = n.to_string ();
- } else {
- mines[x, y].label = "";
- }
mines[x,y].remove_class ("maybe");
mines[x,y].remove_class ("flag");
mines[x,y].add_class ("count");
- mines[x,y].add_class ("mines" + n.to_string ());
+ mines[x,y].add_class ("mines%u".printf (n));
}
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]