diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-02-22 23:52:29 +0100 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-02-22 23:52:29 +0100 |
commit | e20c6add4398ffc0137fc637bb9897c2cd09cb18 (patch) | |
tree | b72dfa0bf3a6f2ff22735bd61dadbf389739d2c2 /OpenKeychain/src/main | |
parent | f852cb74499eb82eed2b82ae3192b35fae57f276 (diff) | |
download | open-keychain-e20c6add4398ffc0137fc637bb9897c2cd09cb18.tar.gz open-keychain-e20c6add4398ffc0137fc637bb9897c2cd09cb18.tar.bz2 open-keychain-e20c6add4398ffc0137fc637bb9897c2cd09cb18.zip |
Fix multi select and more colors
Diffstat (limited to 'OpenKeychain/src/main')
15 files changed, 14 insertions, 19 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/KeychainApplication.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/KeychainApplication.java index 957ce4b23..01f6735ea 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/KeychainApplication.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/KeychainApplication.java @@ -86,7 +86,7 @@ public class KeychainApplication extends Application { } brandGlowEffect(getApplicationContext(), - getApplicationContext().getResources().getColor(R.color.emphasis)); + getApplicationContext().getResources().getColor(R.color.primary)); setupAccountAsNeeded(this); diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/MainActivity.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/MainActivity.java index f3bf337c9..2f29f9360 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/MainActivity.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/MainActivity.java @@ -31,8 +31,6 @@ public class MainActivity extends NavDrawerActivity { public void init(Bundle savedInstanceState) { super.init(savedInstanceState); - setTitle(R.string.nav_keys); - // if this is the first time show first time activity Preferences prefs = Preferences.getPreferences(this); if (prefs.isFirstTime()) { diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/NavDrawerActivity.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/NavDrawerActivity.java index 1bd1f0085..fb23c7d3a 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/NavDrawerActivity.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/NavDrawerActivity.java @@ -24,8 +24,6 @@ import org.sufficientlysecure.keychain.R; import org.sufficientlysecure.keychain.remote.ui.AppsListFragment; import it.neokree.materialnavigationdrawer.MaterialNavigationDrawer; -import it.neokree.materialnavigationdrawer.elements.MaterialSection; -import it.neokree.materialnavigationdrawer.elements.listeners.MaterialSectionListener; public abstract class NavDrawerActivity extends MaterialNavigationDrawer { diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/CustomAlertDialogBuilder.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/CustomAlertDialogBuilder.java index aa27e8391..d405b1dda 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/CustomAlertDialogBuilder.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/CustomAlertDialogBuilder.java @@ -26,13 +26,13 @@ public class CustomAlertDialogBuilder extends AlertDialog.Builder { int dividerId = dialog.getContext().getResources().getIdentifier("android:id/titleDivider", null, null); View divider = dialog.findViewById(dividerId); if (divider != null) { - divider.setBackgroundColor(dialog.getContext().getResources().getColor(R.color.emphasis)); + divider.setBackgroundColor(dialog.getContext().getResources().getColor(R.color.header_text)); } int textViewId = dialog.getContext().getResources().getIdentifier("android:id/alertTitle", null, null); TextView tv = (TextView) dialog.findViewById(textViewId); if (tv != null) { - tv.setTextColor(dialog.getContext().getResources().getColor(R.color.emphasis)); + tv.setTextColor(dialog.getContext().getResources().getColor(R.color.header_text)); } return dialog; diff --git a/OpenKeychain/src/main/res/drawable-hdpi/ic_lock_white_24dp.png b/OpenKeychain/src/main/res/drawable-hdpi/ic_lock_white_24dp.png Binary files differnew file mode 100644 index 000000000..b94735ecb --- /dev/null +++ b/OpenKeychain/src/main/res/drawable-hdpi/ic_lock_white_24dp.png diff --git a/OpenKeychain/src/main/res/drawable-mdpi/ic_lock_white_24dp.png b/OpenKeychain/src/main/res/drawable-mdpi/ic_lock_white_24dp.png Binary files differnew file mode 100644 index 000000000..381b6a118 --- /dev/null +++ b/OpenKeychain/src/main/res/drawable-mdpi/ic_lock_white_24dp.png diff --git a/OpenKeychain/src/main/res/drawable-xhdpi/ic_lock_white_24dp.png b/OpenKeychain/src/main/res/drawable-xhdpi/ic_lock_white_24dp.png Binary files differnew file mode 100644 index 000000000..c5e9d0b49 --- /dev/null +++ b/OpenKeychain/src/main/res/drawable-xhdpi/ic_lock_white_24dp.png diff --git a/OpenKeychain/src/main/res/drawable-xxhdpi/ic_lock_white_24dp.png b/OpenKeychain/src/main/res/drawable-xxhdpi/ic_lock_white_24dp.png Binary files differnew file mode 100644 index 000000000..0dcada814 --- /dev/null +++ b/OpenKeychain/src/main/res/drawable-xxhdpi/ic_lock_white_24dp.png diff --git a/OpenKeychain/src/main/res/drawable-xxxhdpi/ic_lock_white_24dp.png b/OpenKeychain/src/main/res/drawable-xxxhdpi/ic_lock_white_24dp.png Binary files differnew file mode 100644 index 000000000..a70c55b7e --- /dev/null +++ b/OpenKeychain/src/main/res/drawable-xxxhdpi/ic_lock_white_24dp.png diff --git a/OpenKeychain/src/main/res/drawable/section_header.xml b/OpenKeychain/src/main/res/drawable/section_header.xml index a4468484e..04d3d4957 100644 --- a/OpenKeychain/src/main/res/drawable/section_header.xml +++ b/OpenKeychain/src/main/res/drawable/section_header.xml @@ -6,6 +6,6 @@ android:height="2dp" android:width="1000dp" /> - <solid android:color="@color/emphasis" /> + <solid android:color="@color/header_text" /> </shape>
\ No newline at end of file diff --git a/OpenKeychain/src/main/res/layout/foldable_linearlayout.xml b/OpenKeychain/src/main/res/layout/foldable_linearlayout.xml index cddc98ac5..773a9d416 100644 --- a/OpenKeychain/src/main/res/layout/foldable_linearlayout.xml +++ b/OpenKeychain/src/main/res/layout/foldable_linearlayout.xml @@ -25,7 +25,7 @@ android:layout_height="wrap_content" android:text="@string/none" android:layout_gravity="center_vertical" - android:textColor="@color/emphasis" /> + android:textColor="@color/header_text" /> </LinearLayout> <LinearLayout diff --git a/OpenKeychain/src/main/res/menu/key_list_multi.xml b/OpenKeychain/src/main/res/menu/key_list_multi.xml index 3e0f87692..7fdf4a5c1 100644 --- a/OpenKeychain/src/main/res/menu/key_list_multi.xml +++ b/OpenKeychain/src/main/res/menu/key_list_multi.xml @@ -4,26 +4,23 @@ <item android:id="@+id/menu_key_list_multi_encrypt" - android:icon="@drawable/ic_action_secure" + android:icon="@drawable/ic_lock_white_24dp" android:title="@string/menu_encrypt_to" /> <item android:id="@+id/menu_key_list_multi_export" - android:icon="@drawable/ic_action_import_export" android:showAsAction="never" tools:ignore="AppCompatResource" android:title="@string/menu_export_key" /> <item android:id="@+id/menu_key_list_multi_delete" - android:icon="@drawable/ic_action_discard" android:showAsAction="never" tools:ignore="AppCompatResource" android:title="@string/menu_delete_key" /> <item android:id="@+id/menu_key_list_multi_select_all" - android:icon="@drawable/ic_action_select_all" android:showAsAction="never" tools:ignore="AppCompatResource" android:title="@string/menu_select_all" /> diff --git a/OpenKeychain/src/main/res/values/colors.xml b/OpenKeychain/src/main/res/values/colors.xml index 006b9b9b5..895273967 100644 --- a/OpenKeychain/src/main/res/values/colors.xml +++ b/OpenKeychain/src/main/res/values/colors.xml @@ -14,16 +14,16 @@ <!-- Other colors --> <color name="primary_light">#C8E6C9</color> - <color name="fab">#2196F3</color> + <color name="fab">@color/accent</color> <color name="fab_pressed">#1976D2</color> <color name="primary_text">#212121</color> <color name="secondary_text">#727272</color> <color name="icons">#FFFFFF</color> <color name="divider">#B6B6B6</color> - <!-- set to text colors --> - <color name="emphasis">#212121</color> - <color name="emphasis_dark">#727272</color> + <color name="header_text">#212121</color> + <!-- item selection, search highlight --> + <color name="emphasis">@color/accent</color> <color name="bg_gray">#cecbce</color> <color name="tertiary_text_light">#808080</color> diff --git a/OpenKeychain/src/main/res/values/styles.xml b/OpenKeychain/src/main/res/values/styles.xml index 03ccce85e..f05bdb0ff 100644 --- a/OpenKeychain/src/main/res/values/styles.xml +++ b/OpenKeychain/src/main/res/values/styles.xml @@ -26,7 +26,7 @@ <item name="android:layout_marginTop">8dp</item> <item name="android:paddingLeft">8dp</item> <item name="android:textStyle">bold</item> - <item name="android:textColor">@color/emphasis</item> + <item name="android:textColor">@color/header_text</item> <item name="android:textSize">14sp</item> </style> diff --git a/OpenKeychain/src/main/res/values/themes.xml b/OpenKeychain/src/main/res/values/themes.xml index 147bd8d4c..da616492c 100644 --- a/OpenKeychain/src/main/res/values/themes.xml +++ b/OpenKeychain/src/main/res/values/themes.xml @@ -12,12 +12,14 @@ <item name="android:windowNoTitle">true</item> <!-- remove actionbar, we use toolbar! --> <item name="windowActionBar">false</item> + <!-- multi selection should overlay Toolbar! http://stackoverflow.com/a/26450875 --> + <item name="windowActionModeOverlay">true</item> <item name="searchViewStyle">@style/MySearchViewStyle</item> <!-- Navigation Drawer library --> <item name="drawerType">@integer/DRAWERTYPE_IMAGE</item> <!-- dark action bar... --> - <item name="theme">@style/ThemeOverlay.AppCompat.Dark.ActionBar</item> + <item name="theme">@style/ThemeOverlay.AppCompat.Dark</item> <!-- ...but light popup menu (white background) --> <item name="popupTheme">@style/ThemeOverlay.AppCompat.Light</item> <item name="drawerColor">#fafafa</item> |