Browse Source

Use android-y shutter button

Martijn Braam 4 years ago
parent
commit
b19b581837
3 changed files with 47 additions and 2 deletions
  1. 5 2
      camera.glade
  2. 1 0
      org.postmarketos.Megapixels.gresource.xml
  3. 41 0
      shutter-button.svg

+ 5 - 2
camera.glade

@@ -55,10 +55,13 @@
                     <property name="receives-default">True</property>
                     <property name="always-show-image">True</property>
                     <child>
-                      <placeholder/>
+                      <object class="GtkImage">
+                        <property name="visible">True</property>
+                        <property name="can-focus">False</property>
+                        <property name="resource">/org/postmarketos/Megapixels/shutter-button.svg</property>
+                      </object>
                     </child>
                     <style>
-                      <class name="suggested-action"/>
                       <class name="circular"/>
                     </style>
                   </object>

+ 1 - 0
org.postmarketos.Megapixels.gresource.xml

@@ -4,5 +4,6 @@
     <file>camera.glade</file>
     <file>camera.css</file>
     <file>switch-camera.svg</file>
+    <file>shutter-button.svg</file>
   </gresource>
 </gresources>

+ 41 - 0
shutter-button.svg

@@ -0,0 +1,41 @@
+<?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"
+   width="64"
+   height="64"
+   viewBox="0 0 16.933333 16.933334"
+   version="1.1"
+   id="svg8">
+  <defs
+     id="defs2" />
+  <metadata
+     id="metadata5">
+    <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">
+    <path
+       id="path833"
+       style="fill:#bebebe;stroke-width:0.999999;fill-opacity:1"
+       d="M 31.810547 0.07421875 A 31.916231 31.916231 0 0 0 0.14648438 31.990234 A 31.916231 31.916231 0 0 0 32.0625 63.90625 A 31.916231 31.916231 0 0 0 63.978516 31.990234 A 31.916231 31.916231 0 0 0 32.0625 0.07421875 A 31.916231 31.916231 0 0 0 31.810547 0.07421875 z M 31.919922 3.578125 A 28.472441 28.472441 0 0 1 60.392578 32.050781 A 28.472441 28.472441 0 0 1 31.919922 60.523438 A 28.472441 28.472441 0 0 1 3.4472656 32.050781 A 28.472441 28.472441 0 0 1 31.919922 3.578125 z "
+       transform="scale(0.26458333)" />
+    <circle
+       style="fill:#bebebe;stroke-width:0.254438;fill-opacity:1"
+       id="path840"
+       cx="8.3893003"
+       cy="8.432106"
+       r="7.0744858" />
+  </g>
+</svg>