Skip to content

Commit 4afdb86

Browse files
author
Limon Monte
committed
Improve wording, make import buttons orange
1 parent 13f5e2c commit 4afdb86

File tree

5 files changed

+22
-12
lines changed

5 files changed

+22
-12
lines changed

extension/chrome/elements/add_pubkey.htm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@ <h1>Add a pubkey to email address</h1>
3737
<div class="line">
3838
<textarea class="pubkey" placeholder="ASCII Armored Public Key" spellcheck="false" data-test="input-pubkey"></textarea>
3939
</div>
40+
<div class="line orange">
41+
Manually importing Public Keys can be dangerous
42+
</div>
4043
<div class="line">
41-
<button class="button long green action_ok" data-test="action-add-pubkey">OK</button>
44+
<button class="button long orange action_ok" data-test="action-add-pubkey">OK</button>
4245
<button class="button long gray action_settings">SETTINGS</button>
4346
<button class="button long gray action_close">CLOSE</button>
4447
</div>

extension/chrome/elements/pgp_pubkey.htm

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@
2020
<div class="line fingerprints hide_if_compact">Fingerprint: <span class="fingerprint good"></span></div>
2121
<div class="line add_contact">
2222
<input class="input_email" data-test="input-email" value="..." />
23-
<button class="button green action_add_contact" data-test="action-add-contact"></button>
24-
<div class="mt-10">
25-
<span class="orange">
26-
Manually importing Public Keys received over email can be dangerous. <br>
27-
Contact the sender to verify that the fingerprint matches.
28-
</span>
29-
</div>
23+
<button class="button orange action_add_contact" data-test="action-add-contact"></button>
24+
</div>
25+
<div class="mt-10 orange hide_if_compact">
26+
Manually importing Public Keys received over email can be dangerous. <br>
27+
Contact the sender to verify that the fingerprint matches.
3028
</div>
3129
<pre class="pubkey hide_if_compact"></pre>
3230
</div>

extension/chrome/settings/modules/contacts.htm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,14 @@ <h1></h1>
4343
</div>
4444

4545
<div id="bulk_import" style="display: none;">
46+
<div class="line orange">
47+
Manually importing Public Keys can be dangerous
48+
</div>
4649
<div class="line" id="file_import">
4750
<a id="fineuploader_button" href="#">Select a file</a> or paste public key(s) below:
4851
<div id="fineuploader" class="display_none"></div>
4952
</div>
50-
<div id="processed"></div>
53+
<div id="processed" class="mt-20"></div>
5154
<div class="line">
5255
<textarea class="input_pubkey"
5356
data-test="input-bulk-public-keys"

extension/chrome/settings/modules/contacts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ View.run(class ContactsView extends View {
265265
}
266266
}
267267
container.css('display', 'block');
268-
$('#bulk_import .input_pubkey, #bulk_import .action_process, #file_import #fineuploader_button').css('display', 'none');
268+
$('#bulk_import .input_pubkey, #bulk_import .action_process, #file_import, #fineuploader_button').css('display', 'none');
269269
}
270270
} catch (e) {
271271
ApiErr.reportIfSignificant(e);

extension/css/cryptup.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ span.red { color: #d14836; }
5454
.line.orange,
5555
td.orange,
5656
b.orange,
57+
div.orange,
5758
span.orange { color: #c27e23; }
5859

5960
.line.green,
@@ -140,6 +141,11 @@ span.gray { color: #b7b7b7; }
140141
color: white;
141142
}
142143

144+
.button.orange {
145+
background: #d18826;
146+
color: white;
147+
}
148+
143149
.swal2-container.ui-toast-container {
144150
width: 77%;
145151
}
@@ -1046,8 +1052,8 @@ body#settings > div#content.dialog.add_pubkey select.copy_from_email {
10461052

10471053
body#settings > div#content.dialog.add_pubkey textarea.pubkey {
10481054
width: 500px;
1049-
height: 340px;
1050-
font-size: 10px;
1055+
height: 300px;
1056+
font-size: 12px;
10511057
padding: 8px;
10521058
}
10531059

0 commit comments

Comments
 (0)