diff options
author | Adithya Abraham Philip <adithyaphilip@gmail.com> | 2015-02-28 01:30:41 +0530 |
---|---|---|
committer | Adithya Abraham Philip <adithyaphilip@gmail.com> | 2015-02-28 01:30:41 +0530 |
commit | 960a1631857b6bbad2e6fedeab63fe7cc1edd063 (patch) | |
tree | fba94cdc31c9e5704c3da6795b2e65e833146647 /OpenKeychain/src/main/res | |
parent | d776bd2888907b3bc953f48e9c490afe8275c4e1 (diff) | |
parent | 2cd7be6373015e7e05d8418c997fa0c063c40c5a (diff) | |
download | open-keychain-960a1631857b6bbad2e6fedeab63fe7cc1edd063.tar.gz open-keychain-960a1631857b6bbad2e6fedeab63fe7cc1edd063.tar.bz2 open-keychain-960a1631857b6bbad2e6fedeab63fe7cc1edd063.zip |
Merge branch 'development' of https://github.com/open-keychain/open-keychain into development
Diffstat (limited to 'OpenKeychain/src/main/res')
11 files changed, 229 insertions, 159 deletions
diff --git a/OpenKeychain/src/main/res/layout/add_subkey_dialog.xml b/OpenKeychain/src/main/res/layout/add_subkey_dialog.xml index d52e72997..d32b1496f 100644 --- a/OpenKeychain/src/main/res/layout/add_subkey_dialog.xml +++ b/OpenKeychain/src/main/res/layout/add_subkey_dialog.xml @@ -6,10 +6,10 @@ <TableLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:paddingTop="8dp" - android:paddingBottom="8dp" - android:paddingLeft="16dp" - android:paddingRight="16dp" + android:paddingTop="16dp" + android:paddingBottom="16dp" + android:paddingLeft="24dp" + android:paddingRight="24dp" android:stretchColumns="1"> <TextView diff --git a/OpenKeychain/src/main/res/layout/add_user_id_dialog.xml b/OpenKeychain/src/main/res/layout/add_user_id_dialog.xml index 4560e0b9e..79137bf51 100644 --- a/OpenKeychain/src/main/res/layout/add_user_id_dialog.xml +++ b/OpenKeychain/src/main/res/layout/add_user_id_dialog.xml @@ -3,10 +3,10 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:paddingLeft="8dp" - android:paddingRight="8dp" - android:paddingTop="8dp" - android:paddingBottom="8dp"> + android:paddingTop="16dp" + android:paddingBottom="16dp" + android:paddingLeft="24dp" + android:paddingRight="24dp"> <org.sufficientlysecure.keychain.ui.widget.AutoCorrectAutoCompleteTextView android:id="@+id/add_user_id_address" diff --git a/OpenKeychain/src/main/res/layout/edit_subkey_expiry_dialog.xml b/OpenKeychain/src/main/res/layout/edit_subkey_expiry_dialog.xml index 8a713115e..a692db574 100644 --- a/OpenKeychain/src/main/res/layout/edit_subkey_expiry_dialog.xml +++ b/OpenKeychain/src/main/res/layout/edit_subkey_expiry_dialog.xml @@ -1,14 +1,15 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" + android:paddingTop="16dp" + android:paddingBottom="16dp" + android:paddingLeft="24dp" + android:paddingRight="24dp" android:layout_width="match_parent" android:layout_height="match_parent"> <CheckBox android:id="@+id/edit_subkey_expiry_no_expiry" - android:layout_marginTop="8dp" - android:layout_marginLeft="8dp" - android:layout_marginRight="8dp" android:checked="true" android:layout_width="match_parent" android:layout_height="wrap_content" diff --git a/OpenKeychain/src/main/res/layout/file_dialog.xml b/OpenKeychain/src/main/res/layout/file_dialog.xml index dcf711679..deefd0428 100644 --- a/OpenKeychain/src/main/res/layout/file_dialog.xml +++ b/OpenKeychain/src/main/res/layout/file_dialog.xml @@ -1,10 +1,12 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="fill_parent" + android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:paddingLeft="5dip" - android:paddingRight="5dip"> + android:paddingTop="16dp" + android:paddingBottom="16dp" + android:paddingLeft="24dp" + android:paddingRight="24dp"> <TextView android:id="@+id/message" @@ -25,10 +27,11 @@ android:layout_weight="1" android:gravity="top|left" android:inputType="textMultiLine|textUri" - android:lines="4" - android:maxLines="10" - android:minLines="2" - android:scrollbars="vertical" /> + android:lines="1" + android:maxLines="1" + android:minLines="1" + android:scrollbars="vertical" + android:layout_gravity="center_vertical" /> <ImageButton android:id="@+id/btn_browse" diff --git a/OpenKeychain/src/main/res/layout/passphrase_repeat_dialog.xml b/OpenKeychain/src/main/res/layout/passphrase_repeat_dialog.xml index 3a19dd452..09e37ee56 100644 --- a/OpenKeychain/src/main/res/layout/passphrase_repeat_dialog.xml +++ b/OpenKeychain/src/main/res/layout/passphrase_repeat_dialog.xml @@ -3,8 +3,10 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:paddingLeft="16dp" - android:paddingRight="16dp"> + android:paddingTop="16dp" + android:paddingBottom="16dp" + android:paddingLeft="24dp" + android:paddingRight="24dp"> <CheckBox android:id="@+id/passphrase_no_passphrase" diff --git a/OpenKeychain/src/main/res/layout/view_key_adv_main_fragment.xml b/OpenKeychain/src/main/res/layout/view_key_adv_main_fragment.xml index 6d0ed3298..d4272b816 100644 --- a/OpenKeychain/src/main/res/layout/view_key_adv_main_fragment.xml +++ b/OpenKeychain/src/main/res/layout/view_key_adv_main_fragment.xml @@ -71,94 +71,6 @@ android:layout_height="1dip" android:background="?android:attr/listDivider" /> - <TextView - android:id="@+id/view_key_action_edit" - android:paddingLeft="8dp" - android:paddingRight="8dp" - android:textAppearance="?android:attr/textAppearanceMedium" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:minHeight="?android:attr/listPreferredItemHeight" - android:clickable="true" - style="@style/SelectableItem" - android:text="@string/key_view_action_edit" - android:layout_weight="1" - android:drawableRight="@drawable/ic_action_edit" - android:drawablePadding="8dp" - android:gravity="center_vertical" /> - - <View - android:id="@+id/view_key_action_edit_divider" - android:layout_width="match_parent" - android:layout_height="1dip" - android:background="?android:attr/listDivider" /> - - - <LinearLayout - android:id="@+id/view_key_action_encrypt_text" - android:layout_width="match_parent" - android:layout_height="?android:attr/listPreferredItemHeight" - android:clickable="true" - style="@style/SelectableItem" - android:orientation="horizontal"> - - <TextView - android:id="@+id/view_key_action_encrypt_text_text" - android:paddingLeft="8dp" - android:paddingRight="8dp" - android:textAppearance="?android:attr/textAppearanceMedium" - android:layout_width="0dip" - android:layout_height="match_parent" - android:text="@string/key_view_action_encrypt" - android:layout_weight="1" - android:drawableRight="@drawable/ic_action_secure" - android:drawablePadding="8dp" - android:gravity="center_vertical" /> - - <View - android:layout_width="1dip" - android:layout_height="match_parent" - android:gravity="right" - android:layout_marginBottom="8dp" - android:layout_marginTop="8dp" - android:background="?android:attr/listDivider" /> - - <TextView - android:id="@+id/view_key_action_encrypt_files" - android:paddingLeft="8dp" - android:paddingRight="8dp" - android:textAppearance="?android:attr/textAppearanceMedium" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:text="@string/key_view_action_encrypt_files" - android:drawableRight="@drawable/ic_action_secure" - android:drawablePadding="8dp" - android:gravity="center_vertical" - style="@style/SelectableItem" /> - - </LinearLayout> - - <View - android:layout_width="match_parent" - android:layout_height="1dip" - android:background="?android:attr/listDivider" /> - - <TextView - android:id="@+id/view_key_action_update" - android:paddingLeft="8dp" - android:paddingRight="8dp" - android:textAppearance="?android:attr/textAppearanceMedium" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:minHeight="?android:attr/listPreferredItemHeight" - android:clickable="true" - style="@style/SelectableItem" - android:text="@string/key_view_action_update" - android:layout_weight="1" - android:drawableRight="@drawable/ic_action_download" - android:drawablePadding="8dp" - android:gravity="center_vertical" /> - </LinearLayout> </ScrollView> diff --git a/OpenKeychain/src/main/res/layout/view_key_adv_share_fragment.xml b/OpenKeychain/src/main/res/layout/view_key_adv_share_fragment.xml index cd8f96e6f..7b382dca5 100644 --- a/OpenKeychain/src/main/res/layout/view_key_adv_share_fragment.xml +++ b/OpenKeychain/src/main/res/layout/view_key_adv_share_fragment.xml @@ -1,4 +1,5 @@ <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:card_view="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent"> @@ -67,15 +68,26 @@ android:layout_height="1dip" android:background="?android:attr/listDivider" /> - <ImageView - android:id="@+id/view_key_fingerprint_qr_code_image" - android:paddingTop="8dp" - android:paddingBottom="8dp" + + <android.support.v7.widget.CardView + android:id="@+id/view_key_qr_code_layout" + android:transitionName="qr_code" + android:visibility="visible" android:layout_width="200dp" android:layout_height="200dp" android:layout_gravity="center_horizontal" android:layout_weight="1" - style="@style/SelectableItem" /> + android:clickable="true" + android:foreground="?android:attr/selectableItemBackground" + card_view:cardBackgroundColor="@android:color/white" + card_view:cardUseCompatPadding="true" + card_view:cardCornerRadius="4dp"> + + <ImageView + android:id="@+id/view_key_qr_code" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + </android.support.v7.widget.CardView> <TextView style="@style/SectionHeader" @@ -162,51 +174,6 @@ android:drawablePadding="8dp" android:gravity="center_vertical" /> - <View - android:layout_width="match_parent" - android:layout_height="1dip" - android:background="?android:attr/listDivider" /> - - <LinearLayout - android:id="@+id/view_key_action_nfc_help" - android:layout_width="match_parent" - android:layout_height="?android:attr/listPreferredItemHeight" - android:clickable="true" - style="@style/SelectableItem" - android:orientation="horizontal" - android:layout_marginBottom="8dp"> - - <TextView - android:paddingLeft="8dp" - android:paddingRight="8dp" - android:textAppearance="?android:attr/textAppearanceMedium" - android:layout_width="0dip" - android:layout_height="match_parent" - android:text="@string/key_view_action_share_nfc" - android:layout_weight="1" - android:drawableRight="@drawable/ic_action_help" - android:drawablePadding="8dp" - android:gravity="center_vertical" /> - - <View - android:layout_width="1dip" - android:layout_height="match_parent" - android:gravity="right" - android:layout_marginBottom="8dp" - android:layout_marginTop="8dp" - android:background="?android:attr/listDivider" /> - - <ImageButton - android:id="@+id/view_key_action_nfc_prefs" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:padding="8dp" - android:src="@drawable/ic_action_settings" - android:layout_gravity="center_vertical" - style="@style/SelectableItem" /> - - </LinearLayout> - </LinearLayout> </ScrollView> diff --git a/OpenKeychain/src/main/res/layout/view_key_delete_fragment.xml b/OpenKeychain/src/main/res/layout/view_key_delete_fragment.xml index bbc723bfa..1a6454f91 100644 --- a/OpenKeychain/src/main/res/layout/view_key_delete_fragment.xml +++ b/OpenKeychain/src/main/res/layout/view_key_delete_fragment.xml @@ -1,6 +1,10 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" + android:paddingTop="16dp" + android:paddingBottom="16dp" + android:paddingLeft="24dp" + android:paddingRight="24dp" android:layout_width="match_parent" android:layout_height="match_parent"> @@ -8,7 +12,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/mainMessage" - android:layout_margin="4dp" android:textAppearance="?android:textAppearanceMedium" /> </LinearLayout>
\ No newline at end of file diff --git a/OpenKeychain/src/main/res/layout/view_key_keybase_proof.xml b/OpenKeychain/src/main/res/layout/view_key_keybase_proof.xml new file mode 100644 index 000000000..0ffd151c1 --- /dev/null +++ b/OpenKeychain/src/main/res/layout/view_key_keybase_proof.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<TableRow xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" android:layout_height="match_parent"> + <TextView + android:id="@+id/proof_number" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingLeft="6dip" + android:text="1." + style="?android:attr/textAppearanceMedium" /> + + <TextView + android:id="@+id/proof_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingLeft="6dip" + android:text="Posts to twitter as Timbray" + style="?android:attr/textAppearanceMedium" /> +</TableRow> diff --git a/OpenKeychain/src/main/res/layout/view_key_trust_fragment.xml b/OpenKeychain/src/main/res/layout/view_key_trust_fragment.xml new file mode 100644 index 000000000..f97401271 --- /dev/null +++ b/OpenKeychain/src/main/res/layout/view_key_trust_fragment.xml @@ -0,0 +1,105 @@ +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <!-- focusable and related properties to workaround http://stackoverflow.com/q/16182331--> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:focusable="true" + android:focusableInTouchMode="true" + android:descendantFocusability="beforeDescendants" + android:orientation="vertical" + android:paddingLeft="16dp" + android:paddingRight="16dp"> + + <TextView + style="@style/SectionHeader" + android:layout_width="wrap_content" + android:layout_height="0dp" + android:layout_marginTop="8dp" + android:text="@string/section_should_you_trust" + android:layout_weight="1" /> + + <TextView + android:id="@+id/view_key_trust_readout" + android:layout_width="wrap_content" + android:layout_height="0dp" + android:layout_marginTop="14dp" + android:layout_marginLeft="8dp" + android:layout_weight="1" + style="?android:attr/textAppearanceMedium"/> + + <TextView + style="@style/SectionHeader" + android:layout_width="wrap_content" + android:layout_height="0dp" + android:layout_marginTop="14dp" + android:text="@string/section_cloud_evidence" + android:layout_weight="1" /> + + <LinearLayout + android:id="@+id/view_key_trust_search_cloud" + android:layout_width="match_parent" + android:layout_height="?android:attr/listPreferredItemHeight" + android:clickable="true" + android:paddingRight="4dp" + style="@style/SelectableItem" + android:orientation="horizontal"> + + <TextView + android:paddingLeft="8dp" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_width="0dip" + android:layout_height="match_parent" + android:text="@string/key_trust_start_cloud_search" + android:layout_weight="1" + android:gravity="center_vertical" /> + + <ImageView + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:padding="8dp" + android:src="@drawable/ic_action_search_cloud" + android:layout_gravity="center_vertical" /> + + </LinearLayout> + + + <TextView + android:id="@+id/view_key_trust_cloud_narrative" + android:layout_width="wrap_content" + android:layout_height="0dp" + android:layout_marginTop="14dp" + android:layout_marginBottom="14dp" + android:layout_marginLeft="8dp" + android:layout_weight="1" + style="?android:attr/textAppearanceMedium" /> + + <TableLayout + android:id="@+id/view_key_proof_list" + android:layout_width="match_parent" + android:layout_height="wrap_content"/> + + <TextView + android:id="@+id/view_key_proof_verify_header" + style="@style/SectionHeader" + android:layout_width="wrap_content" + android:layout_height="0dp" + android:layout_marginTop="16dp" + android:text="@string/section_proof_details" + android:layout_weight="1" /> + + <TextView + android:id="@+id/view_key_proof_verify_detail" + android:layout_width="wrap_content" + android:layout_height="0dp" + android:layout_marginTop="14dp" + android:layout_marginLeft="8dp" + android:layout_weight="1" + style="?android:attr/textAppearanceMedium"/> + + + </LinearLayout> + +</ScrollView> diff --git a/OpenKeychain/src/main/res/values/strings.xml b/OpenKeychain/src/main/res/values/strings.xml index 700f1d167..10a53f0b7 100644 --- a/OpenKeychain/src/main/res/values/strings.xml +++ b/OpenKeychain/src/main/res/values/strings.xml @@ -46,6 +46,9 @@ <!-- section --> <string name="section_user_ids">"Identities"</string> + <string name="section_should_you_trust">"Should you trust this key?"</string> + <string name="section_proof_details">Proof verification</string> + <string name="section_cloud_evidence">"Evidence from the cloud"</string> <string name="section_keys">"Subkeys"</string> <string name="section_cloud_search">"Cloud search"</string> <string name="section_general">"General"</string> @@ -545,6 +548,7 @@ <string name="key_view_tab_share">"Share"</string> <string name="key_view_tab_keys">"Subkeys"</string> <string name="key_view_tab_certs">"Certificates"</string> + <string name="key_view_tab_keybase">"Keybase.io"</string> <string name="user_id_info_revoked_title">"Revoked"</string> <string name="user_id_info_revoked_text">"This identity has been revoked by the key owner. It is no longer valid."</string> <string name="user_id_info_certified_title">"Certified"</string> @@ -554,6 +558,47 @@ <string name="user_id_info_invalid_title">"Invalid"</string> <string name="user_id_info_invalid_text">"Something is wrong with this identity!"</string> + <!-- Key trust --> + <string name="key_trust_already_verified">"You have already certified this key!"</string> + <string name="key_trust_it_is_yours">"This is one of your keys!"</string> + <string name="key_trust_maybe">"This key is neither revoked nor expired.\nYou haven’t certified it, but you may choose to trust it."</string> + <string name="key_trust_revoked">"This key has been revoked by its owner. You should not trust it."</string> + <string name="key_trust_expired">"This key has expired. You should not trust it."</string> + <string name="key_trust_old_keys">" It may be OK to use this to decrypt an old message dating from the time when this key was valid."</string> + <string name="key_trust_no_cloud_evidence">"No evidence from the cloud on this key’s trustworthiness."</string> + <string name="key_trust_start_cloud_search">"Start search"</string> + <string name="key_trust_results_prefix">"Keybase.io offers “proofs” which assert that the owner of this key: "</string> + + <!-- keybase proof stuff --> + <string name="keybase_narrative_twitter">"Posts to Twitter as"</string> + <string name="keybase_narrative_github">"Is known on GitHub as"</string> + <string name="keybase_narrative_dns">"Controls the domain name(s)"</string> + <string name="keybase_narrative_web_site">"Can post to the Web site(s)"</string> + <string name="keybase_narrative_reddit">"Posts to Reddit as"</string> + <string name="keybase_narrative_coinbase">"Is known on Coinbase as"</string> + <string name="keybase_narrative_hackernews">"Posts to Hacker News as"</string> + <string name="keybase_narrative_unknown">"Unknown proof type"</string> + <string name="keybase_proof_failure">"Unfortunately this proof cannot be verified."</string> + <string name="keybase_unknown_proof_failure">"Unrecognized problem with proof checker"</string> + <string name="keybase_problem_fetching_evidence">"Problem with proof evidence"</string> + <string name="keybase_key_mismatch">"Key fingerprint doesn’t match that in proof post"</string> + <string name="keybase_dns_query_failure">"DNS TXT Record retrieval failed"</string> + <string name="keybase_no_prover_found">"No proof checker found for"</string> + <string name="keybase_message_payload_mismatch">"Decrypted proof post does not match expected value"</string> + <string name="keybase_message_fetching_data">"Fetching proof evidence"</string> + <string name="keybase_proof_succeeded">"This proof has been verified!"</string> + <string name="keybase_a_post">"A post"</string> + <string name="keybase_fetched_from">"fetched from"</string> + <string name="keybase_for_the_domain">"for the domain"</string> + <string name="keybase_contained_signature">"contains a message which could only have been created by the owner of this key."</string> + <string name="keybase_twitter_proof">"A tweet"</string> + <string name="keybase_dns_proof">"A DNS TXT record"</string> + <string name="keybase_web_site_proof">"A text file"</string> + <string name="keybase_github_proof">"A gist"</string> + <string name="keybase_reddit_proof">"A JSON file"</string> + <string name="keybase_reddit_attribution">"attributed by Reddit to"</string> + <string name="keybase_verify">"Verify"</string> + <!-- Edit key --> <string name="edit_key_action_change_passphrase">"Change Passphrase"</string> <string name="edit_key_action_add_identity">"Add Identity"</string> @@ -978,6 +1023,19 @@ <string name="msg_dc_trail_unknown">"Encountered trailing data of unknown type"</string> <string name="msg_dc_unlocking">"Unlocking secret key"</string> + <!-- Messages for VerifySignedLiteralData operation --> + <string name="msg_vl">"Starting signature check"</string> + <string name="msg_vl_error_no_siglist">"No signature list in signed literal data"</string> + <string name="msg_vl_error_wrong_key">"Message not signed with right key"</string> + <string name="msg_vl_error_missing_literal">"No payload in signed literal data"</string> + <string name="msg_vl_clear_meta_file">"Filename: %s"</string> + <string name="msg_vl_clear_meta_mime">"MIME type: %s"</string> + <string name="msg_vl_clear_meta_time">"Modification time: %s"</string> + <string name="msg_vl_clear_meta_size">"Filesize: %s"</string> + <string name="msg_vl_clear_signature_check">"Verifying signature data"</string> + <string name="msg_vl_error_integrity_check">"Integrity check error!"</string> + <string name="msg_vl_ok">"OK"</string> + <!-- Messages for SignEncrypt operation --> <string name="msg_se">"Starting sign/encrypt operation"</string> <string name="msg_se_input_bytes">"Processing input from byte array"</string> |