~c-lobrano/ubuntu-themes/bug-1712996

« back to all changes in this revision

Viewing changes to ubuntu-mono-dark/status/24/battery-080.svg

  • Committer: Bileto Bot
  • Author(s): Daniel van Vugt
  • Date: 2017-07-03 12:10:40 UTC
  • mfrom: (551.1.5 fix-1693155)
  • Revision ID: ci-train-bot@canonical.com-20170703121040-wvvjdh6pbc7x18k1
Fixed the ubuntu-mono-dark battery icons to avoid distortion in
Gnome Shell (LP: #1693155), and also to generally stop lying about the
sizes we advertise :)

The problem was our battery icons had always been odd dimensions
and we had just built Unity7 to deal with it. Now we're using Gnome
Shell, the battery icons finally need to be conventional squares...

             Before  After
 16/battery*  32x16  16x16
 22/battery*  26x22  22x22
 24/battery*  32x24  24x24

At very low DPI (e.g. a 1366x768 laptop and scale 1.0), Gnome Shell will
choose the icons that are height 16 and unconditionally scale them into a
square (hence bug 1693155). But at higher scales it tends to choose the
height 24 icons.

ALL the battery icons have retained their original visible height. And the
24x24 icons have retained their original shape completely. Only the 16 and
22's have become shorter to fit into a square. So this means at low DPI
(e.g. 1366x768) Gnome Shell will show a stubbier (16x16) battery similar
to Adwaita. However higher DPI machines at scales >= 2 will get the
full-length battery icons same as in Unity7.

The icons also retain their original appearance in Unity7 and greeter panels. (LP: #1693155)

Approved by: Matthew Paul Thomas

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
 
<!-- Created with Inkscape (http://www.inkscape.org/) -->
3
 
 
4
2
<svg
5
3
   xmlns:dc="http://purl.org/dc/elements/1.1/"
6
4
   xmlns:cc="http://creativecommons.org/ns#"
7
5
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
6
   xmlns:svg="http://www.w3.org/2000/svg"
9
7
   xmlns="http://www.w3.org/2000/svg"
10
 
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
 
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
 
   version="1.1"
13
 
   width="32"
 
8
   id="svg3014"
14
9
   height="24"
15
 
   id="svg3014"
16
 
   inkscape:version="0.48.0 r9654"
17
 
   sodipodi:docname="battery-080.svg">
18
 
  <sodipodi:namedview
19
 
     pagecolor="#ffffff"
20
 
     bordercolor="#666666"
21
 
     borderopacity="1"
22
 
     objecttolerance="10"
23
 
     gridtolerance="10"
24
 
     guidetolerance="10"
25
 
     inkscape:pageopacity="0"
26
 
     inkscape:pageshadow="2"
27
 
     inkscape:window-width="1280"
28
 
     inkscape:window-height="753"
29
 
     id="namedview10"
30
 
     showgrid="false"
31
 
     inkscape:zoom="13.227273"
32
 
     inkscape:cx="16"
33
 
     inkscape:cy="11.793814"
34
 
     inkscape:window-x="0"
35
 
     inkscape:window-y="24"
36
 
     inkscape:window-maximized="1"
37
 
     inkscape:current-layer="svg3014" />
 
10
   width="24"
 
11
   version="1.1">
38
12
  <defs
39
13
     id="defs3016" />
40
14
  <metadata
50
24
    </rdf:RDF>
51
25
  </metadata>
52
26
  <path
53
 
     d="M 7,7 C 5.892,7 5,7.892 5,9 l 0,8 c 0,1.108 0.892,2 2,2 l 18,0 c 1.108,0 2,-0.892 2,-2 l 0,-1 0.384328,0 C 28.492328,16 29,15.108 29,14 l 0,-2 c 0,-1.108 -0.425582,-2 -1.533582,-2 L 27,10 27,9 C 27,7.892 26.108,7 25,7 z m 0,1 18,0 c 0.554,0 1,0.446 1,1 l 0,8 c 0,0.554 -0.446,1 -1,1 L 7,18 C 6.446,18 6,17.554 6,17 L 6,9 C 6,8.446 6.446,8 7,8 z m 20,3 c 0.597415,0 1,0.051 1,1 l 0,2 c 0,0.9914 -0.406448,1 -1,1 z"
 
27
     style="display:inline;overflow:visible;visibility:visible;opacity:0.3;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;enable-background:accumulate"
54
28
     id="rect2401-5"
55
 
     style="opacity:0.3;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
56
 
     inkscape:connector-curvature="0" />
 
29
     d="M 2,7 C 0.892,7 0,7.892 0,9 l 0,8 c 0,1.108 0.892,2 2,2 l 18,0 c 1.108,0 2,-0.892 2,-2 l 0,-1 0.384328,0 C 23.492328,16 24,15.108 24,14 l 0,-2 c 0,-1.108 -0.425582,-2 -1.533582,-2 L 22,10 22,9 C 22,7.892 21.108,7 20,7 Z m 0,1 18,0 c 0.554,0 1,0.446 1,1 l 0,8 c 0,0.554 -0.446,1 -1,1 L 2,18 C 1.446,18 1,17.554 1,17 L 1,9 C 1,8.446 1.446,8 2,8 Z m 20,3 c 0.597415,0 1,0.051 1,1 l 0,2 c 0,0.9914 -0.406448,1 -1,1 z" />
57
30
  <rect
58
 
     width="8"
59
 
     height="14"
60
 
     rx="0.5"
61
 
     ry="0.5"
 
31
     style="display:inline;overflow:visible;visibility:visible;opacity:0.3;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.69999993;marker:none;enable-background:accumulate"
 
32
     id="rect3190-4"
 
33
     transform="matrix(0,1,-1,0,0,0)"
 
34
     y="-16"
62
35
     x="9"
63
 
     y="-21"
64
 
     transform="matrix(0,1,-1,0,0,0)"
65
 
     id="rect3190-4"
66
 
     style="opacity:0.3;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.69999993;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
 
36
     ry="0.5"
 
37
     rx="0.5"
 
38
     height="14"
 
39
     width="8" />
67
40
  <path
68
 
     d="M 7,6 C 5.892,6 5,6.892 5,8 l 0,8 c 0,1.108 0.892,2 2,2 l 18,0 c 1.108,0 2,-0.892 2,-2 l 0,-1 0.384328,0 C 28.492328,15 29,14.108 29,13 l 0,-2 C 29,9.892 28.574418,9 27.466418,9 L 27,9 27,8 C 27,6.892 26.108,6 25,6 z m 0,1 18,0 c 0.554,0 1,0.446 1,1 l 0,8 c 0,0.554 -0.446,1 -1,1 L 7,17 C 6.446,17 6,16.554 6,16 L 6,8 C 6,7.446 6.446,7 7,7 z m 20,3 c 0.597415,0 1,0.051 1,1 l 0,2 c 0,0.9914 -0.406448,1 -1,1 z"
 
41
     style="display:inline;overflow:visible;visibility:visible;fill:#dfdbd2;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;enable-background:accumulate"
69
42
     id="rect2401"
70
 
     style="fill:#dfdbd2;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
71
 
     inkscape:connector-curvature="0" />
 
43
     d="M 2,6 C 0.892,6 0,6.892 0,8 l 0,8 c 0,1.108 0.892,2 2,2 l 18,0 c 1.108,0 2,-0.892 2,-2 l 0,-1 0.384328,0 C 23.492328,15 24,14.108 24,13 l 0,-2 C 24,9.892 23.574418,9 22.466418,9 L 22,9 22,8 C 22,6.892 21.108,6 20,6 Z m 0,1 18,0 c 0.554,0 1,0.446 1,1 l 0,8 c 0,0.554 -0.446,1 -1,1 L 2,17 C 1.446,17 1,16.554 1,16 L 1,8 C 1,7.446 1.446,7 2,7 Z m 20,3 c 0.597415,0 1,0.051 1,1 l 0,2 c 0,0.9914 -0.406448,1 -1,1 z" />
72
44
  <rect
73
 
     width="19.5"
 
45
     style="display:inline;overflow:visible;visibility:visible;opacity:0.3;fill:none;stroke:#dfdbd2;stroke-width:0.49999994;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
 
46
     id="rect3192"
 
47
     y="7.25"
 
48
     x="1.25"
 
49
     ry="0.75"
 
50
     rx="0.75"
74
51
     height="9.500001"
75
 
     rx="0.75"
76
 
     ry="0.75"
77
 
     x="6.25"
78
 
     y="7.25"
79
 
     id="rect3192"
80
 
     style="opacity:0.3;fill:none;stroke:#dfdbd2;stroke-width:0.49999994;stroke-linecap:round;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" />
 
52
     width="19.5" />
81
53
  <rect
82
 
     width="8"
83
 
     height="14"
84
 
     rx="0.5"
85
 
     ry="0.5"
 
54
     style="display:inline;overflow:visible;visibility:visible;fill:#dfdbd2;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.69999993;marker:none;enable-background:accumulate"
 
55
     id="rect3190"
 
56
     transform="matrix(0,1,-1,0,0,0)"
 
57
     y="-16"
86
58
     x="8"
87
 
     y="-21"
88
 
     transform="matrix(0,1,-1,0,0,0)"
89
 
     id="rect3190"
90
 
     style="fill:#dfdbd2;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.69999993;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
 
59
     ry="0.5"
 
60
     rx="0.5"
 
61
     height="14"
 
62
     width="8" />
91
63
</svg>