Commit Graph

2543 Commits

Author SHA1 Message Date
Thialfihar
3b67c9d894 Rename updatePreferences() to upgradePreferences()
This is really an upgrade of the preference store and not an update of
values, it also is consistent with SQLiteOpenHelper.onUpgrade().
2015-07-21 20:56:42 +02:00
Thialfihar
86d95e4d40 Refactor theme preference values into constants
Also explicitly set a theme via preference updating to the default.
2015-07-21 20:56:42 +02:00
Thialfihar
8d2cd33339 Upgrade MaterialDrawer to 3.0.9 2015-07-21 20:56:42 +02:00
Thialfihar
d359431662 Fix color of selected text in drawer menu for light theme
The MaterialDrawerTheme.Light.ActionBar makes the drawer icon in the top
left black for some reason. A work-around is to set the primary colour
back to green, so it will be used for Theme.AppCompat.Light and override
the selected text colour for the dark theme.
2015-07-21 20:56:42 +02:00
Thialfihar
680799caa7 Fix drawer background color for ViewKeyActivity 2015-07-21 20:56:42 +02:00
Thialfihar
31eece0e27 Update recent decrypt changes to use new theme attributes 2015-07-21 20:56:42 +02:00
Thialfihar
17e8b663a8 Add forgotten docu to a new method 2015-07-21 20:56:42 +02:00
Thialfihar
e281fef1f1 Lowercase colors for consistency 2015-07-21 20:56:42 +02:00
Thialfihar
8227db3778 Make tab text and indicator themeable 2015-07-21 20:56:42 +02:00
Thialfihar
0d1d6542ea Make the log display honour the theme 2015-07-21 20:56:42 +02:00
Thialfihar
e267daf602 Make import keys activity honour the theme
This changes the light theme slightly as well, it uses the actual
background instead of pure white and removes the thick superfluous
divider on top.
The divider at the bottom now has no margin, making the separation from
the FrameLayout on top more consistent, especially when there is
scrollable content.
2015-07-21 20:56:41 +02:00
Thialfihar
506630552a Make CardView background themeable
However, CardViews displaying QR codes keep a fixed white background.
2015-07-21 20:56:41 +02:00
Thialfihar
1c3fbe9bbe Make bright toolbar themeable
Also remove a superfluous divider in the decrypt files fragment and the
unused drawer_custom_header.xml.

This changes the color of the toolbar in the light theme as well,
because its brightness didn't play well with the system status bar of
Android, drowning it in whiteness. Now it is still very light, but the
system bar is still faintly visible above it.
2015-07-21 20:56:41 +02:00
Thialfihar
7fab951175 Remove color black, as it isn't needed anymore 2015-07-21 20:56:41 +02:00
Thialfihar
d8d0030c0b Make help pages work in dark theme
This maintains the black-on-white theme of the HTML views even for the
dark theme.
2015-07-21 20:56:41 +02:00
Thialfihar
b60842a35b Make main text color themeable 2015-07-21 20:56:39 +02:00
Thialfihar
0af7d3c50b Give password strength indicator colors their own name
Also prune the android color definitions, most of which aren't used.
2015-07-21 20:56:21 +02:00
Thialfihar
dfe5a64fb0 Give key flag colors their own color names
This removes "bg_gray" and selector_transparent_button.xml, which is
unused and the last file to reference "bg_gray".
2015-07-21 20:56:12 +02:00
Thialfihar
6b8127ca94 Make cardview header divider themeable 2015-07-21 20:50:32 +02:00
Thialfihar
9f3ecf6bc0 Make log background themeable 2015-07-21 20:50:32 +02:00
Thialfihar
0f6acbd030 Make FAB colors themeable 2015-07-21 20:50:32 +02:00
Thialfihar
fe9c802bbb Make button row background themeable 2015-07-21 20:50:32 +02:00
Thialfihar
13983be799 Make header text and tertiary text color themeable 2015-07-21 20:50:32 +02:00
Thialfihar
58cb6bb4b7 Start moving colors into themes
Using attrs instead of fixed colors it will be possible to style
everything and also dynamically grab the color where needed in code.
This is done with colorEmphasis as an initial test.

Also remove several unused colors.
2015-07-21 20:49:08 +02:00
Thialfihar
4d412d53dc Automatically recreate activities on theme change 2015-07-21 20:49:08 +02:00
Thialfihar
e51eff4050 Add theme setting
This prepares that different themes can be added. Currently light and
dark will just use the default OK theme.
2015-07-21 20:49:08 +02:00
Adithya Abraham Philip
fe0b083bc5 fixed multi-deletion bug, moved logic into DeleteKeyDialogActivity 2015-07-15 20:16:07 +05:30
Adithya Abraham Philip
771d654766 made mSignatureTime optional in CryptoOperationHelper 2015-07-15 07:34:03 +05:30
Adithya Abraham Philip
03a30fe0e3 added revocation tag NO_REASON to all revocations via PgpKeyOperation 2015-07-14 00:02:53 +05:30
Adithya Abraham Philip
c1d2beb559 made PassphraseDialogActivity compatible with null CryptoInputParcel 2015-07-13 23:34:06 +05:30
Adithya Abraham Philip
c59196a6f1 upload only public key in revocation 2015-07-13 23:34:06 +05:30
Adithya Abraham Philip
8bbc5513d4 corrected DeleteKeyDialogActivity finishing on cancel 2015-07-13 23:34:06 +05:30
Adithya Abraham Philip
0cec75fc9d show key name on revoke/delete dialog 2015-07-13 23:34:06 +05:30
Adithya Abraham Philip
76500f47a3 made key deletion require double confirmation 2015-07-13 23:34:06 +05:30
Adithya Abraham Philip
b61a7d5535 added licenses, cleaned up code, fixed warnings 2015-07-13 23:34:06 +05:30
Adithya Abraham Philip
2827b1af16 added retry on upload failure 2015-07-13 23:34:06 +05:30
Adithya Abraham Philip
cdd9de99bf allowed operations to modify CryptoInputParcel they receive 2015-07-13 23:34:06 +05:30
Adithya Abraham Philip
faa66d6140 prevented passphrase caching on revocation 2015-07-13 23:34:06 +05:30
Adithya Abraham Philip
d1409fd5c8 use only one DeleteDialogActivity 2015-07-13 23:34:06 +05:30
Adithya Abraham Philip
fcd27d2600 implemented revocation on deletion 2015-07-13 23:34:06 +05:30
Dominik Schürmann
bfe36019bd Remove unused icon 2015-07-13 18:19:50 +02:00
Dominik Schürmann
56d599dd76 Use support.v7.app.AlertDialog 2015-07-13 13:37:04 +02:00
Adithya Abraham Philip
06091dffa9 check response code for upload error 2015-07-10 23:26:21 +05:30
Dominik Schürmann
bceda47d12 Tests not working anymore on travis after using new annotation parameter
Revert "Get rid of robolectric workaround by using new annotation in robolectric 3.0"

This reverts commit 85a47d22f9.
2015-07-09 13:16:30 +02:00
Dominik Schürmann
2299c03023 Fix strings nitpicks from transifex 2015-07-09 13:09:47 +02:00
Dominik Schürmann
85a47d22f9 Get rid of robolectric workaround by using new annotation in robolectric 3.0 2015-07-09 13:05:16 +02:00
Vincent Breitmoser
96dbb9e60c add pseudo-static id property to CryptoOperationHelper 2015-07-09 11:51:38 +02:00
Vincent Breitmoser
3b189fbe31 run queued operations in onViewStateRestored, *after* onActivityCreated 2015-07-09 02:35:54 +02:00
Vincent Breitmoser
7f9cc445fb cryptoophelper: requested code must be saved between instances! 2015-07-09 02:35:22 +02:00
Vincent Breitmoser
a549938b61 multi-decrypt: save currentInputUri state 2015-07-09 02:34:03 +02:00