aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/res
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2015-02-22 23:52:29 +0100
committerDominik Schürmann <dominik@dominikschuermann.de>2015-02-22 23:52:29 +0100
commite20c6add4398ffc0137fc637bb9897c2cd09cb18 (patch)
treeb72dfa0bf3a6f2ff22735bd61dadbf389739d2c2 /OpenKeychain/src/main/res
parentf852cb74499eb82eed2b82ae3192b35fae57f276 (diff)
downloadopen-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/res')
-rw-r--r--OpenKeychain/src/main/res/drawable-hdpi/ic_lock_white_24dp.pngbin0 -> 399 bytes
-rw-r--r--OpenKeychain/src/main/res/drawable-mdpi/ic_lock_white_24dp.pngbin0 -> 296 bytes
-rw-r--r--OpenKeychain/src/main/res/drawable-xhdpi/ic_lock_white_24dp.pngbin0 -> 465 bytes
-rw-r--r--OpenKeychain/src/main/res/drawable-xxhdpi/ic_lock_white_24dp.pngbin0 -> 760 bytes
-rw-r--r--OpenKeychain/src/main/res/drawable-xxxhdpi/ic_lock_white_24dp.pngbin0 -> 971 bytes
-rw-r--r--OpenKeychain/src/main/res/drawable/section_header.xml2
-rw-r--r--OpenKeychain/src/main/res/layout/foldable_linearlayout.xml2
-rw-r--r--OpenKeychain/src/main/res/menu/key_list_multi.xml5
-rw-r--r--OpenKeychain/src/main/res/values/colors.xml8
-rw-r--r--OpenKeychain/src/main/res/values/styles.xml2
-rw-r--r--OpenKeychain/src/main/res/values/themes.xml4
11 files changed, 11 insertions, 12 deletions
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
new file mode 100644
index 000000000..b94735ecb
--- /dev/null
+++ b/OpenKeychain/src/main/res/drawable-hdpi/ic_lock_white_24dp.png
Binary files differ
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
new file mode 100644
index 000000000..381b6a118
--- /dev/null
+++ b/OpenKeychain/src/main/res/drawable-mdpi/ic_lock_white_24dp.png
Binary files differ
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
new file mode 100644
index 000000000..c5e9d0b49
--- /dev/null
+++ b/OpenKeychain/src/main/res/drawable-xhdpi/ic_lock_white_24dp.png
Binary files differ
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
new file mode 100644
index 000000000..0dcada814
--- /dev/null
+++ b/OpenKeychain/src/main/res/drawable-xxhdpi/ic_lock_white_24dp.png
Binary files differ
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
new file mode 100644
index 000000000..a70c55b7e
--- /dev/null
+++ b/OpenKeychain/src/main/res/drawable-xxxhdpi/ic_lock_white_24dp.png
Binary files differ
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>