Commit Graph
79 Commits
Author SHA1 Message Date
Thialfihar a4470abc10 Refactor theme selection of dialogs
This makes sure the dark theme also uses dark dialogs.
2015-07-21 22:47:55 +02:00
Thialfihar 313188c695 Fix key view toolbar and status colour
The status bar wrongly used the same colour as the toolbar, making it
indistinguishable from it. This calculates the status bar colour based
on the toolbar colour.
2015-07-21 22:47:55 +02:00
Thialfihar 3a810676fc Fix preference version handling
Move preference upgrade of theme to version 4 of the preferences. The
upgrade is meant FROM that version to the next.
2015-07-21 20:56:42 +02:00
Thialfihar 1183d6f30c Use a constant for the default value of the theme 2015-07-21 20:56:42 +02:00
Thialfihar 306d20f977 Refactor theme changing to avoid code repetition 2015-07-21 20:56:42 +02:00
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 7df68919a9 Adjust checkstyle for new directory 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
Thialfihar e8c10b9b5d Make app name reflect debug builds 2015-06-26 15:06:47 +02:00
Thialfihar 2857de4d5a Import R and BuildConfig explicitly 2015-06-26 14:56:47 +02:00
Thialfihar 1386282840 Rename mCurQuery to mQuery for consistency 2014-05-16 11:38:43 +02:00
Thialfihar 84b754341d Use Highlighter instead of HighlightQueryCursorAdapter 2014-05-16 11:38:43 +02:00
Thialfihar 69ce66be94 Add highlighting to keyserver/keybase search 2014-05-16 11:38:43 +02:00
Thialfihar ab81d8903a Support mutliple search words and highlight them
For the regex matching it would be smart to sort the words by length,
so the longest matches come first. This only matters for queries with
words containing parts of each other, which is an unlikely event and
even then it doesn't break anything.
2014-05-16 11:38:12 +02:00
Thialfihar b8462de6e5 Rename fingerPrint to fingerprint 2014-05-14 17:22:53 +02:00
Thialfihar 73acb69208 Add github, twitter, website info for keybase keys
The very point of keybase.io is the identification and proven link
to those identities, so it should be nice to have them.
The display is a bit basic still, as it just adds them as userIds,
I'm sure this can be prettified, perhaps with logos?
2014-05-14 17:21:27 +02:00
Thialfihar 2480844884 Cleanup keybase query a bit
Remove ctime and the cached key, making the query for the entire user
object unnecessary. This should only be done when the user decides to
import the key. Hopefully keybase.io can provide all info necessary in
the search results.
2014-05-14 17:21:27 +02:00
Thialfihar 056a6dd347 Don't guess keybase key algorithm and size
Once keybase reports them, we can display them. Until then we simply
don't know and shouldn't lie about it.
2014-05-14 14:28:54 +02:00
Thialfihar 6162247155 Add extraData property in ImportKeyListEntry
This allows any KeyServer to store some extra data it might need.
In the case of KeybaseKeyServer it is the username, which then can
be grabbed directly, without the hack of storing it as userId.
2014-05-14 14:28:41 +02:00
Thialfihar d50e798c13 List full keybase id or strong key id matches on top 2014-05-14 14:28:26 +02:00
Thialfihar f4a8e71c33 Make keybase lookup works for key ids starting with 0x 2014-05-14 14:28:13 +02:00
Thialfihar 1f7c61a331 Rename setter methods for PgpDecryptVerify.Builder 2014-04-29 19:01:11 +02:00
Thialfihar 324971e448 Rename setter methods for PgpSignEncrypt.Builder 2014-04-29 18:57:43 +02:00
Thialfihar 9e6bf2abbb Rename ProgressDialogUpdater to Progressable
Also fix some inconsistent usages of "progress", now using
"progressable" in all builders.
2014-04-29 18:44:44 +02:00
Thialfihar 6a1832ebad Move util.ProgressDialogUpdater to pgp.Progressable 2014-04-29 18:32:13 +02:00
Thialfihar f2d8378d81 Change license from ASLv2 to GPLv3 where possible 2014-04-08 11:59:35 +02:00
Thialfihar 42faf0eb07 Update copyright timespan for Thialfihar 2014-04-08 11:59:35 +02:00
Thialfihar a523f53a96 Simplify PassphraseDialogFragment usage
Move boiler plate code into a simple static show() method, which only
requires a Handler and can be used ad hoc in any FragmentActivity.
2014-04-04 18:26:23 +02:00
Thialfihar 7a66ccb5ee Rename "canEdit" to "canBeEdited" 2014-04-02 15:43:29 +02:00
Thialfihar c4c9713da4 Rename "armour" to "armor" 2014-04-02 15:36:32 +02:00
Thialfihar 6ac13d9f69 Rename "pass phrase" to "passphrase" 2014-04-02 15:32:35 +02:00
Thialfihar c45c0f4a92 Add wildcard import warning to checkstyle configuration 2014-04-02 13:37:12 +02:00
Thialfihar 77a6c509f7 Replace wildcard imports with explicit imports 2014-04-02 13:37:12 +02:00
Thialfihar a3a5085afb Spacing corrections 2014-04-02 13:37:12 +02:00
Thialfihar 22fe3832ba Suppress checkstyle for some files 2014-04-02 10:51:02 +02:00
Thialfihar 592ab31d86 Add missing and curly brackets and fix others
Style guide demands them even for single-line blocks, and opening
curly brackets never appear on a line on their own.
2014-04-02 10:51:02 +02:00
Thialfihar 82e5d14fb1 Rearrange too long lines 2014-04-02 10:51:02 +02:00
Thialfihar d5983b324f Adjust variable/member naming to conform to style guide
In some cases change member accessibility, so the naming matches.
Also, some key words were reordered to comply with JLS suggestions.
2014-04-02 10:51:02 +02:00
Thialfihar dd4a1e3f52 Trivial spacing changes to conform to style guide 2014-04-02 10:51:02 +02:00
Thialfihar 8e503bd263 Adjust copyright headers 2014-04-02 10:51:02 +02:00
Thialfihar e92658f44d Adjust import order 2014-04-02 10:51:02 +02:00
Thialfihar 0867d1f078 Change the getting started text
"My Keys" is now wrapped into "Contacts".
2014-03-24 00:29:46 +01:00
Thialfihar 7d5896b107 Add recent contributors to credits 2014-03-24 00:24:43 +01:00
Thialfihar c9053b97a8 Rename old mentionings of APG-named things
Mostly in comments, most importantly: STORE_PATH now ends in
/KeychainBlobs instead of /ApgBlobs
2014-03-23 21:58:18 +01:00
Thialfihar 9d4582f968 Update README.md, icon set not used anymore 2014-03-23 19:52:25 +01:00
Thialfihar 3dfcb037dc Remove icon set credits 2014-03-23 19:51:29 +01:00
Thialfihar a2048773ee Fix file decryption interface
Actually use mAssumeSymmetricEncryption and set it to false as
default. Don't close the file input stream, so we can actually
look for PGP encrypted data in the next step.
2014-03-23 19:40:09 +01:00
Thialfihar 60998f114c Adjust encrypt layout, align signature with button 2014-03-23 19:39:18 +01:00
Thialfihar 900e8ce990 Adjust credits 2014-03-23 12:32:13 +01:00
Thialfihar f5ecd2ae46 Move fingerprint up below the algorithm in key view
This makes it consistent with the key list entry layout and it also
makes more sense, as it belongs to key identification.
2014-03-20 18:40:30 +01:00
Thialfihar 602fb654af Move fingerprint to the right in key list entry
Fits much better there and doesn't separate the user ID.
2014-03-20 18:40:29 +01:00
Thialfihar a17481b80a Group fingerprint again to make it visually consistent 2014-03-20 18:40:29 +01:00
Thialfihar 3fa3fc444b Add debug logging for hkp keyserver actions 2014-03-20 14:21:21 +01:00
Thialfihar 16ae9c8999 Let convertKeyIdToHex handle short key IDs
If a short key ID is given, then it should only be displayed as such.
2014-03-20 14:19:33 +01:00
Thialfihar 62fb1fb579 Fix key list views in main key view
Since the views are being reused, a revoked key might set the text
color of a view and when the view is being reused for a non-revoked
key it is still red. So grab the default text colour and set it
explicitly when the key is not revoked.
2014-03-20 00:37:03 +01:00