aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/res/values/themes.xml
diff options
context:
space:
mode:
authorThialfihar <thi@thialfihar.org>2015-06-25 15:17:32 +0200
committerThialfihar <thi@thialfihar.org>2015-07-21 20:49:08 +0200
commite51eff40503a9715a98f7d1fb41c3a607b8f67d0 (patch)
tree445a1baadb0f69b3d701a180557f9ace7c670266 /OpenKeychain/src/main/res/values/themes.xml
parente4b113701cfd12b89a18365491b50f6508184bc2 (diff)
downloadopen-keychain-e51eff40503a9715a98f7d1fb41c3a607b8f67d0.tar.gz
open-keychain-e51eff40503a9715a98f7d1fb41c3a607b8f67d0.tar.bz2
open-keychain-e51eff40503a9715a98f7d1fb41c3a607b8f67d0.zip
Add theme setting
This prepares that different themes can be added. Currently light and dark will just use the default OK theme.
Diffstat (limited to 'OpenKeychain/src/main/res/values/themes.xml')
-rw-r--r--OpenKeychain/src/main/res/values/themes.xml23
1 files changed, 20 insertions, 3 deletions
diff --git a/OpenKeychain/src/main/res/values/themes.xml b/OpenKeychain/src/main/res/values/themes.xml
index 8e0ea6ac0..d15106966 100644
--- a/OpenKeychain/src/main/res/values/themes.xml
+++ b/OpenKeychain/src/main/res/values/themes.xml
@@ -1,9 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <style name="KeychainTheme" parent="KeychainTheme.Base" />
+ <style name="LightBaseTheme" parent="Theme.AppCompat.Light">
+ <item name="colorPrimary">@color/primary</item>
+ <item name="colorPrimaryDark">@color/primary_dark</item>
+ <item name="colorAccent">@color/accent</item>
- <style name="KeychainTheme.Base" parent="Theme.AppCompat.Light">
+ <!-- remove actionbar and title, we use toolbar! -->
+ <item name="windowNoTitle">true</item>
+ <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>
+ </style>
+
+ <style name="DarkBaseTheme" parent="Theme.AppCompat">
<item name="colorPrimary">@color/primary</item>
<item name="colorPrimaryDark">@color/primary_dark</item>
<item name="colorAccent">@color/accent</item>
@@ -16,6 +27,12 @@
<item name="searchViewStyle">@style/MySearchViewStyle</item>
</style>
+ <style name="LightTheme" parent="LightBaseTheme">
+ </style>
+
+ <style name="DarkTheme" parent="DarkBaseTheme">
+ </style>
+
<!-- http://android-developers.blogspot.de/2014/10/appcompat-v21-material-design-for-pre.html -->
<style name="MySearchViewStyle" parent="Widget.AppCompat.SearchView">
<!-- Background for the search query section (e.g. EditText) -->
@@ -40,4 +57,4 @@
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
-</resources> \ No newline at end of file
+</resources>