Use android-y shutter button

This commit is contained in:
Martijn Braam 2020-09-24 13:58:31 +02:00
parent 1c16171ff5
commit b19b581837
3 changed files with 47 additions and 2 deletions

View File

@ -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>

View File

@ -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
shutter-button.svg Normal file
View File

@ -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>

After

Width:  |  Height:  |  Size: 1.5 KiB