diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-01-13 21:55:53 +0100 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-01-13 21:55:53 +0100 |
commit | 2e3545949ba9ab48ed21cb2198c9f0d2b8691ba2 (patch) | |
tree | 9fa1d871ca0197d244be974132e0141a64b799ac /OpenKeychain/src/main/res/values/styles.xml | |
parent | 2f0eb3fbd644291272829c15165193e0edb0906f (diff) | |
download | open-keychain-2e3545949ba9ab48ed21cb2198c9f0d2b8691ba2.tar.gz open-keychain-2e3545949ba9ab48ed21cb2198c9f0d2b8691ba2.tar.bz2 open-keychain-2e3545949ba9ab48ed21cb2198c9f0d2b8691ba2.zip |
Start working on Material Design
Diffstat (limited to 'OpenKeychain/src/main/res/values/styles.xml')
-rw-r--r-- | OpenKeychain/src/main/res/values/styles.xml | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/OpenKeychain/src/main/res/values/styles.xml b/OpenKeychain/src/main/res/values/styles.xml index 27cd1546a..11d2bfde4 100644 --- a/OpenKeychain/src/main/res/values/styles.xml +++ b/OpenKeychain/src/main/res/values/styles.xml @@ -2,7 +2,7 @@ <resources> <!-- Used in Android < 4 --> - <style name="KeychainTheme" parent="@style/Theme.AppCompat.Light"> + <style name="KeychainThemeOLD" parent="@style/Theme.AppCompat.Light"> <item name="android:alertDialogStyle">@style/CustomDialogTheme</item> </style> @@ -34,4 +34,35 @@ <item name="android:background">@drawable/selector_transparent_button</item> </style> + <!-- + Make Toolbar with white text and white overflow menu + http://www.murrayc.com/permalink/2014/10/28/android-changing-the-toolbars-text-color-and-overflow-icon-color/ + --> + <style name="KeychainToolbarOverflow" parent="KeychainTheme"> + <!-- android:textColorPrimary is the color of the title text + in the Toolbar, in the Theme.AppCompat theme: --> + <item name="android:textColorPrimary">@color/abc_primary_text_material_dark</item> + + <!-- android:textColorPrimaryInverse is the color of the title + text in the Toolbar, in the Theme.AppCompat.Light theme: --> + <!-- <item name="android:textColorPrimaryInverse">@color/abc_primary_text_material_light</item> --> + + <!-- android:actionMenuTextColor is the color of the text of + action (menu) items in the Toolbar, at least in the + Theme.AppCompat theme. + For some reason, they already get the textColorPrimary + when running on API 21, but not on older versions of + Android, so this is only necessary to support older + Android versions.--> + <item name="actionMenuTextColor">@color/abc_primary_text_material_dark</item> + <!-- android:textColorSecondary is the color of the menu + overflow icon (three vertical dots) --> + <item name="android:textColorSecondary">@color/abc_primary_text_material_dark</item> + + <!-- This would set the toolbar's background color, + but setting this also changes the popup menu's background, + even if we define popupTheme for our <Toolbar> --> + <!-- <item name="android:background">@color/color_primary</item> --> + </style> + </resources>
\ No newline at end of file |