[gnome-themes-standard] progressbar: fix progressbars for dark theme
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] progressbar: fix progressbars for dark theme
- Date: Sat, 11 Jun 2011 00:58:00 +0000 (UTC)
commit a4c7b4788cb5a142a81163a40835212ffe1c2334
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Jun 10 20:54:13 2011 -0400
progressbar: fix progressbars for dark theme
themes/Adwaita/gtk-3.0/assets/Makefile.am | 1 +
.../gtk-3.0/assets/progressbar-border-dark.svg | 97 ++++++++++++++++++++
themes/Adwaita/gtk-3.0/gtk-dark.css | 4 +-
themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css | 18 ++--
4 files changed, 109 insertions(+), 11 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/assets/Makefile.am b/themes/Adwaita/gtk-3.0/assets/Makefile.am
index 27c5a01..798008e 100644
--- a/themes/Adwaita/gtk-3.0/assets/Makefile.am
+++ b/themes/Adwaita/gtk-3.0/assets/Makefile.am
@@ -27,6 +27,7 @@ assets_DATA = \
primary-toolbar-raised-button-border.svg \
primary-toolbar-raised-button-border-dark.svg \
progressbar-border.svg \
+ progressbar-border-dark.svg \
radio-selected.svg \
radio-selected-dark.svg \
radio-selected-insensitive.svg \
diff --git a/themes/Adwaita/gtk-3.0/assets/progressbar-border-dark.svg b/themes/Adwaita/gtk-3.0/assets/progressbar-border-dark.svg
new file mode 100644
index 0000000..9a7213f
--- /dev/null
+++ b/themes/Adwaita/gtk-3.0/assets/progressbar-border-dark.svg
@@ -0,0 +1,97 @@
+<?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="16px"
+ height="16px"
+ id="svg4031"
+ version="1.1"
+ inkscape:version="0.48.1 r9760"
+ sodipodi:docname="progressbar-border.svg">
+ <defs
+ id="defs4033">
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient6844-9-1"
+ id="linearGradient9039"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(0.45247148,0,0,0.84615346,71.4334,513.19537)"
+ x1="204.98633"
+ y1="175.93756"
+ x2="204.98633"
+ y2="196.36371" />
+ <linearGradient
+ id="linearGradient6844-9-1"
+ inkscape:collect="always">
+ <stop
+ id="stop6846-7-5"
+ offset="0"
+ style="stop-color:#76b0ec;stop-opacity:1" />
+ <stop
+ id="stop6848-7-9"
+ offset="1"
+ style="stop-color:#1f72c6;stop-opacity:1" />
+ </linearGradient>
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="26.170022"
+ inkscape:cx="0.49668622"
+ inkscape:cy="10.16505"
+ inkscape:current-layer="layer1"
+ showgrid="true"
+ inkscape:grid-bbox="true"
+ inkscape:document-units="px"
+ inkscape:window-width="1280"
+ inkscape:window-height="741"
+ inkscape:window-x="0"
+ inkscape:window-y="26"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata4036">
+ <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">
+ <rect
+ ry="3.0069616"
+ rx="3.0069616"
+ y="0.49999994"
+ x="0.5"
+ height="15"
+ width="15"
+ id="rect6002"
+ style="fill:none;stroke:#e06a00;stroke-width:0.99999994000000003;stroke-linecap:butt;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;display:inline;enable-background:new" />
+ <rect
+ transform="matrix(0,1,-1,0,0,0)"
+ style="fill:#77757a;fill-opacity:0.3137255;stroke:none;display:inline;enable-background:new"
+ id="rect6074"
+ width="1"
+ height="10"
+ x="1"
+ y="-13" />
+ </g>
+</svg>
diff --git a/themes/Adwaita/gtk-3.0/gtk-dark.css b/themes/Adwaita/gtk-3.0/gtk-dark.css
index 2cb5f95..ee86872 100644
--- a/themes/Adwaita/gtk-3.0/gtk-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-dark.css
@@ -44,8 +44,8 @@
@define-color highlighted_border @button_border;
@define-color internal_element_color #77757a;
- define-color progressbar_background_a alpha (@theme_fg_color, 0.70);
- define-color progressbar_background_b alpha (@theme_fg_color, 0.45);
+ define-color progressbar_background_a shade(#e06a00, 1.30);
+ define-color progressbar_background_b shade(#e06a00, 1.10);
@define-color progressbar_border alpha (@theme_fg_color, 0.60);
@define-color progressbar_pattern #000000;
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css b/themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css
index a3f3469..e84eea7 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets-assets-dark.css
@@ -165,6 +165,15 @@ GtkScale.scale-has-marks-below.slider.vertical:insensitive {
border-image: url("assets/primary-toolbar-raised-button-border-dark.svg") 4 / 4 stretch;
}
+.progressbar,
+.entry.progressbar,
+.progressbar row,
+.progressbar row:hover,
+.progressbar row:selected,
+.progressbar row:selected:focused {
+ border-image: url("assets/progressbar-border-dark.svg") 3 / 3 stretch;
+}
+
/* TODO: need dark versions */
GtkSwitch.slider {
border-image: url("assets/switch-slider-border.svg") 2 / 2 stretch;
@@ -173,12 +182,3 @@ GtkSwitch.slider {
GtkSwitch.slider:active {
border-image: url("assets/switch-slider-active-border.svg") 2 / 2 stretch;
}
-
-.progressbar,
-.entry.progressbar,
-.progressbar row,
-.progressbar row:hover,
-.progressbar row:selected,
-.progressbar row:selected:focused {
- border-image: url("assets/progressbar-border.svg") 2 / 2 stretch;
-}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]