aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-03-20 20:25:30 +0100
committerChristian Schneppe <christian@pix-art.de>2018-03-20 20:25:30 +0100
commit149875654ca0f6e5f4cb51ccb564f637b11f9c9d (patch)
tree08a590415bf31a670d6ec9b5116a545cef863eb9
parent1eb3d7c971d9a8b8316f533eb454a2427bef455b (diff)
create dedicated button to enable undecided accounts
-rw-r--r--art/md_switch_thumb_disable.svg67
-rw-r--r--art/md_switch_thumb_off_normal.svg63
-rw-r--r--art/md_switch_thumb_off_pressed.svg66
-rw-r--r--art/md_switch_thumb_on_normal.svg61
-rw-r--r--art/md_switch_thumb_on_pressed.svg70
-rwxr-xr-xart/render.rb5
-rw-r--r--src/main/java/de/pixart/messenger/ui/OmemoActivity.java12
-rw-r--r--src/main/res/layout/activity_muc_details.xml2
-rw-r--r--src/main/res/layout/contact.xml2
-rw-r--r--src/main/res/layout/contact_key.xml19
-rw-r--r--src/main/res/values/attrs.xml3
-rw-r--r--src/main/res/values/dimens.xml3
-rw-r--r--src/main/res/values/themes.xml2
13 files changed, 30 insertions, 345 deletions
diff --git a/art/md_switch_thumb_disable.svg b/art/md_switch_thumb_disable.svg
deleted file mode 100644
index 6639218fa..000000000
--- a/art/md_switch_thumb_disable.svg
+++ /dev/null
@@ -1,67 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?><!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
- 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="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- sodipodi:docname="md_switch_thumb_disable_centered_square.svg" viewBox="0 0 120 120"
- height="120" width="120" inkscape:version="0.91 r13725" version="1.1" id="svg2">
- <metadata id="metadata8">
- <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="defs6">
- <linearGradient inkscape:collect="always" id="linearGradient4222">
- <stop style="stop-color:#000000;stop-opacity:1" offset="0" id="stop4224" />
- <stop style="stop-color:#ffffff;stop-opacity:1" offset="1" id="stop4226" />
- </linearGradient>
- <linearGradient id="linearGradient4179" osb:paint="gradient">
- <stop style="stop-color:#ffffff;stop-opacity:1;" offset="0" id="stop4181" />
- <stop style="stop-color:#ffffff;stop-opacity:0.25454545" offset="1" id="stop4183" />
- </linearGradient>
- <linearGradient inkscape:collect="always" xlink:href="#linearGradient4222"
- id="linearGradient4228" x1="159.38722" y1="19.802504" x2="212.27522" y2="19.802504"
- gradientUnits="userSpaceOnUse" gradientTransform="translate(-260.32215,163.27594)" />
- <filter inkscape:collect="always" style="color-interpolation-filters:sRGB" id="filter4230"
- x="-0.012" width="1.024" y="-0.012" height="1.024">
- <feGaussianBlur inkscape:collect="always" stdDeviation="0.25916904"
- id="feGaussianBlur4232" />
- </filter>
- <filter inkscape:collect="always" style="color-interpolation-filters:sRGB" id="filter4371"
- x="-0.23999999" width="1.48" y="-0.23999999" height="1.48">
- <feGaussianBlur inkscape:collect="always" stdDeviation="5.2888"
- id="feGaussianBlur4373" />
- </filter>
- </defs>
- <sodipodi:namedview inkscape:current-layer="layer2" inkscape:window-maximized="1"
- inkscape:window-y="0" inkscape:window-x="1400" inkscape:cy="61.379767"
- inkscape:cx="10.572032" inkscape:zoom="3.8530612" showgrid="false" id="namedview4"
- inkscape:window-height="1024" inkscape:window-width="1680" inkscape:pageshadow="2"
- inkscape:pageopacity="0" guidetolerance="10" gridtolerance="10" objecttolerance="10"
- borderopacity="1" bordercolor="#666666" pagecolor="#ffffff" />
- <g inkscape:groupmode="layer" id="layer1" inkscape:label="PNG" style="display:none"
- sodipodi:insensitive="true" transform="translate(0,-2.5)" />
- <g inkscape:groupmode="layer" id="layer2" inkscape:label="SVG" style="display:inline"
- transform="translate(0,-2.5)">
- <g id="g6404">
- <circle
- style="opacity:1;fill:#000404;fill-opacity:0.45531915;stroke:none;stroke-width:1.05419147;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter4371)"
- id="circle4234" cx="59.999996" cy="66.499878" r="26.444" />
- <g transform="translate(3.3103058e-6,0.33229253)" id="g4148">
- <circle
- style="opacity:1;fill:#bdbdbd;fill-opacity:1;stroke:#bdbdbd;stroke-width:1.05419147;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- id="path4218" cx="59.999996" cy="62.167587" r="25.916904" />
- <circle r="25.916904" cy="183.07845" cx="-74.490921" id="circle4220"
- style="opacity:0.3;fill:none;fill-opacity:1;stroke:url(#linearGradient4228);stroke-width:1.05419147;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter4230)"
- transform="matrix(0,-1,1,0,-123.07845,-12.323334)" />
- </g>
- </g>
- </g>
-</svg>
diff --git a/art/md_switch_thumb_off_normal.svg b/art/md_switch_thumb_off_normal.svg
deleted file mode 100644
index 9c86e37d3..000000000
--- a/art/md_switch_thumb_off_normal.svg
+++ /dev/null
@@ -1,63 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?><!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
- 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="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- sodipodi:docname="md_switch_thumb_off_normal_centered.svg" viewBox="0 0 120 120" height="120"
- width="120" inkscape:version="0.91 r13725" version="1.1" id="svg2">
- <metadata id="metadata8">
- <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="defs6">
- <linearGradient inkscape:collect="always" id="linearGradient4222">
- <stop style="stop-color:#000000;stop-opacity:1" offset="0" id="stop4224" />
- <stop style="stop-color:#ffffff;stop-opacity:1" offset="1" id="stop4226" />
- </linearGradient>
- <linearGradient id="linearGradient4179" osb:paint="gradient">
- <stop style="stop-color:#ffffff;stop-opacity:1;" offset="0" id="stop4181" />
- <stop style="stop-color:#ffffff;stop-opacity:0.25454545" offset="1" id="stop4183" />
- </linearGradient>
- <linearGradient inkscape:collect="always" xlink:href="#linearGradient4222"
- id="linearGradient4228" x1="159.38722" y1="19.802504" x2="212.27522" y2="19.802504"
- gradientUnits="userSpaceOnUse" gradientTransform="translate(-260.32215,163.27594)" />
- <filter inkscape:collect="always" style="color-interpolation-filters:sRGB" id="filter4230"
- x="-0.012" width="1.024" y="-0.012" height="1.024">
- <feGaussianBlur inkscape:collect="always" stdDeviation="0.25916904"
- id="feGaussianBlur4232" />
- </filter>
- <filter inkscape:collect="always" style="color-interpolation-filters:sRGB" id="filter4371"
- x="-0.23999999" width="1.48" y="-0.23999999" height="1.48">
- <feGaussianBlur inkscape:collect="always" stdDeviation="5.2888"
- id="feGaussianBlur4373" />
- </filter>
- </defs>
- <sodipodi:namedview inkscape:current-layer="layer2" inkscape:window-maximized="1"
- inkscape:window-y="0" inkscape:window-x="1400" inkscape:cy="61.379767"
- inkscape:cx="10.052965" inkscape:zoom="3.8530612" showgrid="false" id="namedview4"
- inkscape:window-height="1024" inkscape:window-width="1680" inkscape:pageshadow="2"
- inkscape:pageopacity="0" guidetolerance="10" gridtolerance="10" objecttolerance="10"
- borderopacity="1" bordercolor="#666666" pagecolor="#ffffff" />
- <g inkscape:groupmode="layer" id="layer1" inkscape:label="PNG" style="display:none"
- sodipodi:insensitive="true" transform="translate(0,-2.5)" />
- <g inkscape:groupmode="layer" id="layer2" inkscape:label="SVG" style="display:inline"
- transform="translate(0,-2.5)">
- <circle r="26.444" cy="66.5" cx="59.999996" id="circle4234"
- style="opacity:1;fill:#000404;fill-opacity:0.45531915;stroke:none;stroke-width:1.05419147;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter4371)" />
- <g id="g6390" transform="translate(3.3103058e-6,-0.91758577)">
- <circle r="25.916904" cy="63.417587" cx="59.999996" id="path4218"
- style="opacity:1;fill:#fafafa;fill-opacity:1;stroke:#fafafa;stroke-width:1.05419147;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
- <circle transform="matrix(0,-1,1,0,-123.07845,-11.073334)"
- style="opacity:0.3;fill:none;fill-opacity:1;stroke:url(#linearGradient4228);stroke-width:1.05419147;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter4230)"
- id="circle4220" cx="-74.490921" cy="183.07845" r="25.916904" />
- </g>
- </g>
-</svg>
diff --git a/art/md_switch_thumb_off_pressed.svg b/art/md_switch_thumb_off_pressed.svg
deleted file mode 100644
index fecb6bc2d..000000000
--- a/art/md_switch_thumb_off_pressed.svg
+++ /dev/null
@@ -1,66 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?><!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
- 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="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- sodipodi:docname="md_switch_thumb_off_pressed_centered.svg" viewBox="0 0 120 120" height="120"
- width="120" inkscape:version="0.91 r13725" version="1.1" id="svg2">
- <metadata id="metadata8">
- <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="defs6">
- <linearGradient inkscape:collect="always" id="linearGradient4222">
- <stop style="stop-color:#000000;stop-opacity:1" offset="0" id="stop4224" />
- <stop style="stop-color:#ffffff;stop-opacity:1" offset="1" id="stop4226" />
- </linearGradient>
- <linearGradient id="linearGradient4179" osb:paint="gradient">
- <stop style="stop-color:#ffffff;stop-opacity:1;" offset="0" id="stop4181" />
- <stop style="stop-color:#ffffff;stop-opacity:0.25454545" offset="1" id="stop4183" />
- </linearGradient>
- <linearGradient inkscape:collect="always" xlink:href="#linearGradient4222"
- id="linearGradient4228" x1="159.38722" y1="19.802504" x2="212.27522" y2="19.802504"
- gradientUnits="userSpaceOnUse" gradientTransform="translate(-260.32215,163.27594)" />
- <filter inkscape:collect="always" style="color-interpolation-filters:sRGB" id="filter4230"
- x="-0.012" width="1.024" y="-0.012" height="1.024">
- <feGaussianBlur inkscape:collect="always" stdDeviation="0.25916904"
- id="feGaussianBlur4232" />
- </filter>
- <filter inkscape:collect="always" style="color-interpolation-filters:sRGB" id="filter4371"
- x="-0.23999999" width="1.48" y="-0.23999999" height="1.48">
- <feGaussianBlur inkscape:collect="always" stdDeviation="5.2888"
- id="feGaussianBlur4373" />
- </filter>
- </defs>
- <sodipodi:namedview inkscape:current-layer="layer2" inkscape:window-maximized="1"
- inkscape:window-y="0" inkscape:window-x="1400" inkscape:cy="61.379767"
- inkscape:cx="10.572032" inkscape:zoom="3.8530612" showgrid="false" id="namedview4"
- inkscape:window-height="1024" inkscape:window-width="1680" inkscape:pageshadow="2"
- inkscape:pageopacity="0" guidetolerance="10" gridtolerance="10" objecttolerance="10"
- borderopacity="1" bordercolor="#666666" pagecolor="#ffffff" />
- <g inkscape:groupmode="layer" id="layer1" inkscape:label="PNG" style="display:none"
- sodipodi:insensitive="true" transform="translate(0,-2.5)" />
- <g inkscape:groupmode="layer" id="layer2" inkscape:label="SVG" style="display:inline"
- transform="translate(0,-2.5)">
- <circle
- style="opacity:1;fill:#313131;fill-opacity:0.10196078;fill-rule:nonzero;stroke:none;stroke-width:1.00100005;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.10196078"
- id="path4819" cx="60" cy="62.5" r="60" />
- <circle r="26.444" cy="66.5" cx="59.999996" id="circle4234"
- style="opacity:1;fill:#000404;fill-opacity:0.45531915;stroke:none;stroke-width:1.05419147;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter4371)" />
- <g id="g6417" transform="translate(3.3103058e-6,-0.91758577)">
- <circle r="25.916904" cy="63.417587" cx="59.999996" id="path4218"
- style="opacity:1;fill:#fafafa;fill-opacity:1;stroke:#fafafa;stroke-width:1.05419147;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
- <circle transform="matrix(0,-1,1,0,-123.07845,-11.073334)"
- style="opacity:0.3;fill:none;fill-opacity:1;stroke:url(#linearGradient4228);stroke-width:1.05419147;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter4230)"
- id="circle4220" cx="-74.490921" cy="183.07845" r="25.916904" />
- </g>
- </g>
-</svg>
diff --git a/art/md_switch_thumb_on_normal.svg b/art/md_switch_thumb_on_normal.svg
deleted file mode 100644
index 8b66115e2..000000000
--- a/art/md_switch_thumb_on_normal.svg
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?><!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
- 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="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- sodipodi:docname="md_switch_thumb_on_normal_centered_square.svg" viewBox="0 0 120 120"
- height="120" width="120" inkscape:version="0.91 r13725" version="1.1" id="svg2">
- <metadata id="metadata8">
- <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="defs6">
- <linearGradient inkscape:collect="always" id="linearGradient4222">
- <stop style="stop-color:#000000;stop-opacity:1" offset="0" id="stop4224" />
- <stop style="stop-color:#ffffff;stop-opacity:1" offset="1" id="stop4226" />
- </linearGradient>
- <linearGradient id="linearGradient4179" osb:paint="gradient">
- <stop style="stop-color:#ffffff;stop-opacity:1;" offset="0" id="stop4181" />
- <stop style="stop-color:#ffffff;stop-opacity:0.25454545" offset="1" id="stop4183" />
- </linearGradient>
- <linearGradient inkscape:collect="always" xlink:href="#linearGradient4222"
- id="linearGradient4228" x1="159.38722" y1="19.802504" x2="212.27522" y2="19.802504"
- gradientUnits="userSpaceOnUse" gradientTransform="translate(-260.32215,163.27594)" />
- <filter inkscape:collect="always" style="color-interpolation-filters:sRGB" id="filter4230"
- x="-0.012" width="1.024" y="-0.012" height="1.024">
- <feGaussianBlur inkscape:collect="always" stdDeviation="0.25916904"
- id="feGaussianBlur4232" />
- </filter>
- <filter inkscape:collect="always" style="color-interpolation-filters:sRGB" id="filter4371"
- x="-0.23999999" width="1.48" y="-0.23999999" height="1.48">
- <feGaussianBlur inkscape:collect="always" stdDeviation="5.2888"
- id="feGaussianBlur4373" />
- </filter>
- </defs>
- <sodipodi:namedview inkscape:current-layer="layer2" inkscape:window-maximized="1"
- inkscape:window-y="0" inkscape:window-x="1400" inkscape:cy="61.379767"
- inkscape:cx="-14.397519" inkscape:zoom="3.8530612" showgrid="false" id="namedview4"
- inkscape:window-height="1024" inkscape:window-width="1680" inkscape:pageshadow="2"
- inkscape:pageopacity="0" guidetolerance="10" gridtolerance="10" objecttolerance="10"
- borderopacity="1" bordercolor="#666666" pagecolor="#ffffff" />
- <g inkscape:groupmode="layer" id="layer2" inkscape:label="SVG" style="display:inline"
- transform="translate(0,-2.5)">
- <circle r="26.444" cy="66.499878" cx="59.999996" id="circle4234"
- style="opacity:1;fill:#000404;fill-opacity:0.45531915;stroke:none;stroke-width:1.05419147;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter4371)" />
- <g id="g6440" transform="translate(3.3103058e-6,0.33241423)">
- <circle r="25.916904" cy="62.167587" cx="59.999996" id="path4218"
- style="opacity:1;fill:#0091ea;fill-opacity:1;stroke:#0091ea;stroke-width:1.05419147;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
- <circle transform="matrix(0,-1,1,0,-123.07845,-12.323334)"
- style="opacity:0.3;fill:none;fill-opacity:1;stroke:url(#linearGradient4228);stroke-width:1.05419147;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter4230)"
- id="circle4220" cx="-74.490921" cy="183.07845" r="25.916904" />
- </g>
- </g>
-</svg>
diff --git a/art/md_switch_thumb_on_pressed.svg b/art/md_switch_thumb_on_pressed.svg
deleted file mode 100644
index 90d14cbe4..000000000
--- a/art/md_switch_thumb_on_pressed.svg
+++ /dev/null
@@ -1,70 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?><!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
- 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="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- sodipodi:docname="md_switch_thumb_on_pressed_centered_square.svg" viewBox="0 0 120 120"
- height="120" width="120" inkscape:version="0.91 r13725" version="1.1" id="svg2">
- <metadata id="metadata8">
- <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="defs6">
- <linearGradient inkscape:collect="always" id="linearGradient4222">
- <stop style="stop-color:#000000;stop-opacity:1" offset="0" id="stop4224" />
- <stop style="stop-color:#ffffff;stop-opacity:1" offset="1" id="stop4226" />
- </linearGradient>
- <linearGradient id="linearGradient4179" osb:paint="gradient">
- <stop style="stop-color:#ffffff;stop-opacity:1;" offset="0" id="stop4181" />
- <stop style="stop-color:#ffffff;stop-opacity:0.25454545" offset="1" id="stop4183" />
- </linearGradient>
- <linearGradient inkscape:collect="always" xlink:href="#linearGradient4222"
- id="linearGradient4228" x1="159.38722" y1="19.802504" x2="212.27522" y2="19.802504"
- gradientUnits="userSpaceOnUse" gradientTransform="translate(-260.32215,163.27594)" />
- <filter inkscape:collect="always" style="color-interpolation-filters:sRGB" id="filter4230"
- x="-0.012" width="1.024" y="-0.012" height="1.024">
- <feGaussianBlur inkscape:collect="always" stdDeviation="0.25916904"
- id="feGaussianBlur4232" />
- </filter>
- <filter inkscape:collect="always" style="color-interpolation-filters:sRGB" id="filter4371"
- x="-0.23999999" width="1.48" y="-0.23999999" height="1.48">
- <feGaussianBlur inkscape:collect="always" stdDeviation="5.2888"
- id="feGaussianBlur4373" />
- </filter>
- </defs>
- <sodipodi:namedview inkscape:current-layer="layer2" inkscape:window-maximized="1"
- inkscape:window-y="0" inkscape:window-x="1400" inkscape:cy="61.379767"
- inkscape:cx="-46.31369" inkscape:zoom="3.8530612" showgrid="false" id="namedview4"
- inkscape:window-height="1024" inkscape:window-width="1680" inkscape:pageshadow="2"
- inkscape:pageopacity="0" guidetolerance="10" gridtolerance="10" objecttolerance="10"
- borderopacity="1" bordercolor="#666666" pagecolor="#ffffff" />
- <g inkscape:groupmode="layer" id="layer1" inkscape:label="PNG" style="display:none"
- sodipodi:insensitive="true" transform="translate(0,-2.5)" />
- <g inkscape:groupmode="layer" id="layer2" inkscape:label="SVG" style="display:inline"
- transform="translate(0,-2.5)">
- <circle
- style="opacity:1;fill:#0093e8;fill-opacity:0.10196078;fill-rule:nonzero;stroke:none;stroke-width:1.00100005;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.10196078"
- id="path4819" cx="60" cy="62.5" r="60" />
- <g id="g4156">
- <circle
- style="opacity:1;fill:#000404;fill-opacity:0.45531915;stroke:none;stroke-width:1.05419147;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter4371)"
- id="circle4234" cx="59.999996" cy="66.5" r="26.444" />
- <g transform="translate(3.3103058e-6,0.33241423)" id="g4149">
- <circle
- style="opacity:1;fill:#0091ea;fill-opacity:1;stroke:#0091ea;stroke-width:1.05419147;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- id="path4218" cx="59.999996" cy="62.167587" r="25.916904" />
- <circle r="25.916904" cy="183.07845" cx="-74.490921" id="circle4220"
- style="opacity:0.3;fill:none;fill-opacity:1;stroke:url(#linearGradient4228);stroke-width:1.05419147;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter4230)"
- transform="matrix(0,-1,1,0,-123.07845,-12.323334)" />
- </g>
- </g>
- </g>
-</svg>
diff --git a/art/render.rb b/art/render.rb
index 260c7dc24..6b075b1ec 100755
--- a/art/render.rb
+++ b/art/render.rb
@@ -43,11 +43,6 @@ images = {
'ic_send_picture_away.svg' => ['ic_send_picture_away', 36],
'ic_send_picture_dnd.svg' => ['ic_send_picture_dnd', 36],
'ic_verified_fingerprint.svg' => ['ic_verified_fingerprint', 36],
- 'md_switch_thumb_disable.svg' => ['switch_thumb_disable', 48],
- 'md_switch_thumb_off_normal.svg' => ['switch_thumb_off_normal', 48],
- 'md_switch_thumb_off_pressed.svg' => ['switch_thumb_off_pressed', 48],
- 'md_switch_thumb_on_normal.svg' => ['switch_thumb_on_normal', 48],
- 'md_switch_thumb_on_pressed.svg' => ['switch_thumb_on_pressed', 48],
'message_bubble_received.svg' => ['message_bubble_received.9', 0],
'message_bubble_received_warning.svg' => ['message_bubble_received_warning.9', 0],
'message_bubble_received_white.svg' => ['message_bubble_received_white.9', 0],
diff --git a/src/main/java/de/pixart/messenger/ui/OmemoActivity.java b/src/main/java/de/pixart/messenger/ui/OmemoActivity.java
index e304a64ee..95b521086 100644
--- a/src/main/java/de/pixart/messenger/ui/OmemoActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/OmemoActivity.java
@@ -1,7 +1,6 @@
package de.pixart.messenger.ui;
-import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.content.ContextCompat;
@@ -11,6 +10,7 @@ import android.view.ContextMenu;
import android.view.MenuItem;
import android.view.View;
import android.widget.CompoundButton;
+import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
@@ -131,6 +131,7 @@ public abstract class OmemoActivity extends XmppActivity {
View view = getLayoutInflater().inflate(R.layout.contact_key, keys, false);
TextView key = view.findViewById(R.id.key);
TextView keyType = view.findViewById(R.id.key_type);
+ ImageButton enableUndecided = view.findViewById(R.id.button_enable_device);
if (Config.X509_VERIFICATION && status.getTrust() == FingerprintStatus.Trust.VERIFIED_X509) {
key.setOnClickListener(v -> showX509Certificate(account, fingerprint));
keyType.setOnClickListener(v -> showX509Certificate(account, fingerprint));
@@ -160,12 +161,13 @@ public abstract class OmemoActivity extends XmppActivity {
trustToggle.setVisibility(View.VISIBLE);
trustToggle.setOnCheckedChangeListener(onCheckedChangeListener);
if (status.getTrust() == FingerprintStatus.Trust.UNDECIDED && undecidedNeedEnablement) {
- trustToggle.setOnClickListener(v -> {
+ enableUndecided.setVisibility(View.VISIBLE);
+ enableUndecided.setOnClickListener(v -> {
account.getAxolotlService().setFingerprintTrust(fingerprint, FingerprintStatus.createActive(false));
- v.setEnabled(true);
- v.setOnClickListener(null);
+ enableUndecided.setVisibility(View.GONE);
+ trustToggle.setVisibility(View.VISIBLE);
});
- trustToggle.setEnabled(false);
+ trustToggle.setVisibility(View.GONE);
} else {
trustToggle.setOnClickListener(null);
trustToggle.setEnabled(true);
diff --git a/src/main/res/layout/activity_muc_details.xml b/src/main/res/layout/activity_muc_details.xml
index 5dfe75458..35a779cf4 100644
--- a/src/main/res/layout/activity_muc_details.xml
+++ b/src/main/res/layout/activity_muc_details.xml
@@ -147,7 +147,7 @@
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/your_photo"
android:orientation="vertical"
- android:paddingLeft="8dp">
+ android:paddingLeft="@dimen/avatar_item_distance">
<android.support.text.emoji.widget.EmojiTextView
android:id="@+id/muc_your_nick"
diff --git a/src/main/res/layout/contact.xml b/src/main/res/layout/contact.xml
index 159b1256a..c414271ab 100644
--- a/src/main/res/layout/contact.xml
+++ b/src/main/res/layout/contact.xml
@@ -21,7 +21,7 @@
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/contact_photo"
android:orientation="vertical"
- android:paddingLeft="16dp">
+ android:paddingLeft="@dimen/avatar_item_distance" >
<android.support.text.emoji.widget.EmojiTextView
android:id="@+id/contact_display_name"
diff --git a/src/main/res/layout/contact_key.xml b/src/main/res/layout/contact_key.xml
index e276fc047..77b26f70d 100644
--- a/src/main/res/layout/contact_key.xml
+++ b/src/main/res/layout/contact_key.xml
@@ -49,9 +49,10 @@
<LinearLayout
android:id="@+id/action_container"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
+ android:layout_width="@dimen/key_action_width"
+ android:layout_height="48dp"
android:layout_alignParentRight="true"
+ android:gravity="center"
android:layout_centerVertical="true"
android:orientation="vertical">
@@ -59,18 +60,25 @@
android:id="@+id/button_remove"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
android:background="?attr/selectableItemBackgroundBorderless"
android:padding="@dimen/image_button_padding"
android:src="?attr/icon_remove"
android:visibility="gone" />
+ <ImageButton
+ android:id="@+id/button_enable_device"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:alpha="?attr/icon_alpha"
+ android:background="?attr/selectableItemBackgroundBorderless"
+ android:padding="@dimen/image_button_padding"
+ android:src="?attr/icon_enable_undecided_device"
+ android:visibility="gone" />
+
<ImageView
android:id="@+id/verified_fingerprint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:padding="@dimen/image_button_padding"
android:src="@drawable/ic_verified_fingerprint"
android:visibility="gone" />
@@ -81,7 +89,6 @@
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
- android:layout_gravity="center_horizontal"
android:visibility="gone" />
</LinearLayout>
</RelativeLayout>
diff --git a/src/main/res/values/attrs.xml b/src/main/res/values/attrs.xml
index 208a60cfb..f9bdae03a 100644
--- a/src/main/res/values/attrs.xml
+++ b/src/main/res/values/attrs.xml
@@ -37,6 +37,7 @@
<attr name="icon_share" format="reference" />
<attr name="icon_import_export" format="reference" />
<attr name="icon_scan_qr_code" format="reference" />
+ <attr name="icon_enable_undecided_device" format="reference" />
<attr name="icon_notifications" format="reference" />
<attr name="icon_notifications_off" format="reference" />
@@ -57,5 +58,7 @@
<attr name="ic_file_pdf" format="reference" />
<attr name="ic_file_vcard" format="reference" />
<attr name="ic_file_calendar" format="reference" />
+
+ <attr name="icon_alpha" format="float"/>
</resources> \ No newline at end of file
diff --git a/src/main/res/values/dimens.xml b/src/main/res/values/dimens.xml
index 810feee69..933c7daea 100644
--- a/src/main/res/values/dimens.xml
+++ b/src/main/res/values/dimens.xml
@@ -6,5 +6,8 @@
<dimen name="card_padding_list">8dp</dimen> <!-- card_padding_regular minus list_padding -->
<dimen name="list_padding">8dp</dimen>
<dimen name="image_button_padding">12dp</dimen>
+ <dimen name="key_action_width">48dp</dimen> <!-- icon width (24dp) + 2 * image button padding -->
+ <dimen name="fineprint_size">11sp</dimen>
<dimen name="audio_player_width">224dp</dimen>
+ <dimen name="avatar_item_distance">16dp</dimen>
</resources>
diff --git a/src/main/res/values/themes.xml b/src/main/res/values/themes.xml
index 7c433f720..b70fe0bd7 100644
--- a/src/main/res/values/themes.xml
+++ b/src/main/res/values/themes.xml
@@ -49,8 +49,10 @@
<item name="icon_import_export">@drawable/ic_import_export_white_24dp</item>
<item name="icon_share">@drawable/ic_share_white_24dp</item>
<item name="icon_scan_qr_code">@drawable/ic_barcode_scan_white_24dp</item>
+ <item type="reference" name="icon_enable_undecided_device">@drawable/ic_new_releases_black_24dp</item>
<item name="dialog_horizontal_padding">16dp</item>
<item name="dialog_vertical_padding">16dp</item>
+ <item type="float" name="icon_alpha">0.54</item>
<item name="ic_attach_camera">@drawable/ic_attach_camera</item>
<item name="ic_attach_document">@drawable/ic_attach_document</item>