-
Notifications
You must be signed in to change notification settings - Fork 531
/
Copy pathstyles.xml
248 lines (220 loc) · 11.2 KB
/
styles.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="OppiaTheme" parent="Theme.MaterialComponents.Light.DarkActionBar.Bridge">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorPrimary</item>
</style>
<!-- This style specifies the Text Size of the Toolbar Title. -->
<style name="ToolbarTitle" parent="@style/TextAppearance.Widget.AppCompat.Toolbar.Title">
<item name="android:textSize">20sp</item>
</style>
<style name="OppiaThemeWithoutActionBar" parent="Theme.MaterialComponents.Light.NoActionBar.Bridge">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="android:windowAnimationStyle">@style/Animation.Activity</item>
</style>
<style name="OppiaThemeNoActionBarColorAccentColorPrimary" parent="Theme.MaterialComponents.Light.NoActionBar.Bridge">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorPrimary</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="android:windowAnimationStyle">@style/Animation.Activity</item>
</style>
<!-- Base style for animations. This style specifies no animations. -->
<style name="Animation" />
<!-- Standard animations for a full-screen window or activity. -->
<style name="Animation.Activity">
<item name="android:activityOpenEnterAnimation">@anim/slide_in_right</item>
<item name="android:activityOpenExitAnimation">@anim/slide_out_left</item>
</style>
<style name="OppiaDialogFragmentTheme" parent="OppiaTheme">
<item name="colorAccent">@color/colorPrimary</item>
</style>
<style name="SplashScreenTheme" parent="OppiaThemeWithoutActionBar">
<item name="android:windowBackground">@drawable/splash_page</item>
<item name="android:windowAnimationStyle">@style/FadeTransitionAnimation.Activity</item>
</style>
<!-- Base style for animations. This style specifies no animations. -->
<style name="FadeTransitionAnimation" />
<!-- Standard animations for a full-screen window or activity. -->
<style name="FadeTransitionAnimation.Activity">
<item name="android:activityOpenEnterAnimation">@anim/fade_in</item>
<item name="android:activityOpenExitAnimation">@anim/fade_out</item>
</style>
<style name="FullScreenDialogStyle" parent="Theme.MaterialComponents.Dialog.Bridge">
<item name="android:windowNoTitle">true</item>
<item name="colorPrimaryDark">@color/colorConceptToolbarHeading</item>
<!-- Set this to true if you want Full Screen without status bar -->
<item name="android:windowFullscreen">false</item>
<item name="android:windowIsFloating">false</item>
<!-- This is important! Don't forget to set window background -->
<item name="android:windowBackground">@color/colorConceptCardBackground</item>
<!-- Additionally if you want animations when dialog opening -->
<item name="android:windowEnterAnimation">@anim/slide_up</item>
<item name="android:windowExitAnimation">@anim/slide_down</item>
</style>
<style name="FullScreenReviewDialogStyle" parent="Theme.MaterialComponents.Dialog.Bridge">
<item name="android:windowNoTitle">true</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<!-- Set this to true if you want Full Screen without status bar -->
<item name="android:windowFullscreen">false</item>
<item name="android:windowIsFloating">false</item>
<!-- This is important! Don't forget to set window background -->
<item name="android:windowBackground">@color/white</item>
<!-- Additionally if you want animations when dialog opening -->
<item name="android:windowEnterAnimation">@anim/slide_up</item>
<item name="android:windowExitAnimation">@anim/slide_down</item>
</style>
<style name="FullScreenHintDialogStyle" parent="Theme.MaterialComponents.Dialog.Bridge">
<item name="android:windowNoTitle">true</item>
<item name="colorPrimaryDark">@color/hintFullDialogStatusBar</item>
<!-- Set this to true if you want Full Screen without status bar -->
<item name="android:windowFullscreen">false</item>
<item name="android:windowIsFloating">false</item>
<!-- This is important! Don't forget to set window background -->
<item name="android:windowBackground">@color/white</item>
<!-- Additionally if you want animations when dialog opening -->
<item name="android:windowEnterAnimation">@anim/slide_up</item>
<item name="android:windowExitAnimation">@anim/slide_down</item>
</style>
<!-- STATE BUTTON ACTIVE STYLE -->
<style name="StateButtonActive" parent="TextAppearance.AppCompat.Widget.Button">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:background">@drawable/state_button_primary_background</item>
<item name="android:paddingTop">8dp</item>
<item name="android:fontFamily">sans-serif-medium</item>
<item name="android:paddingBottom">8dp</item>
<item name="android:paddingStart">16dp</item>
<item name="android:paddingEnd">16dp</item>
<item name="android:textAllCaps">true</item>
<item name="android:textColor">@color/white</item>
<item name="android:textSize">14sp</item>
<item name="android:clickable">true</item>
</style>
<style name="SwitchCompatTheme" parent="Theme.MaterialComponents.Light.NoActionBar.Bridge">
<item name="colorControlActivated">@color/colorPrimary</item>
</style>
<style name="TabLayout" parent="Widget.Design.TabLayout">
<item name="tabTextAppearance">@style/TabLayoutTextAppearance</item>
</style>
<style name="ToolbarTextAppearance" parent="TextAppearance.Widget.AppCompat.Toolbar.Title">
<item name="android:textSize">20sp</item>
<item name="android:textColor">@color/white</item>
</style>
<style name="TabLayoutTextAppearance" parent="TextAppearance.Design.Tab">
<item name="textAllCaps">true</item>
<item name="android:textAllCaps">true</item>
</style>
<style name="AppTheme.TabLayout" parent="Widget.Design.TabLayout">
<item name="tabSelectedTextColor">@android:color/white</item>
<item name="tabTextColor">@android:color/white</item>
</style>
<!-- STATE BUTTON INACTIVE STYLE -->
<style name="StateButtonInactive" parent="TextAppearance.AppCompat.Widget.Button">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:padding">8dp</item>
<item name="android:textAllCaps">true</item>
<item name="android:background">@android:color/transparent</item>
<item name="android:textColor">#56000000</item>
<item name="android:textSize">14sp</item>
<item name="android:clickable">false</item>
</style>
<style name="AlertDialogTheme" parent="Theme.MaterialComponents.Light.Dialog.Alert.Bridge">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorPrimary</item>
</style>
<style name="textAllCaps">
<item name="android:textAllCaps">true</item>
</style>
<!-- TOPIC TABLAYOUT STYLE -->
<style name="AppTabLayout" parent="Widget.Design.TabLayout">
<item name="tabIndicatorColor">@color/white</item>
<item name="tabIndicatorHeight">4dp</item>
<item name="tabPaddingStart">8dp</item>
<item name="tabPaddingEnd">8dp</item>
<item name="tabBackground">?attr/selectableItemBackground</item>
<item name="tabTextAppearance">@style/AppTabTextAppearance</item>
<item name="tabIconTint">@color/tab_icon_color_selector</item>
<item name="tabSelectedTextColor">@color/white</item>
</style>
<style name="AppTabTextAppearance" parent="TextAppearance.Design.Tab">
<item name="android:textSize">14sp</item>
<item name="android:textColor">@color/tab_icon_color_selector</item>
<item name="android:fontFamily">sans-serif-medium</item>
<item name="textAllCaps">true</item>
</style>
<style name="LanguageRadioButton" parent="Base.Widget.AppCompat.CompoundButton.RadioButton">
<item name="android:button">@drawable/radio_button_drawable</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowIsFloating">false</item>
<item name="android:backgroundDimEnabled">true</item>
</style>
<style name="Heading1" parent="TextView.Common1">
<item name="android:fontFamily">sans-serif</item>
<item name="android:textSize">24sp</item>
<item name="fontFamily">sans-serif</item>
</style>
<style name="Heading2" parent="TextView.Common1">
<item name="android:fontFamily">sans-serif-medium</item>
<item name="android:textSize">20sp</item>
<item name="fontFamily">sans-serif-medium</item>
</style>
<style name="Heading3" parent="TextView.Common1">
<item name="android:fontFamily">sans-serif-medium</item>
<item name="android:textSize">18sp</item>
<item name="fontFamily">sans-serif-medium</item>
</style>
<style name="Heading4" parent="TextView.Common1">
<item name="android:fontFamily">sans-serif</item>
<item name="android:textSize">18sp</item>
<item name="fontFamily">sans-serif</item>
</style>
<style name="Heading5" parent="TextView.Common1">
<item name="android:fontFamily">sans-serif-medium</item>
<item name="android:textSize">14sp</item>
<item name="fontFamily">sans-serif-medium</item>
</style>
<style name="Subtitle1" parent="TextView.Common1">
<item name="android:fontFamily">sans-serif</item>
<item name="android:textSize">16sp</item>
<item name="fontFamily">sans-serif</item>
</style>
<style name="Subtitle2" parent="TextView.Common1">
<item name="android:fontFamily">sans-serif</item>
<item name="android:textSize">14sp</item>
<item name="fontFamily">sans-serif</item>
</style>
<style name="TextFieldLabel" parent="TextView.Common1">
<item name="android:fontFamily">sans-serif</item>
<item name="android:textSize">12sp</item>
<item name="fontFamily">sans-serif</item>
</style>
<style name="Body" parent="TextView.Common1">
<item name="android:fontFamily">sans-serif</item>
<item name="android:textSize">16sp</item>
<item name="fontFamily">sans-serif</item>
</style>
<style name="Caption" parent="TextView.Common1">
<item name="android:fontFamily">sans-serif-medium</item>
<item name="android:textSize">14sp</item>
<item name="fontFamily">sans-serif-medium</item>
</style>
<!-- This style should not be used in layout/*.xml files.-->
<style name="TextView.Common1" parent="Widget.AppCompat.TextView">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:textAllCaps">false</item>
<item name="android:textColor">@color/oppiaPrimaryText</item>
</style>
</resources>