]> gitweb.fperrin.net Git - Dictionary.git/blob - res/values/styles.xml
Fixed background of actionbar color in dark theme for 2.3.x Android
[Dictionary.git] / res / values / styles.xml
1 <resources>
2
3     <style name="MyActionButtonStyle" parent="Widget.Sherlock.ActionButton">
4         <item name="android:minWidth">28dip</item>
5         <!--
6         <item name="android:paddingLeft">0dip</item>
7         <item name="android:paddingRight">0dip</item>
8         -->
9     </style>
10
11     <!--
12         Base application theme, dependent on API level. This theme is replaced
13         by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
14     -->
15     <style name="AppBaseThemeLight" parent="Theme.Sherlock.Light">
16
17         <!--
18             Theme customizations available in newer API levels can go in
19             res/values-vXX/styles.xml, while customizations related to
20             backward-compatibility can go here.
21         -->
22         <!--
23             Make search icon magnifying glass disappear:
24             http://stackoverflow.com/questions/13604506/show-actionbarsherlock-searchview-always-expanded
25         -->
26         <!--
27       <item name="searchViewSearchIcon">@android:color/transparent</item>
28       <item name="searchViewCloseIcon">@android:color/transparent</item>
29         -->
30         <item name="actionButtonStyle">@style/MyActionButtonStyle</item>
31     </style>
32
33     <style name="AppBaseThemeDark" parent="Theme.Sherlock">
34         <!--
35             Theme customizations available in newer API levels can go in
36             res/values-vXX/styles.xml, while customizations related to
37             backward-compatibility can go here.
38         -->
39         <!--
40             Make search icon magnifying glass disappear:
41             http://stackoverflow.com/questions/13604506/show-actionbarsherlock-searchview-always-expanded
42         -->
43         <!--
44       <item name="searchViewSearchIcon">@android:color/transparent</item>
45       <item name="searchViewCloseIcon">@android:color/transparent</item>
46         -->
47         <item name="actionButtonStyle">@style/MyActionButtonStyle</item>
48     </style>
49
50     <!-- Dark theme -->
51
52     <style name="Theme.Default" parent="AppBaseThemeDark"></style>
53
54     <style name="Theme.Default.TokenRow.Fg" parent="Theme.Default">
55
56         <!-- <item name="android:textColor">#FFFFFF</item> -->
57         <item name="android:textColorLink">#00AAFF</item>
58     </style>
59
60     <color name="theme_default_token_row_fg">#FFFFFF</color>
61     <color name="theme_default_token_row_main_bg">#222222</color>
62     <color name="theme_default_token_row_other_bg">#222222</color>
63     <color name="theme_default_normal_row_bg">#000000</color>
64
65     <!-- ****************************************************************** -->
66
67
68     <!-- Light theme -->
69
70     <style name="Theme.Light" parent="AppBaseThemeLight"></style>
71
72     <style name="Theme.Light.TokenRow.Fg" parent="Theme.Light">
73
74         <!-- <item name="android:textColor">#000000</item> -->
75         <item name="android:textColorLink">#0000FF</item>
76     </style>
77
78     <color name="theme_light_token_row_fg">#000000</color>
79     <color name="theme_light_token_row_main_bg">#EEEEEE</color>
80     <color name="theme_light_token_row_other_bg">#EEEEEE</color>
81     <color name="theme_light_normal_row_bg">#FFFFFF</color>
82     <color name="gray">#777777</color>
83
84     <style name="BorderlessButton">
85         <item name="android:background">@null</item>
86         <item name="android:paddingLeft">4dip</item>
87         <item name="android:paddingRight">4dip</item>
88     </style>
89
90 </resources>