[gnome-themes-standard] documents: add an asset for the DnD icon counter



commit 59682a6dae7d77ea14fbc1702d78d0ee0126f063
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Mar 2 09:52:05 2012 -0500

    documents: add an asset for the DnD icon counter

 themes/Adwaita/gtk-3.0/assets/Makefile.am     |    1 +
 themes/Adwaita/gtk-3.0/assets/dnd-counter.svg |  183 +++++++++++++++++++++++++
 themes/Adwaita/gtk-3.0/gnome-applications.css |    8 +
 themes/Adwaita/gtk-3.0/gtk.gresource.xml      |    1 +
 4 files changed, 193 insertions(+), 0 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/assets/Makefile.am b/themes/Adwaita/gtk-3.0/assets/Makefile.am
index 94bb45f..5abe6b2 100644
--- a/themes/Adwaita/gtk-3.0/assets/Makefile.am
+++ b/themes/Adwaita/gtk-3.0/assets/Makefile.am
@@ -29,6 +29,7 @@ EXTRA_DIST = 		\
 	checkbox-unchecked-dark.png \
 	checkbox-unchecked-insensitive.png \
 	checkbox-unchecked-insensitive-dark.png \
+	dnd-counter.svg \
 	grid-selection-checked.svg \
 	grid-selection-unchecked.svg \
 	menuitem-checkbox-checked.png \
diff --git a/themes/Adwaita/gtk-3.0/assets/dnd-counter.svg b/themes/Adwaita/gtk-3.0/assets/dnd-counter.svg
new file mode 100644
index 0000000..d16ea2f
--- /dev/null
+++ b/themes/Adwaita/gtk-3.0/assets/dnd-counter.svg
@@ -0,0 +1,183 @@
+<?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:xlink="http://www.w3.org/1999/xlink";
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd";
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape";
+   width="72"
+   height="72"
+   id="svg4267"
+   version="1.1"
+   inkscape:version="0.48.2 r9819"
+   sodipodi:docname="dnd-emblem.svg">
+  <defs
+     id="defs4269">
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient22968-2-3-0"
+       id="radialGradient26234"
+       gradientUnits="userSpaceOnUse"
+       cx="797"
+       cy="165"
+       fx="797"
+       fy="165"
+       r="20.5" />
+    <linearGradient
+       id="linearGradient22968-2-3-0"
+       inkscape:collect="always">
+      <stop
+         id="stop22970-0-16-4"
+         offset="0"
+         style="stop-color:#729fcf;stop-opacity:1" />
+      <stop
+         id="stop22972-8-3-4"
+         offset="1"
+         style="stop-color:#3465a4;stop-opacity:1" />
+    </linearGradient>
+    <filter
+       color-interpolation-filters="sRGB"
+       height="1.24"
+       y="-0.12"
+       width="1.24"
+       x="-0.12"
+       id="filter27236-2"
+       inkscape:collect="always">
+      <feGaussianBlur
+         id="feGaussianBlur27238-6"
+         stdDeviation="1.9"
+         inkscape:collect="always" />
+    </filter>
+    <linearGradient
+       id="linearGradient22968-2-3-0-6">
+      <stop
+         id="stop22970-0-16-4-2"
+         offset="0"
+         style="stop-color:#729fcf;stop-opacity:1" />
+      <stop
+         id="stop22972-8-3-4-6"
+         offset="1"
+         style="stop-color:#3465a4;stop-opacity:1" />
+    </linearGradient>
+    <clipPath
+       id="clipPath27307-6"
+       clipPathUnits="userSpaceOnUse">
+      <path
+         transform="matrix(0.88410615,0,0,0.88410615,92.255124,19.051446)"
+         d="m 806,169.78125 a 9.96875,9.96875 0 1 1 -19.9375,0 9.96875,9.96875 0 1 1 19.9375,0 z"
+         sodipodi:ry="9.96875"
+         sodipodi:rx="9.96875"
+         sodipodi:cy="169.78125"
+         sodipodi:cx="796.03125"
+         id="path27309-78"
+         style="opacity:0.5;color:#000000;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:3.39325762;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+         sodipodi:type="arc" />
+    </clipPath>
+    <filter
+       color-interpolation-filters="sRGB"
+       id="filter27327-9"
+       inkscape:collect="always">
+      <feGaussianBlur
+         id="feGaussianBlur27329-7"
+         stdDeviation="0.598125"
+         inkscape:collect="always" />
+    </filter>
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient22968-2-3-0-6"
+       id="radialGradient5163"
+       gradientUnits="userSpaceOnUse"
+       cx="797"
+       cy="165"
+       fx="797"
+       fy="165"
+       r="20.5" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="8.01"
+     inkscape:cx="46.532863"
+     inkscape:cy="38.421319"
+     inkscape:current-layer="layer1"
+     showgrid="true"
+     inkscape:document-units="px"
+     inkscape:grid-bbox="true"
+     inkscape:window-width="1280"
+     inkscape:window-height="742"
+     inkscape:window-x="0"
+     inkscape:window-y="26"
+     inkscape:window-maximized="1" />
+  <metadata
+     id="metadata4272">
+    <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
+     id="layer1"
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     transform="translate(0,8)">
+    <g
+       style="display:inline;overflow:visible"
+       id="g24889"
+       transform="matrix(1.5158363,0,0,1.5158363,-3157.4222,-2504.9125)">
+      <g
+         transform="matrix(1.276138,0,0,1.276138,1051.3404,1164.4268)"
+         id="g24145-0"
+         style="display:inline">
+        <g
+           style="display:inline"
+           transform="matrix(0.68076616,0,0,0.68076616,284.42937,281.22745)"
+           id="g27242-9">
+          <path
+             sodipodi:type="inkscape:offset"
+             inkscape:radius="0"
+             inkscape:original="M 797 151 C 786.50659 151 778 159.50659 778 170 C 778 180.49341 786.50659 189 797 189 C 807.49341 189 816 180.49341 816 170 C 816 159.50659 807.49341 151 797 151 z "
+             xlink:href="#path27224-3"
+             style="opacity:0.5;color:#000000;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.47955203;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;filter:url(#filter27236-2);enable-background:accumulate"
+             id="path27228-0"
+             inkscape:href="#path27224-3"
+             d="m 797,151 c -10.49341,0 -19,8.50659 -19,19 0,10.49341 8.50659,19 19,19 10.49341,0 19,-8.50659 19,-19 0,-10.49341 -8.50659,-19 -19,-19 z"
+             transform="translate(0,3)" />
+          <path
+             sodipodi:type="arc"
+             style="color:#000000;fill:url(#radialGradient5163);fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:1.47955203;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+             id="path27224-3"
+             sodipodi:cx="797"
+             sodipodi:cy="170"
+             sodipodi:rx="19"
+             sodipodi:ry="19"
+             d="m 816,170 c 0,10.49341 -8.50659,19 -19,19 -10.49341,0 -19,-8.50659 -19,-19 0,-10.49341 8.50659,-19 19,-19 10.49341,0 19,8.50659 19,19 z" />
+        </g>
+        <path
+           clip-path="url(#clipPath27307-6)"
+           sodipodi:type="arc"
+           style="opacity:0.5;color:#000000;fill:none;stroke:#000000;stroke-width:0.77596396;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;filter:url(#filter27327-9);enable-background:accumulate"
+           id="path27301-28"
+           sodipodi:cx="796.03125"
+           sodipodi:cy="169.78125"
+           sodipodi:rx="9.96875"
+           sodipodi:ry="9.96875"
+           d="m 806,169.78125 c 0,5.50559 -4.46316,9.96875 -9.96875,9.96875 -5.50559,0 -9.96875,-4.46316 -9.96875,-9.96875 0,-5.50559 4.46316,-9.96875 9.96875,-9.96875 5.50559,0 9.96875,4.46316 9.96875,9.96875 z"
+           transform="matrix(1.2980358,0,0,1.2980358,-206.24585,177.33558)" />
+      </g>
+    </g>
+  </g>
+</svg>
diff --git a/themes/Adwaita/gtk-3.0/gnome-applications.css b/themes/Adwaita/gtk-3.0/gnome-applications.css
index 5e186d1..b827eb2 100644
--- a/themes/Adwaita/gtk-3.0/gnome-applications.css
+++ b/themes/Adwaita/gtk-3.0/gnome-applications.css
@@ -333,6 +333,14 @@ GtkIconView.documents-main-view.check:active {
     border-radius: 8px;
 }
 
+.documents-counter {
+    background-image: url('assets/dnd-counter.svg');
+    background-size: contain;
+    background-color: transparent;
+    color: @theme_base_color;
+    font: bold;
+}
+
 .documents-osd {
     background-image: none;
     background-color: transparent;
diff --git a/themes/Adwaita/gtk-3.0/gtk.gresource.xml b/themes/Adwaita/gtk-3.0/gtk.gresource.xml
index 52c5f3f..fdd9aee 100644
--- a/themes/Adwaita/gtk-3.0/gtk.gresource.xml
+++ b/themes/Adwaita/gtk-3.0/gtk.gresource.xml
@@ -31,6 +31,7 @@
     <file preprocess="to-pixdata">assets/checkbox-unchecked-insensitive-dark.png</file>
     <file preprocess="to-pixdata">assets/checkbox-unchecked-insensitive.png</file>
     <file preprocess="to-pixdata">assets/checkbox-unchecked.png</file>
+    <file preprocess="to-pixdata">assets/dnd-counter.svg</file>
     <file preprocess="to-pixdata">assets/grid-selection-checked.svg</file>
     <file preprocess="to-pixdata">assets/grid-selection-unchecked.svg</file>
     <file preprocess="to-pixdata">assets/menuitem-checkbox-checked-insensitive.png</file>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]