compose: nice dots for the crypto status icon
49
images/drawables-pgp/status_dots.svg
Normal file
|
@ -0,0 +1,49 @@
|
|||
<?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="150"
|
||||
height="100"
|
||||
viewBox="0 0 149.99999 99.999998"
|
||||
id="svg3344"
|
||||
version="1.1">
|
||||
<defs
|
||||
id="defs3346" />
|
||||
<metadata
|
||||
id="metadata3349">
|
||||
<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"
|
||||
transform="translate(-17.144857,-22.362199)">
|
||||
<circle
|
||||
style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
id="circle4219"
|
||||
cx="138.57143"
|
||||
cy="106.8622"
|
||||
r="13" />
|
||||
<circle
|
||||
r="13"
|
||||
cy="72.362198"
|
||||
cx="138.57143"
|
||||
id="circle4741"
|
||||
style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
||||
<circle
|
||||
style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
id="circle4743"
|
||||
cx="138.57143"
|
||||
cy="37.862198"
|
||||
r="13" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1.7 KiB |
50
images/drawables-pgp/status_lock.svg
Normal file
|
@ -0,0 +1,50 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:sketch="http://www.bohemiancoding.com/sketch/ns"
|
||||
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"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
viewBox="0 0 100 100"
|
||||
height="100px"
|
||||
width="100px">
|
||||
<metadata
|
||||
id="metadata16">
|
||||
<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>lock-closed</dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<!-- Generator: Sketch 3.0.4 (8053) - http://www.bohemiancoding.com/sketch -->
|
||||
<title
|
||||
id="title4">lock-closed</title>
|
||||
<desc
|
||||
id="desc6">Created with Sketch.</desc>
|
||||
<defs
|
||||
id="defs8" />
|
||||
<g
|
||||
sketch:type="MSPage"
|
||||
fill-rule="evenodd"
|
||||
fill="none"
|
||||
stroke-width="1"
|
||||
stroke="none"
|
||||
id="Page-1">
|
||||
<g
|
||||
fill="#000000"
|
||||
sketch:type="MSArtboardGroup"
|
||||
id="lock-closed">
|
||||
<path
|
||||
id="path12"
|
||||
sketch:type="MSShapeGroup"
|
||||
d="m 81.502,45.132 -1.925,0 0,-15.653 C 79.479,10.285 66.387,-0.164 50.476,-0.164 34.57,-0.164 20.304,10.782 20.801,29.479 l -0.016,15.633 c 0,0 0.24,0.021 -0.96,0.021 -1.27,0 -9.64,1.473 -9.64,8.936 l 0,35.824 c 0,7.959 9.42,9.943 9.64,9.943 l 61.202,0 c 0.22,0 9.154,-0.993 9.154,-9.943 l 0,-35.329 c 0.001,-8.455 -8.454,-9.432 -8.679,-9.432 z m -47.241,0 0.016,-15.446 c 0,-9.949 6.071,-17.903 15.906,-17.903 9.741,0 15.905,6.958 15.905,17.903 l 0.01,15.446 -31.837,0 z" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1.7 KiB |
40
images/drawables-pgp/status_lock_disabled_dots_1.svg
Normal file
|
@ -0,0 +1,40 @@
|
|||
<?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="150"
|
||||
height="100"
|
||||
viewBox="0 0 149.99999 99.999998"
|
||||
id="svg3344"
|
||||
version="1.1">
|
||||
<defs
|
||||
id="defs3346" />
|
||||
<metadata
|
||||
id="metadata3349">
|
||||
<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"
|
||||
transform="translate(-17.144857,-22.362199)">
|
||||
<circle
|
||||
style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
id="circle4219"
|
||||
cx="138.57143"
|
||||
cy="106.8622"
|
||||
r="13" />
|
||||
<path
|
||||
id="path12"
|
||||
d="m 67.621869,22.362201 c -11.373772,0 -21.891979,5.608303 -26.789062,15.634766 l 10.820312,11.013671 c 1.16539,-8.397372 6.92425,-14.701171 15.675782,-14.701171 9.741,0 15.904292,6.957343 15.904292,17.902343 l 0.01,15.447266 -13.271479,0 37.355466,38.027344 0,-28.595704 c 0.001,-8.454999 -8.454687,-9.43164 -8.679687,-9.43164 l -1.92578,0 0,-15.654297 C 96.623513,32.81078 83.532903,22.362201 67.621904,22.362201 Z M 37.946088,50.207904 c -0.01456,0.590872 -0.01614,1.189535 0,1.796875 l -0.01563,15.632812 c 0,0 0.239063,0.02148 -0.960937,0.02148 -1.27,0 -9.638672,1.472547 -9.638672,8.935547 l 0,35.824222 c 0,7.959 9.418672,9.94335 9.638672,9.94336 l 61.203122,0 c 0.15957,0 4.890277,-0.54014 7.484377,-4.24219 l -50.312499,-50.460939 -3.9375,0 0.0039,-3.945312 L 37.946077,50.2079 Z" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1.9 KiB |
59
images/drawables-pgp/status_lock_dots_2.svg
Normal file
|
@ -0,0 +1,59 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:sketch="http://www.bohemiancoding.com/sketch/ns"
|
||||
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="150"
|
||||
height="100"
|
||||
viewBox="0 0 149.99999 99.999998"
|
||||
id="svg3344"
|
||||
version="1.1">
|
||||
<defs
|
||||
id="defs3346" />
|
||||
<metadata
|
||||
id="metadata3349">
|
||||
<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"
|
||||
transform="translate(-17.144857,-22.362199)">
|
||||
<circle
|
||||
style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
id="circle4219"
|
||||
cx="138.57143"
|
||||
cy="106.8622"
|
||||
r="13" />
|
||||
<circle
|
||||
r="13"
|
||||
cy="72.362198"
|
||||
cx="138.57143"
|
||||
id="circle4741"
|
||||
style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
||||
<g
|
||||
id="Page-1"
|
||||
sketch:type="MSPage"
|
||||
style="fill:none;fill-rule:evenodd;stroke:none;stroke-width:1"
|
||||
transform="translate(17.144849,22.526199)">
|
||||
<g
|
||||
id="lock-closed"
|
||||
sketch:type="MSArtboardGroup"
|
||||
style="fill:#000000">
|
||||
<path
|
||||
d="m 81.502,45.132 -1.925,0 0,-15.653 C 79.479,10.285 66.387,-0.164 50.476,-0.164 34.57,-0.164 20.304,10.782 20.801,29.479 l -0.016,15.633 c 0,0 0.24,0.021 -0.96,0.021 -1.27,0 -9.64,1.473 -9.64,8.936 l 0,35.824 c 0,7.959 9.42,9.943 9.64,9.943 l 61.202,0 c 0.22,0 9.154,-0.993 9.154,-9.943 l 0,-35.329 c 0.001,-8.455 -8.454,-9.432 -8.679,-9.432 z m -47.241,0 0.016,-15.446 c 0,-9.949 6.071,-17.903 15.906,-17.903 9.741,0 15.905,6.958 15.905,17.903 l 0.01,15.446 -31.837,0 z"
|
||||
sketch:type="MSShapeGroup"
|
||||
id="path12" />
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.3 KiB |
65
images/drawables-pgp/status_lock_dots_3.svg
Normal file
|
@ -0,0 +1,65 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:sketch="http://www.bohemiancoding.com/sketch/ns"
|
||||
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="150"
|
||||
height="100"
|
||||
viewBox="0 0 149.99999 99.999998"
|
||||
id="svg3344"
|
||||
version="1.1">
|
||||
<defs
|
||||
id="defs3346" />
|
||||
<metadata
|
||||
id="metadata3349">
|
||||
<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"
|
||||
transform="translate(-17.144857,-22.362199)">
|
||||
<circle
|
||||
style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
id="circle4219"
|
||||
cx="138.57143"
|
||||
cy="106.8622"
|
||||
r="13" />
|
||||
<circle
|
||||
r="13"
|
||||
cy="72.362198"
|
||||
cx="138.57143"
|
||||
id="circle4741"
|
||||
style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
||||
<circle
|
||||
style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
id="circle4743"
|
||||
cx="138.57143"
|
||||
cy="37.862198"
|
||||
r="13" />
|
||||
<g
|
||||
id="Page-1"
|
||||
sketch:type="MSPage"
|
||||
style="fill:none;fill-rule:evenodd;stroke:none;stroke-width:1"
|
||||
transform="translate(17.144849,22.526199)">
|
||||
<g
|
||||
id="lock-closed"
|
||||
sketch:type="MSArtboardGroup"
|
||||
style="fill:#000000">
|
||||
<path
|
||||
d="m 81.502,45.132 -1.925,0 0,-15.653 C 79.479,10.285 66.387,-0.164 50.476,-0.164 34.57,-0.164 20.304,10.782 20.801,29.479 l -0.016,15.633 c 0,0 0.24,0.021 -0.96,0.021 -1.27,0 -9.64,1.473 -9.64,8.936 l 0,35.824 c 0,7.959 9.42,9.943 9.64,9.943 l 61.202,0 c 0.22,0 9.154,-0.993 9.154,-9.943 l 0,-35.329 c 0.001,-8.455 -8.454,-9.432 -8.679,-9.432 z m -47.241,0 0.016,-15.446 c 0,-9.949 6.071,-17.903 15.906,-17.903 9.741,0 15.905,6.958 15.905,17.903 l 0.01,15.446 -31.837,0 z"
|
||||
sketch:type="MSShapeGroup"
|
||||
id="path12" />
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.6 KiB |
53
images/drawables-pgp/status_lock_error_dots_1.svg
Normal file
|
@ -0,0 +1,53 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:sketch="http://www.bohemiancoding.com/sketch/ns"
|
||||
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="150"
|
||||
height="100"
|
||||
viewBox="0 0 149.99999 99.999998"
|
||||
id="svg3344"
|
||||
version="1.1">
|
||||
<defs
|
||||
id="defs3346" />
|
||||
<metadata
|
||||
id="metadata3349">
|
||||
<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"
|
||||
transform="translate(-17.144857,-22.362199)">
|
||||
<circle
|
||||
style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
id="circle4219"
|
||||
cx="138.57143"
|
||||
cy="106.8622"
|
||||
r="13" />
|
||||
<g
|
||||
sketch:type="MSPage"
|
||||
id="Page-1"
|
||||
style="fill:none;fill-rule:evenodd;stroke:none;stroke-width:1"
|
||||
transform="translate(18.185849,22.191199)">
|
||||
<g
|
||||
sketch:type="MSArtboardGroup"
|
||||
id="lock-error"
|
||||
style="fill:#000000">
|
||||
<path
|
||||
id="path5450"
|
||||
sketch:type="MSShapeGroup"
|
||||
d="m 80.459,45.474 -1.926,0 0,-15.648 C 78.435,10.633 65.344,0.183 49.433,0.183 33.527,0.183 19.265,11.128 19.761,29.826 l -0.016,15.628 c 0,0 0.24,0.021 -0.961,0.021 -1.27,0 -9.639,1.471 -9.639,8.932 l 0,35.821 c 0,7.959 9.42,9.943 9.639,9.943 l 61.2,0 c 0.219,0 9.154,-0.993 9.154,-9.943 l 0,-35.327 c 10e-4,-8.449 -8.454,-9.427 -8.679,-9.427 l 0,0 z M 33.234,30.033 c 0,-9.949 6.07,-17.902 15.906,-17.902 9.741,0 15.905,6.957 15.905,17.902 l 0.01,15.441 -31.837,0 0.016,-15.441 0,0 z M 59.403377,90.873 48.458282,79.927905 38.229659,90.364449 31.6365,83.756888 42.582495,72.815394 32.343971,62.593972 38.754412,56.107923 49.701306,67.050318 60.123449,56.710084 66.6365,63.224035 55.689605,74.167329 66.009137,84.477861 59.403377,90.873 Z" />
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.2 KiB |
|
@ -9,7 +9,7 @@ XXXDPI_DIR=$APP_DIR/res/drawable-xxxhdpi
|
|||
SRC_DIR=./drawables-pgp/
|
||||
|
||||
|
||||
for NAME in "status_lock_closed" "status_lock_error" "status_lock_open" "status_lock_disabled" "status_lock_opportunistic" "status_signature_expired_cutout" "status_signature_invalid_cutout" "status_signature_revoked_cutout" "status_signature_unknown_cutout" "status_signature_unverified_cutout" "status_signature_verified_cutout"
|
||||
for NAME in "status_lock" "status_lock_closed" "status_lock_error" "status_lock_open" "status_lock_disabled" "status_lock_opportunistic" "status_signature_expired_cutout" "status_signature_invalid_cutout" "status_signature_revoked_cutout" "status_signature_unknown_cutout" "status_signature_unverified_cutout" "status_signature_verified_cutout"
|
||||
do
|
||||
echo $NAME
|
||||
inkscape -w 24 -h 24 -e "$MDPI_DIR/$NAME.png" "$SRC_DIR/$NAME.svg"
|
||||
|
@ -17,3 +17,12 @@ inkscape -w 32 -h 32 -e "$HDPI_DIR/$NAME.png" "$SRC_DIR/$NAME.svg"
|
|||
inkscape -w 48 -h 48 -e "$XDPI_DIR/$NAME.png" "$SRC_DIR/$NAME.svg"
|
||||
inkscape -w 64 -h 64 -e "$XXDPI_DIR/$NAME.png" "$SRC_DIR/$NAME.svg"
|
||||
done
|
||||
|
||||
for NAME in "status_dots" "status_lock_disabled_dots_1" "status_lock_error_dots_1" "status_lock_dots_2" "status_lock_dots_3"
|
||||
do
|
||||
echo $NAME
|
||||
inkscape -w 36 -h 24 -e "$MDPI_DIR/$NAME.png" "$SRC_DIR/$NAME.svg"
|
||||
inkscape -w 48 -h 32 -e "$HDPI_DIR/$NAME.png" "$SRC_DIR/$NAME.svg"
|
||||
inkscape -w 72 -h 48 -e "$XDPI_DIR/$NAME.png" "$SRC_DIR/$NAME.svg"
|
||||
inkscape -w 96 -h 64 -e "$XXDPI_DIR/$NAME.png" "$SRC_DIR/$NAME.svg"
|
||||
done
|
||||
|
|
|
@ -21,6 +21,7 @@ public class ComposeCryptoStatus {
|
|||
private List<String> keyReferences;
|
||||
private boolean allKeysAvailable;
|
||||
private boolean allKeysVerified;
|
||||
private boolean hasRecipients;
|
||||
private Long signingKeyId;
|
||||
private Long selfEncryptKeyId;
|
||||
|
||||
|
@ -50,14 +51,18 @@ public class ComposeCryptoStatus {
|
|||
public CryptoStatusDisplayType getCryptoStatusDisplayType() {
|
||||
switch (cryptoMode) {
|
||||
case PRIVATE:
|
||||
if (allKeysAvailable && allKeysVerified) {
|
||||
if (!hasRecipients) {
|
||||
return CryptoStatusDisplayType.PRIVATE_EMPTY;
|
||||
} else if (allKeysAvailable && allKeysVerified) {
|
||||
return CryptoStatusDisplayType.PRIVATE_TRUSTED;
|
||||
} else if (allKeysAvailable) {
|
||||
return CryptoStatusDisplayType.PRIVATE_UNTRUSTED;
|
||||
}
|
||||
return CryptoStatusDisplayType.PRIVATE_NOKEY;
|
||||
case OPPORTUNISTIC:
|
||||
if (allKeysAvailable && allKeysVerified) {
|
||||
if (!hasRecipients) {
|
||||
return CryptoStatusDisplayType.OPPORTUNISTIC_EMPTY;
|
||||
} else if (allKeysAvailable && allKeysVerified) {
|
||||
return CryptoStatusDisplayType.OPPORTUNISTIC_TRUSTED;
|
||||
} else if (allKeysAvailable) {
|
||||
return CryptoStatusDisplayType.OPPORTUNISTIC_UNTRUSTED;
|
||||
|
@ -138,7 +143,8 @@ public class ComposeCryptoStatus {
|
|||
|
||||
ArrayList<String> keyReferences = new ArrayList<>();
|
||||
boolean allKeysAvailable = true;
|
||||
boolean allKeysVerified = !recipients.isEmpty();
|
||||
boolean allKeysVerified = true;
|
||||
boolean hasRecipients = !recipients.isEmpty();
|
||||
for (Recipient recipient : recipients) {
|
||||
RecipientCryptoStatus cryptoStatus = recipient.getCryptoStatus();
|
||||
if (cryptoStatus.isAvailable()) {
|
||||
|
@ -156,6 +162,7 @@ public class ComposeCryptoStatus {
|
|||
result.keyReferences = Collections.unmodifiableList(keyReferences);
|
||||
result.allKeysAvailable = allKeysAvailable;
|
||||
result.allKeysVerified = allKeysVerified;
|
||||
result.hasRecipients = hasRecipients;
|
||||
result.signingKeyId = signingKeyId;
|
||||
result.selfEncryptKeyId = selfEncryptKeyId;
|
||||
return result;
|
||||
|
|
|
@ -29,10 +29,12 @@ public class RecipientMvpView implements OnFocusChangeListener, OnClickListener
|
|||
private static final int VIEW_INDEX_HIDDEN = -1;
|
||||
private static final int VIEW_INDEX_CRYPTO_STATUS_DISABLED = 0;
|
||||
private static final int VIEW_INDEX_CRYPTO_STATUS_ERROR = 1;
|
||||
private static final int VIEW_INDEX_CRYPTO_STATUS_NO_KEY = 2;
|
||||
private static final int VIEW_INDEX_CRYPTO_STATUS_UNTRUSTED = 3;
|
||||
private static final int VIEW_INDEX_CRYPTO_STATUS_TRUSTED = 4;
|
||||
private static final int VIEW_INDEX_CRYPTO_STATUS_SIGN_ONLY = 5;
|
||||
private static final int VIEW_INDEX_CRYPTO_STATUS_NO_RECIPIENTS = 2;
|
||||
private static final int VIEW_INDEX_CRYPTO_STATUS_ERROR_NO_KEY = 3;
|
||||
private static final int VIEW_INDEX_CRYPTO_STATUS_DISABLED_NO_KEY = 4;
|
||||
private static final int VIEW_INDEX_CRYPTO_STATUS_UNTRUSTED = 5;
|
||||
private static final int VIEW_INDEX_CRYPTO_STATUS_TRUSTED = 6;
|
||||
private static final int VIEW_INDEX_CRYPTO_STATUS_SIGN_ONLY = 7;
|
||||
|
||||
private static final int VIEW_INDEX_BCC_EXPANDER_VISIBLE = 0;
|
||||
private static final int VIEW_INDEX_BCC_EXPANDER_HIDDEN = 1;
|
||||
|
@ -372,10 +374,12 @@ public class RecipientMvpView implements OnFocusChangeListener, OnClickListener
|
|||
UNINITIALIZED(VIEW_INDEX_HIDDEN),
|
||||
DISABLED(VIEW_INDEX_CRYPTO_STATUS_DISABLED),
|
||||
SIGN_ONLY(VIEW_INDEX_CRYPTO_STATUS_SIGN_ONLY),
|
||||
OPPORTUNISTIC_NOKEY(VIEW_INDEX_CRYPTO_STATUS_NO_KEY),
|
||||
OPPORTUNISTIC_EMPTY(VIEW_INDEX_CRYPTO_STATUS_NO_RECIPIENTS),
|
||||
OPPORTUNISTIC_NOKEY(VIEW_INDEX_CRYPTO_STATUS_DISABLED_NO_KEY),
|
||||
OPPORTUNISTIC_UNTRUSTED(VIEW_INDEX_CRYPTO_STATUS_UNTRUSTED),
|
||||
OPPORTUNISTIC_TRUSTED(VIEW_INDEX_CRYPTO_STATUS_TRUSTED),
|
||||
PRIVATE_NOKEY(VIEW_INDEX_CRYPTO_STATUS_NO_KEY),
|
||||
PRIVATE_EMPTY(VIEW_INDEX_CRYPTO_STATUS_NO_RECIPIENTS),
|
||||
PRIVATE_NOKEY(VIEW_INDEX_CRYPTO_STATUS_ERROR_NO_KEY),
|
||||
PRIVATE_UNTRUSTED(VIEW_INDEX_CRYPTO_STATUS_UNTRUSTED),
|
||||
PRIVATE_TRUSTED(VIEW_INDEX_CRYPTO_STATUS_TRUSTED),
|
||||
ERROR(VIEW_INDEX_CRYPTO_STATUS_ERROR);
|
||||
|
|
BIN
k9mail/src/main/res/drawable-hdpi/status_dots.png
Normal file
After Width: | Height: | Size: 656 B |
BIN
k9mail/src/main/res/drawable-hdpi/status_lock.png
Normal file
After Width: | Height: | Size: 527 B |
After Width: | Height: | Size: 771 B |
BIN
k9mail/src/main/res/drawable-hdpi/status_lock_dots_2.png
Normal file
After Width: | Height: | Size: 768 B |
BIN
k9mail/src/main/res/drawable-hdpi/status_lock_dots_3.png
Normal file
After Width: | Height: | Size: 858 B |
BIN
k9mail/src/main/res/drawable-hdpi/status_lock_error_dots_1.png
Normal file
After Width: | Height: | Size: 799 B |
BIN
k9mail/src/main/res/drawable-mdpi/status_dots.png
Normal file
After Width: | Height: | Size: 512 B |
BIN
k9mail/src/main/res/drawable-mdpi/status_lock.png
Normal file
After Width: | Height: | Size: 440 B |
After Width: | Height: | Size: 616 B |
BIN
k9mail/src/main/res/drawable-mdpi/status_lock_dots_2.png
Normal file
After Width: | Height: | Size: 613 B |
BIN
k9mail/src/main/res/drawable-mdpi/status_lock_dots_3.png
Normal file
After Width: | Height: | Size: 681 B |
BIN
k9mail/src/main/res/drawable-mdpi/status_lock_error_dots_1.png
Normal file
After Width: | Height: | Size: 620 B |
BIN
k9mail/src/main/res/drawable-xhdpi/status_dots.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
k9mail/src/main/res/drawable-xhdpi/status_lock.png
Normal file
After Width: | Height: | Size: 705 B |
After Width: | Height: | Size: 1.1 KiB |
BIN
k9mail/src/main/res/drawable-xhdpi/status_lock_dots_2.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
k9mail/src/main/res/drawable-xhdpi/status_lock_dots_3.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
k9mail/src/main/res/drawable-xhdpi/status_lock_error_dots_1.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
k9mail/src/main/res/drawable-xxhdpi/status_dots.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
k9mail/src/main/res/drawable-xxhdpi/status_lock.png
Normal file
After Width: | Height: | Size: 897 B |
After Width: | Height: | Size: 1.4 KiB |
BIN
k9mail/src/main/res/drawable-xxhdpi/status_lock_dots_2.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
k9mail/src/main/res/drawable-xxhdpi/status_lock_dots_3.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
k9mail/src/main/res/drawable-xxhdpi/status_lock_error_dots_1.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
|
@ -13,7 +13,9 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="12dip"
|
||||
android:layout_marginRight="12dip"
|
||||
android:layout_marginStart="12dip"
|
||||
android:layout_marginRight="10dip"
|
||||
android:layout_marginEnd="10dip"
|
||||
android:minHeight="50dp">
|
||||
|
||||
<TextView
|
||||
|
@ -32,8 +34,8 @@
|
|||
android:layout_centerVertical="true"
|
||||
android:layout_toRightOf="@id/from_label"
|
||||
android:layout_toEndOf="@id/from_label"
|
||||
android:layout_marginRight="30dp"
|
||||
android:layout_marginEnd="30dp"
|
||||
android:layout_marginRight="36dp"
|
||||
android:layout_marginEnd="36dp"
|
||||
android:singleLine="true"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingBottom="10dp"
|
||||
|
@ -42,7 +44,7 @@
|
|||
/>
|
||||
|
||||
<ViewAnimator
|
||||
android:layout_width="32dp"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
|
@ -53,7 +55,6 @@
|
|||
android:outAnimation="@anim/fade_out"
|
||||
tools:visibility="visible">
|
||||
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -70,29 +71,116 @@
|
|||
android:tint="@color/openpgp_red"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/status_lock_open"
|
||||
android:tint="@color/openpgp_red"
|
||||
/>
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/status_lock_opportunistic"
|
||||
android:tint="@color/openpgp_orange"
|
||||
/>
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:src="@drawable/status_dots"
|
||||
android:tint="@color/openpgp_grey"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/status_lock_closed"
|
||||
android:tint="@color/openpgp_green"
|
||||
/>
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:src="@drawable/status_lock"
|
||||
android:tint="@color/openpgp_grey"
|
||||
/>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:src="@drawable/status_dots"
|
||||
android:tint="@color/openpgp_grey"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:src="@drawable/status_lock_error_dots_1"
|
||||
android:tint="@color/openpgp_red"
|
||||
/>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:src="@drawable/status_dots"
|
||||
android:tint="@color/openpgp_grey"
|
||||
/>
|
||||
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:src="@drawable/status_lock_disabled_dots_1"
|
||||
android:tint="@color/openpgp_red"
|
||||
/>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:src="@drawable/status_dots"
|
||||
android:tint="@color/openpgp_grey"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:src="@drawable/status_lock_dots_2"
|
||||
android:tint="@color/openpgp_orange"
|
||||
/>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:src="@drawable/status_dots"
|
||||
android:tint="@color/openpgp_grey"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left|center_vertical"
|
||||
android:src="@drawable/status_lock_dots_3"
|
||||
android:tint="@color/openpgp_green"
|
||||
/>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
|
|