aboutsummaryrefslogtreecommitdiffstats
path: root/OpenPGP-Keychain/src/main/res/values/styles.xml
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2014-02-02 16:24:58 +0100
committerDominik Schürmann <dominik@dominikschuermann.de>2014-02-02 16:24:58 +0100
commit75faa60be162c95716e49fe1f4635bd04ab582b8 (patch)
tree3f98476ec9efdce9da2061e931bc27f1142f41f2 /OpenPGP-Keychain/src/main/res/values/styles.xml
parent172b57bb97afb7f1917f11e760495bb7fe4b8b8c (diff)
downloadopen-keychain-75faa60be162c95716e49fe1f4635bd04ab582b8.tar.gz
open-keychain-75faa60be162c95716e49fe1f4635bd04ab582b8.tar.bz2
open-keychain-75faa60be162c95716e49fe1f4635bd04ab582b8.zip
Hacks to make dialogs on Android 2.3 black on white, and not black on black
Diffstat (limited to 'OpenPGP-Keychain/src/main/res/values/styles.xml')
-rw-r--r--OpenPGP-Keychain/src/main/res/values/styles.xml22
1 files changed, 21 insertions, 1 deletions
diff --git a/OpenPGP-Keychain/src/main/res/values/styles.xml b/OpenPGP-Keychain/src/main/res/values/styles.xml
index 9e61bbef4..f03d72605 100644
--- a/OpenPGP-Keychain/src/main/res/values/styles.xml
+++ b/OpenPGP-Keychain/src/main/res/values/styles.xml
@@ -1,14 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
+ <!-- Used in Android < 4 -->
+
+
+ <style name="KeychainTheme" parent="@style/Theme.AppCompat.Light">
+ <item name="android:alertDialogStyle">@style/CustomDialogTheme</item>
+ </style>
+
+ <!-- Ugly fix to make content background of Dialogs on Android < 4 white not black! -->
+ <style name="CustomDialogTheme" parent="@android:style/Theme.Dialog">
+ <item name="android:fullDark">@drawable/popup_full_bright</item>
+ <!--<item name="android:topDark">@android:drawable/popup_full_dark</item>-->
+ <item name="android:centerDark">@drawable/popup_center_bright</item>
+ <!--<item name="android:bottomDark">@android:drawable/popup_bottom_dark</item>-->
+ <!--<item name="fullBright">@android:drawable/popup_full_bright</item>-->
+ <!--<item name="topBright">@android:drawable/popup_top_bright</item>-->
+ <!--<item name="centerBright">@android:drawable/popup_center_bright</item>-->
+ <!--<item name="bottomBright">@android:drawable/popup_bottom_bright</item>-->
+ <!--<item name="bottomMedium">@android:drawable/popup_bottom_medium</item>-->
+ <!--<item name="centerMedium">@android:drawable/popup_center_medium</item>-->
+ </style>
<style name="SectionHeader">
<item name="android:drawableBottom">@drawable/section_header</item>
<item name="android:drawablePadding">4dp</item>
<item name="android:layout_marginTop">8dp</item>
<item name="android:paddingLeft">4dp</item>
- <!-- <item name="android:textAllCaps">true</item> -->
<item name="android:textColor">@color/emphasis</item>
<item name="android:textSize">14sp</item>
</style>
+
</resources> \ No newline at end of file