replace camera action bar icon with scan qr button

Daniel Gultsch created

Change summary

art/qrcode-scan.svg                                          | 45 ++++++
art/render.rb                                                |  1 
src/main/res/drawable-hdpi/ic_qr_code_scan_white_24dp.png    |  0 
src/main/res/drawable-mdpi/ic_qr_code_scan_white_24dp.png    |  0 
src/main/res/drawable-xhdpi/ic_qr_code_scan_white_24dp.png   |  0 
src/main/res/drawable-xxhdpi/ic_qr_code_scan_white_24dp.png  |  0 
src/main/res/drawable-xxxhdpi/ic_qr_code_scan_white_24dp.png |  0 
src/main/res/values/themes.xml                               |  4 
8 files changed, 48 insertions(+), 2 deletions(-)

Detailed changes

art/qrcode-scan.svg 🔗

@@ -0,0 +1,48 @@
+<?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"
+   version="1.1"
+   width="24"
+   height="24"
+   viewBox="0 0 24.00 24.00"
+   enable-background="new 0 0 24.00 24.00"
+   xml:space="preserve"
+   id="svg4"
+   sodipodi:docname="qrcode-scan.svg"
+   inkscape:version="0.92.2 5c3e80d, 2017-08-06"><metadata
+     id="metadata10"><rdf:RDF><cc:Work
+         rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
+     id="defs8" /><sodipodi:namedview
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1"
+     objecttolerance="10"
+     gridtolerance="10"
+     guidetolerance="10"
+     inkscape:pageopacity="0"
+     inkscape:pageshadow="2"
+     inkscape:window-width="636"
+     inkscape:window-height="1156"
+     id="namedview6"
+     showgrid="false"
+     inkscape:zoom="9.8333333"
+     inkscape:cx="0.50847458"
+     inkscape:cy="12"
+     inkscape:window-x="3200"
+     inkscape:window-y="20"
+     inkscape:window-maximized="0"
+     inkscape:current-layer="svg4" /><path
+     fill="#000000"
+     fill-opacity="1"
+     stroke-width="0.2"
+     stroke-linejoin="miter"

art/render.rb 🔗

@@ -57,6 +57,7 @@ images = {
 	'ic_notifications_paused_white80.svg' => ['ic_notifications_paused_white80', 24],
 	'ic_notifications_white80.svg' => ['ic_notifications_white80', 24],
 	'ic_verified_fingerprint.svg' => ['ic_verified_fingerprint', 36],
+    'qrcode-scan.svg' => ['ic_qr_code_scan_white_24dp', 24],
 	'message_bubble_received.svg' => ['message_bubble_received.9', 0],
 	'message_bubble_received_grey.svg' => ['message_bubble_received_grey.9', 0],
 	'message_bubble_received_dark.svg' => ['message_bubble_received_dark.9', 0],

src/main/res/values/themes.xml 🔗

@@ -72,7 +72,7 @@
         <item type="reference" name="icon_settings">@drawable/ic_settings_black_24dp</item>
         <item type="reference" name="icon_import_export">@drawable/ic_import_export_white_24dp</item>
         <item type="reference" name="icon_share">@drawable/ic_share_white_24dp</item>
-        <item type="reference" name="icon_scan_qr_code">@drawable/ic_camera_alt_white_24dp</item>
+        <item type="reference" name="icon_scan_qr_code">@drawable/ic_qr_code_scan_white_24dp</item>
 
         <item type="reference" name="icon_notifications">@drawable/ic_notifications_black_24dp</item>
         <item type="reference" name="icon_notifications_off">@drawable/ic_notifications_off_black_24dp</item>
@@ -152,7 +152,7 @@
         <item type="reference" name="icon_settings">@drawable/ic_settings_white_24dp</item>
         <item type="reference" name="icon_import_export">@drawable/ic_import_export_white_24dp</item>
         <item type="reference" name="icon_share">@drawable/ic_share_white_24dp</item>
-        <item type="reference" name="icon_scan_qr_code">@drawable/ic_camera_alt_white_24dp</item>
+        <item type="reference" name="icon_scan_qr_code">@drawable/ic_qr_code_scan_white_24dp</item>
 
         <item type="reference" name="icon_notifications">@drawable/ic_notifications_white_24dp</item>
         <item type="reference" name="icon_notifications_off">@drawable/ic_notifications_off_white_24dp</item>