]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - res/values/styles.xml
Fixed background of actionbar color in dark theme for 2.3.x Android
[Dictionary.git] / res / values / styles.xml
index c2c6e4be527d196b9725c12a3b8008996ba79e29..bce60d946f2dd8e9da735d400c1135c1bb7bc947 100644 (file)
@@ -1,10 +1,19 @@
 <resources>
 
+    <style name="MyActionButtonStyle" parent="Widget.Sherlock.ActionButton">
+        <item name="android:minWidth">28dip</item>
+        <!--
+        <item name="android:paddingLeft">0dip</item>
+        <item name="android:paddingRight">0dip</item>
+        -->
+    </style>
+
     <!--
         Base application theme, dependent on API level. This theme is replaced
         by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
     -->
     <style name="AppBaseThemeLight" parent="Theme.Sherlock.Light">
+
         <!--
             Theme customizations available in newer API levels can go in
             res/values-vXX/styles.xml, while customizations related to
             Make search icon magnifying glass disappear:
             http://stackoverflow.com/questions/13604506/show-actionbarsherlock-searchview-always-expanded
         -->
+        <!--
       <item name="searchViewSearchIcon">@android:color/transparent</item>
       <item name="searchViewCloseIcon">@android:color/transparent</item>
+        -->
+        <item name="actionButtonStyle">@style/MyActionButtonStyle</item>
     </style>
-    
+
     <style name="AppBaseThemeDark" parent="Theme.Sherlock">
         <!--
             Theme customizations available in newer API levels can go in
             Make search icon magnifying glass disappear:
             http://stackoverflow.com/questions/13604506/show-actionbarsherlock-searchview-always-expanded
         -->
+        <!--
       <item name="searchViewSearchIcon">@android:color/transparent</item>
       <item name="searchViewCloseIcon">@android:color/transparent</item>
+        -->
+        <item name="actionButtonStyle">@style/MyActionButtonStyle</item>
     </style>
 
     <!-- Dark theme -->
@@ -37,6 +52,7 @@
     <style name="Theme.Default" parent="AppBaseThemeDark"></style>
 
     <style name="Theme.Default.TokenRow.Fg" parent="Theme.Default">
+
         <!-- <item name="android:textColor">#FFFFFF</item> -->
         <item name="android:textColorLink">#00AAFF</item>
     </style>
     <color name="theme_default_token_row_fg">#FFFFFF</color>
     <color name="theme_default_token_row_main_bg">#222222</color>
     <color name="theme_default_token_row_other_bg">#222222</color>
-    <color name="theme_default_other_lang_bg">#000000</color>
+    <color name="theme_default_normal_row_bg">#000000</color>
 
     <!-- ****************************************************************** -->
 
+
     <!-- Light theme -->
 
     <style name="Theme.Light" parent="AppBaseThemeLight"></style>
 
     <style name="Theme.Light.TokenRow.Fg" parent="Theme.Light">
+
         <!-- <item name="android:textColor">#000000</item> -->
         <item name="android:textColorLink">#0000FF</item>
     </style>
@@ -60,7 +78,8 @@
     <color name="theme_light_token_row_fg">#000000</color>
     <color name="theme_light_token_row_main_bg">#EEEEEE</color>
     <color name="theme_light_token_row_other_bg">#EEEEEE</color>
-    <color name="theme_light_other_lang_bg">#FFFFFF</color>
+    <color name="theme_light_normal_row_bg">#FFFFFF</color>
+    <color name="gray">#777777</color>
 
     <style name="BorderlessButton">
         <item name="android:background">@null</item>