[gnome-control-center/wip/hadess/power-profiles: 40/41] power: Add power profile icons




commit eeb531d02ddefa6a43d986e03085313bcd3540ae
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Aug 11 17:59:57 2020 +0200

    power: Add power profile icons

 panels/power/icons/scalable/balanced-symbolic.svg  | 97 ++++++++++++++++++++++
 .../power/icons/scalable/performance-symbolic.svg  | 84 +++++++++++++++++++
 .../power/icons/scalable/power-saver-symbolic.svg  | 84 +++++++++++++++++++
 panels/power/meson.build                           |  7 +-
 panels/power/power.gresource.xml                   |  3 +
 5 files changed, 274 insertions(+), 1 deletion(-)
---
diff --git a/panels/power/icons/scalable/balanced-symbolic.svg 
b/panels/power/icons/scalable/balanced-symbolic.svg
new file mode 100644
index 000000000..64b154024
--- /dev/null
+++ b/panels/power/icons/scalable/balanced-symbolic.svg
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<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";
+   inkscape:version="1.0 (4035a4fb49, 2020-05-01)"
+   sodipodi:docname="power-saver-symbolic.svg"
+   id="svg12"
+   version="1.1"
+   height="16"
+   width="16.011">
+  <metadata
+     id="metadata18">
+    <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>
+  <defs
+     id="defs16" />
+  <sodipodi:namedview
+     inkscape:current-layer="svg12"
+     inkscape:window-maximized="1"
+     inkscape:window-y="0"
+     inkscape:window-x="0"
+     inkscape:cy="8"
+     inkscape:cx="8.0054998"
+     inkscape:zoom="49.625"
+     showgrid="false"
+     id="namedview14"
+     inkscape:window-height="1016"
+     inkscape:window-width="1920"
+     inkscape:pageshadow="2"
+     inkscape:pageopacity="0"
+     guidetolerance="10"
+     gridtolerance="10"
+     objecttolerance="10"
+     borderopacity="1"
+     bordercolor="#666666"
+     pagecolor="#ffffff" />
+  <path
+     d="m 8.017,1.001 c -2.049,0 -4.098,0.78 -5.656,2.338 -3.116,3.116 -3.116,8.197 0,11.313 a 1,1 0 1 0 
1.414,-1.414 5.984,5.984 0 0 1 0,-8.485 5.984,5.984 0 0 1 8.485,0 5.984,5.984 0 0 1 0,8.485 1,1 0 1 0 
1.414,1.414 c 3.116,-3.116 3.116,-8.197 0,-11.313 A 7.975,7.975 0 0 0 8.017,1.001 Z"
+     
style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;text-transform:none;text-orientation:mixed;white-space:normal;shape-padding:0;display:inline;isolation:auto;mix-blend-mode:normal;solid-color:#000000;solid-opacity:1;fill:#2e3436;marker:none"
+     color="#000000"
+     font-weight="400"
+     font-family="sans-serif"
+     overflow="visible"
+     id="path2" />
+  <path
+     d="m 10.017,8.995 a 2,2 0 0 1 -2,2 2,2 0 0 1 -2,-2 2,2 0 0 1 2,-2 2,2 0 0 1 2,2 z"
+     id="path4"
+     style="display:inline;fill:#2e3436" />
+  <g
+     id="g28">
+    <path
+       id="path6"
+       fill-rule="evenodd"
+       overflow="visible"
+       font-family="sans-serif"
+       font-weight="400"
+       color="#000000"
+       
style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;text-transform:none;text-orientation:mixed;white-space:normal;shape-padding:0;display:inline;isolation:auto;mix-blend-mode:normal;solid-color:#000000;solid-opacity:1;fill:#2e3436"
+       d="m 4.01,4.238 c -2.6733333,-2.8253333 -1.3366667,-1.4126667 0,0 z M 7.517,1.995 v 2 h 1 v -2 z"
+       sodipodi:nodetypes="ccccccc" />
+    <path
+       id="path8"
+       fill-rule="evenodd"
+       overflow="visible"
+       font-family="sans-serif"
+       font-weight="400"
+       color="#000000"
+       
style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;text-transform:none;text-orientation:mixed;white-space:normal;shape-padding:0;display:inline;isolation:auto;mix-blend-mode:normal;solid-color:#000000;solid-opacity:1;fill:#2e3436"
+       d="M 3.422,3.693 2.715,4.4 4.129,5.814 4.836,5.107 Z M 1.017,8.495 v 1 h 2 v -1 z m 12,0 v 1 h 2 v -1 
z M 12.613,3.693 11.2,5.107 11.907,5.814 13.32,4.4 Z m -8.484,8.484 -1.414,1.414 0.707,0.707 1.414,-1.414 z m 
7.777,0 -0.707,0.707 1.414,1.414 0.707,-0.707 z" />
+  </g>
+  <path
+     inkscape:transform-center-y="-3.5483949"
+     inkscape:transform-center-x="-0.10999809"
+     inkscape:label="dial"
+     sodipodi:nodetypes="cccccc"
+     id="path24"
+     fill-rule="evenodd"
+     overflow="visible"
+     font-family="sans-serif"
+     font-weight="400"
+     color="#000000"
+     
style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;text-transform:none;text-orientation:mixed;white-space:normal;shape-padding:0;display:inline;isolation:auto;mix-blend-mode:normal;solid-color:#000000;solid-opacity:1;fill:#2e3436"
+     d="M 8.6425553,2.8522186 C 8.171895,2.3678638 7.350991,2.7036378 7.3546865,3.3789937 L 
7.3079304,7.6213768 C 7.2964092,8.6239879 8.8003261,8.64127 8.8118475,7.6386591 L 8.8586034,3.3962757 C 
8.8632565,3.1931452 8.7852941,2.9968189 8.6425553,2.8522186 Z" />
+</svg>
diff --git a/panels/power/icons/scalable/performance-symbolic.svg 
b/panels/power/icons/scalable/performance-symbolic.svg
new file mode 100644
index 000000000..017cb07b4
--- /dev/null
+++ b/panels/power/icons/scalable/performance-symbolic.svg
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<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="16.011"
+   height="16"
+   version="1.1"
+   id="svg12"
+   sodipodi:docname="performance-symbolic.svg"
+   inkscape:version="1.0 (4035a4fb49, 2020-05-01)">
+  <metadata
+     id="metadata18">
+    <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 />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <defs
+     id="defs16" />
+  <sodipodi:namedview
+     inkscape:document-rotation="0"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1"
+     objecttolerance="10"
+     gridtolerance="10"
+     guidetolerance="10"
+     inkscape:pageopacity="0"
+     inkscape:pageshadow="2"
+     inkscape:window-width="1920"
+     inkscape:window-height="1016"
+     id="namedview14"
+     showgrid="false"
+     inkscape:zoom="49.625"
+     inkscape:cx="8.0054998"
+     inkscape:cy="8"
+     inkscape:window-x="0"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="svg12" />
+  <path
+     id="path2"
+     class="error"
+     overflow="visible"
+     font-family="sans-serif"
+     font-weight="400"
+     color="#000000"
+     
style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;text-transform:none;text-orientation:mixed;white-space:normal;shape-padding:0;display:inline;isolation:auto;mix-blend-mode:normal;solid-color:#000000;solid-opacity:1;fill:#d40000;marker:none"
+     d="m 8.017,1.001 c -2.049,0 -4.098,0.78 -5.656,2.338 -3.116,3.116 -3.116,8.197 0,11.313 a 1,1 0 1 0 
1.414,-1.414 5.984,5.984 0 0 1 0,-8.485 5.984,5.984 0 0 1 8.485,0 5.984,5.984 0 0 1 0,8.485 1,1 0 1 0 
1.414,1.414 c 3.116,-3.116 3.116,-8.197 0,-11.313 A 7.975,7.975 0 0 0 8.017,1.001 Z" />
+  <path
+     style="display:inline;fill:#d40000"
+     id="path4"
+     class="error"
+     d="m 10.017,8.995 a 2,2 0 0 1 -2,2 2,2 0 0 1 -2,-2 2,2 0 0 1 2,-2 2,2 0 0 1 2,2 z" />
+  <path
+     id="path8"
+     class="error"
+     
style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;text-transform:none;text-orientation:mixed;white-space:normal;shape-padding:0;display:inline;isolation:auto;mix-blend-mode:normal;solid-color:#000000;solid-opacity:1;fill:#d40000"
+     d="M 3.422,3.693 2.715,4.4 4.129,5.814 4.836,5.107 Z M 1.017,8.495 v 1 h 2 v -1 z m 12,0 v 1 h 2 v -1 z 
M 12.613,3.693 11.2,5.107 11.907,5.814 13.32,4.4 Z m -8.484,8.484 -1.414,1.414 0.707,0.707 1.414,-1.414 z m 
7.777,0 -0.707,0.707 1.414,1.414 0.707,-0.707 z M 4.01,4.238 c -2.6733333,-2.8253333 -1.3366667,-1.4126667 
0,0 z M 7.517,1.995 v 2 h 1 v -2 z" />
+  <path
+     d="m 12.162272,13.669161 c 0.674698,-0.03005 0.969034,-0.86671 0.461768,-1.312581 L 9.4840269,9.503456 
C 8.7422543,8.828819 7.7302984,9.941478 8.4720708,10.616115 l 3.1400132,2.853124 c 0.148744,0.138416 
0.347282,0.210559 0.550188,0.199922 z"
+     
style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;text-transform:none;text-orientation:mixed;white-space:normal;shape-padding:0;display:inline;isolation:auto;mix-blend-mode:normal;solid-color:#000000;solid-opacity:1;fill:#d40000"
+     color="#000000"
+     font-weight="400"
+     font-family="sans-serif"
+     overflow="visible"
+     fill-rule="evenodd"
+     id="path24"
+     class="error"
+     sodipodi:nodetypes="cccccc"
+     inkscape:label="dial"
+     inkscape:transform-center-x="-2.573188"
+     inkscape:transform-center-y="2.4310124" />
+</svg>
diff --git a/panels/power/icons/scalable/power-saver-symbolic.svg 
b/panels/power/icons/scalable/power-saver-symbolic.svg
new file mode 100644
index 000000000..046ce97cd
--- /dev/null
+++ b/panels/power/icons/scalable/power-saver-symbolic.svg
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<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";
+   inkscape:version="1.0 (4035a4fb49, 2020-05-01)"
+   sodipodi:docname="power-saver-symbolic.svg"
+   id="svg12"
+   version="1.1"
+   height="16"
+   width="16.011">
+  <metadata
+     id="metadata18">
+    <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 />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <defs
+     id="defs16" />
+  <sodipodi:namedview
+     inkscape:current-layer="svg12"
+     inkscape:window-maximized="1"
+     inkscape:window-y="0"
+     inkscape:window-x="0"
+     inkscape:cy="8"
+     inkscape:cx="8.0054998"
+     inkscape:zoom="49.625"
+     showgrid="false"
+     id="namedview14"
+     inkscape:window-height="1016"
+     inkscape:window-width="1920"
+     inkscape:pageshadow="2"
+     inkscape:pageopacity="0"
+     guidetolerance="10"
+     gridtolerance="10"
+     objecttolerance="10"
+     borderopacity="1"
+     bordercolor="#666666"
+     pagecolor="#ffffff"
+     inkscape:document-rotation="0" />
+  <path
+     d="m 8.017,1.001 c -2.049,0 -4.098,0.78 -5.656,2.338 -3.116,3.116 -3.116,8.197 0,11.313 a 1,1 0 1 0 
1.414,-1.414 5.984,5.984 0 0 1 0,-8.485 5.984,5.984 0 0 1 8.485,0 5.984,5.984 0 0 1 0,8.485 1,1 0 1 0 
1.414,1.414 c 3.116,-3.116 3.116,-8.197 0,-11.313 A 7.975,7.975 0 0 0 8.017,1.001 Z"
+     
style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;text-transform:none;text-orientation:mixed;white-space:normal;shape-padding:0;display:inline;isolation:auto;mix-blend-mode:normal;solid-color:#000000;solid-opacity:1;fill:#008000;marker:none"
+     color="#000000"
+     font-weight="400"
+     font-family="sans-serif"
+     overflow="visible"
+     class="success"
+     id="path2" />
+  <path
+     d="m 10.017,8.995 a 2,2 0 0 1 -2,2 2,2 0 0 1 -2,-2 2,2 0 0 1 2,-2 2,2 0 0 1 2,2 z"
+     class="success"
+     id="path4"
+     style="display:inline;fill:#008000" />
+  <path
+     d="M 3.422,3.693 2.715,4.4 4.129,5.814 4.836,5.107 Z M 1.017,8.495 v 1 h 2 v -1 z m 12,0 v 1 h 2 v -1 z 
M 12.613,3.693 11.2,5.107 11.907,5.814 13.32,4.4 Z m -8.484,8.484 -1.414,1.414 0.707,0.707 1.414,-1.414 z m 
7.777,0 -0.707,0.707 1.414,1.414 0.707,-0.707 z M 4.01,4.238 c -2.6733333,-2.8253333 -1.3366667,-1.4126667 
0,0 z M 7.517,1.995 v 2 h 1 v -2 z"
+     
style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;text-transform:none;text-orientation:mixed;white-space:normal;shape-padding:0;display:inline;isolation:auto;mix-blend-mode:normal;solid-color:#000000;solid-opacity:1;fill:#008000"
+     class="success"
+     id="path8" />
+  <path
+     inkscape:transform-center-y="2.4574243"
+     inkscape:transform-center-x="2.5478361"
+     inkscape:label="dial"
+     sodipodi:nodetypes="cccccc"
+     class="success"
+     id="path24"
+     fill-rule="evenodd"
+     overflow="visible"
+     font-family="sans-serif"
+     font-weight="400"
+     color="#000000"
+     
style="line-height:normal;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;text-transform:none;text-orientation:mixed;white-space:normal;shape-padding:0;display:inline;isolation:auto;mix-blend-mode:normal;solid-color:#000000;solid-opacity:1;fill:#008000"
+     d="m 3.1662442,13.02169 c -0.00122,0.675366 0.8209095,1.008128 1.2897906,0.522052 L 7.451497,10.539211 
C 8.1597581,9.8294731 7.0951512,8.767081 6.3868901,9.4768187 L 3.3914278,12.48135 c -0.1451549,0.142175 
-0.2264137,0.33716 -0.2251836,0.54034 z" />
+</svg>
diff --git a/panels/power/meson.build b/panels/power/meson.build
index 1700c91e8..306a4ad4a 100644
--- a/panels/power/meson.build
+++ b/panels/power/meson.build
@@ -26,7 +26,12 @@ sources += gnome.mkenums_simple(
   'cc-brightness-scale-types',
   sources: ['cc-brightness-scale.h'])
 
-resource_data = files('cc-power-panel.ui')
+resource_data = files(
+  'cc-power-panel.ui',
+  'icons/scalable/balanced-symbolic.svg',
+  'icons/scalable/performance-symbolic.svg',
+  'icons/scalable/power-saver-symbolic.svg',
+)
 
 sources += gnome.compile_resources(
   'cc-' + cappletname + '-resources',
diff --git a/panels/power/power.gresource.xml b/panels/power/power.gresource.xml
index f0bcb1a62..c49ecb4e4 100644
--- a/panels/power/power.gresource.xml
+++ b/panels/power/power.gresource.xml
@@ -2,6 +2,9 @@
 <gresources>
   <gresource prefix="/org/gnome/control-center/power">
     <file preprocess="xml-stripblanks">cc-power-panel.ui</file>
+    <file alias="power-saver-symbolic.svg">icons/scalable/power-saver-symbolic.svg</file>
+    <file alias="balanced-symbolic.svg">icons/scalable/balanced-symbolic.svg</file>
+    <file alias="performance-symbolic.svg">icons/scalable/performance-symbolic.svg</file>
     <file>battery-levels.css</file>
   </gresource>
 </gresources>


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