[gnome-themes-standard] Theme insensitive+active state for radio and check menuitems



commit 167f276e1e8211e438352118b46205e8d55ac6fd
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Sep 19 10:45:12 2011 -0400

    Theme insensitive+active state for radio and check menuitems
    
    https://bugzilla.gnome.org/show_bug.cgi?id=659263

 themes/Adwaita/gtk-3.0/assets/Makefile.am          |    2 +
 .../checkbox-menuitem-checked-insensitive.svg      |   63 ++++++++++++++++++
 .../assets/radio-menuitem-checked-insensitive.svg  |   67 ++++++++++++++++++++
 themes/Adwaita/gtk-3.0/gtk-widgets.css             |    8 +++
 4 files changed, 140 insertions(+), 0 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/assets/Makefile.am b/themes/Adwaita/gtk-3.0/assets/Makefile.am
index 833c39c..2436d05 100644
--- a/themes/Adwaita/gtk-3.0/assets/Makefile.am
+++ b/themes/Adwaita/gtk-3.0/assets/Makefile.am
@@ -19,6 +19,7 @@ assets_DATA = 		\
 	checkbox-mixed-insensitive.svg \
 	checkbox-mixed-insensitive-dark.svg \
 	checkbox-menuitem-checked.svg \
+	checkbox-menuitem-checked-insensitive.svg \
 	checkbox-menuitem-checked-selected.svg \
 	combobox-entry-border-active.svg \
 	entry-border-focused.svg \
@@ -46,6 +47,7 @@ assets_DATA = 		\
 	radio-mixed-insensitive.svg \
 	radio-mixed-insensitive-dark.svg \
 	radio-menuitem-checked.svg \
+	radio-menuitem-checked-insensitive.svg \
 	radio-menuitem-checked-selected.svg \
 	scale-slider-horizontal.svg \
 	scale-slider-horizontal-dark.svg \
diff --git a/themes/Adwaita/gtk-3.0/assets/checkbox-menuitem-checked-insensitive.svg b/themes/Adwaita/gtk-3.0/assets/checkbox-menuitem-checked-insensitive.svg
new file mode 100644
index 0000000..87d88b9
--- /dev/null
+++ b/themes/Adwaita/gtk-3.0/assets/checkbox-menuitem-checked-insensitive.svg
@@ -0,0 +1,63 @@
+<?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="12"
+   height="12"
+   id="svg26761"
+   version="1.1"
+   inkscape:version="0.48.1 r9760"
+   sodipodi:docname="checkbox-menuitem-checked.svg">
+  <defs
+     id="defs26763" />
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="22.197802"
+     inkscape:cx="-0.15396047"
+     inkscape:cy="8"
+     inkscape:current-layer="layer1"
+     showgrid="true"
+     inkscape:grid-bbox="true"
+     inkscape:document-units="px"
+     inkscape:window-width="1280"
+     inkscape:window-height="966"
+     inkscape:window-x="-10"
+     inkscape:window-y="18"
+     inkscape:window-maximized="1" />
+  <metadata
+     id="metadata26766">
+    <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,-4)">
+    <path
+       sodipodi:nodetypes="ccc"
+       d="M 1,11.785715 3.9948567,15 11,7.5000002"
+       style="fill:none;stroke:#a3a89c;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;display:inline;enable-background:new;opacity:0.5"
+       id="path6301-5"
+       inkscape:connector-curvature="0" />
+  </g>
+</svg>
diff --git a/themes/Adwaita/gtk-3.0/assets/radio-menuitem-checked-insensitive.svg b/themes/Adwaita/gtk-3.0/assets/radio-menuitem-checked-insensitive.svg
new file mode 100644
index 0000000..f97696f
--- /dev/null
+++ b/themes/Adwaita/gtk-3.0/assets/radio-menuitem-checked-insensitive.svg
@@ -0,0 +1,67 @@
+<?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="12"
+   height="12"
+   id="svg27352"
+   version="1.1"
+   inkscape:version="0.48.1 r9760"
+   sodipodi:docname="radio-menuitem-checked.svg">
+  <defs
+     id="defs27354" />
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="22.197802"
+     inkscape:cx="-8.3079209"
+     inkscape:cy="8"
+     inkscape:current-layer="layer1"
+     showgrid="true"
+     inkscape:grid-bbox="true"
+     inkscape:document-units="px"
+     inkscape:window-width="1280"
+     inkscape:window-height="966"
+     inkscape:window-x="-10"
+     inkscape:window-y="18"
+     inkscape:window-maximized="1" />
+  <metadata
+     id="metadata27357">
+    <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,-4)">
+    <path
+       sodipodi:type="arc"
+       style="color:#000000;fill:#a3a89c;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.27423298000000007;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;opacity:0.5"
+       id="path5784-4"
+       sodipodi:cx="660.96808"
+       sodipodi:cy="255.0668"
+       sodipodi:rx="4.5078058"
+       sodipodi:ry="7.2937827"
+       d="m 665.47588,255.0668 c 0,4.02825 -2.01821,7.29379 -4.5078,7.29379 -2.48959,0 -4.50781,-3.26554 -4.50781,-7.29379 0,-4.02824 2.01822,-7.29378 4.50781,-7.29378 2.48959,0 4.5078,3.26554 4.5078,7.29378 z"
+       transform="matrix(0.77643096,0,0,0.47986074,-508.19608,-110.89654)" />
+  </g>
+</svg>
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index 0c4fff2..a5b8c88 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -821,6 +821,10 @@ GtkTreeMenu .menuitem * {
     background-image: url("assets/checkbox-menuitem-checked-selected.svg");
 }
 
+.menuitem.check:active:insensitive {
+    background-image: url("assets/checkbox-menuitem-checked-insensitive.svg");
+}
+
 .menuitem.radio:active {
     background-image: url("assets/radio-menuitem-checked.svg");
 }
@@ -829,6 +833,10 @@ GtkTreeMenu .menuitem * {
     background-image: url("assets/radio-menuitem-checked-selected.svg");
 }
 
+.menuitem.radio:active:insensitive {
+    background-image: url("assets/radio-menuitem-checked-insensitive.svg");
+}
+
 /***************
  * Menu Button *
  ***************/



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