From e267daf602ad81d0fc0d476958ce6729c55e10b0 Mon Sep 17 00:00:00 2001 From: Thialfihar Date: Fri, 26 Jun 2015 14:47:59 +0200 Subject: 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. --- .../keychain/ui/adapter/ImportKeysAdapter.java | 6 +++--- .../src/main/res/layout/import_keys_activity.xml | 24 +++++----------------- 2 files changed, 8 insertions(+), 22 deletions(-) (limited to 'OpenKeychain/src/main') diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/ImportKeysAdapter.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/ImportKeysAdapter.java index cae82b445..0be7e8f76 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/ImportKeysAdapter.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/ImportKeysAdapter.java @@ -198,11 +198,11 @@ public class ImportKeysAdapter extends ArrayAdapter { if (entry.isSecretKey()) { holder.mainUserId.setTextColor(Color.RED); } else { - holder.mainUserId.setTextColor(Color.BLACK); + holder.mainUserId.setTextColor(FormattingUtils.getColorFromAttr(mActivity, R.attr.colorText)); } - holder.mainUserIdRest.setTextColor(Color.BLACK); - holder.keyId.setTextColor(Color.BLACK); + holder.mainUserIdRest.setTextColor(FormattingUtils.getColorFromAttr(mActivity, R.attr.colorText)); + holder.keyId.setTextColor(FormattingUtils.getColorFromAttr(mActivity, R.attr.colorText)); } if (entry.getUserIds().size() == 1) { diff --git a/OpenKeychain/src/main/res/layout/import_keys_activity.xml b/OpenKeychain/src/main/res/layout/import_keys_activity.xml index 332b95ce5..28bb8a0b8 100644 --- a/OpenKeychain/src/main/res/layout/import_keys_activity.xml +++ b/OpenKeychain/src/main/res/layout/import_keys_activity.xml @@ -25,21 +25,11 @@ android:id="@+id/import_keys_top_container" android:layout_width="match_parent" android:layout_height="64dp" - android:orientation="vertical" - android:background="@android:color/white" /> + android:orientation="vertical" /> - - - - + android:layout_weight="1" /> + android:orientation="vertical"> - \ No newline at end of file + -- cgit v1.2.3