564278ec2dfeb622c2ef6ad513a7d237ccc7dd0b
[pub/Android/ownCloud.git] / res / values / styles.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 ownCloud Android client application
4
5 Copyright (C) 2012 Bartek Przybylski
6 Copyright (C) 2015 ownCloud Inc.
7
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License version 2,
10 as published by the Free Software Foundation.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 -->
20 <resources xmlns:android="http://schemas.android.com/apk/res/android">
21 <style name="Animations" />
22
23 <!-- General ownCloud app style -->
24 <style name="Theme.ownCloud" parent="style/Theme.AppCompat.Light.DarkActionBar">
25 <item name="android:actionBarStyle">@style/Theme.ownCloud.Widget.ActionBar</item>
26 <item name="actionBarStyle">@style/Theme.ownCloud.Widget.ActionBar</item>
27 <item name="android:buttonStyle">@style/Theme.ownCloud.ButtonStyle</item>
28 <item name="colorPrimary">@color/primary</item>
29 <item name="colorPrimaryDark">@color/primary_dark</item>
30 <item name="colorAccent">@color/color_accent</item>
31 <item name="android:alertDialogTheme">@style/Theme.ownCloud.Dialog</item>
32 </style>
33
34 <style name="Theme.ownCloud.noActionBar" parent="style/Theme.AppCompat.Light.DarkActionBar">
35 <item name="android:buttonStyle">@style/Theme.ownCloud.ButtonStyle</item>
36 <item name="windowNoTitle">true</item>
37 <item name="windowActionBar">false</item>
38 <item name="colorPrimary">@color/primary</item>
39 <item name="colorPrimaryDark">@color/primary_dark</item>
40 <item name="colorAccent">@color/color_accent</item>
41 <item name="android:alertDialogTheme">@style/Theme.ownCloud.Dialog</item>
42 </style>
43
44 <!-- Progress bar -->
45 <style name="Widget.ownCloud.TopProgressBar" parent="style/Widget.AppCompat.ProgressBar.Horizontal">
46 <item name="android:progressDrawable">@drawable/actionbar_progress_horizontal</item>
47 <item name="android:indeterminateDrawable">@drawable/actionbar_progress_indeterminate_horizontal</item>
48 </style>
49
50 <style name="Theme.ownCloud.Fullscreen" parent="style/Theme.AppCompat">
51 <item name="android:windowFullscreen">true</item>
52 </style>
53
54
55 <style name="Theme.ownCloud.Widget.ActionBar"
56 parent="style/Widget.AppCompat.Light.ActionBar.Solid.Inverse">
57 <item name="android:background">@color/owncloud_blue</item>
58 <item name="background">@drawable/main_header_bg</item>
59 <item name="android:textColor">#ffffff</item>
60 <item name="android:shadowColor">#222222</item>
61 <item name="android:shadowRadius">1</item>
62 <item name="android:shadowDy">1</item>
63 <item name="android:backgroundSplit">@drawable/split_action_bg</item>
64 </style>
65
66 <!-- Dialogs -->
67 <style name="Theme.ownCloud.Dialog" parent="style/Theme.AppCompat.Light.Dialog.Alert">
68 <item name="windowNoTitle">false</item>
69 <item name="colorAccent">@color/owncloud_blue_accent</item>
70 <item name="buttonBarButtonStyle">@style/Theme.ownCloud.Dialog.ButtonBar.Button</item>
71 <item name="buttonBarStyle">@style/Theme.ownCloud.Dialog.ButtonBar</item>
72 </style>
73
74 <!-- Button Bar hack due to Lollipop bug:
75 https://code.google.com/p/android/issues/detail?id=78302
76 fix see:
77 http://stackoverflow.com/questions/27187353/dialog-buttons-with-long-text-not-wrapping-squeezed-out-material-theme-on-an
78 -->
79 <style name="Theme.ownCloud.Dialog.ButtonBar" parent="style/Widget.AppCompat.Button.ButtonBar.AlertDialog">
80 <!-- Making sure, the button bar uses parent width and is not restricted in height -->
81 <item name="android:layout_width">match_parent</item>
82 <item name="android:layout_height">wrap_content</item>
83 <item name="android:height">@null</item>
84 <item name="android:minHeight">@null</item>
85 </style>
86
87 <style name="Theme.ownCloud.Dialog.ButtonBar.Button" parent="style/Widget.AppCompat.Button.Borderless.Colored">
88 <!-- Setting the weight as follows should result in equally wide buttons filling the alert dialog width,
89 but instead they span further out of the dialog, breaking in multiple lines though -->
90 <item name="android:layout_width">0dp</item>
91 <item name="android:layout_weight">1</item>
92 <!-- setting a fixed width as follows results in narrow buttons with line breaks, but of course this is not a solution -->
93 <!-- <item name="android:width">100dp</item> -->
94 </style>
95
96 <!-- PopDownMenu -->
97 <style name="Animations.PopDownMenu" />
98
99 <style name="Animations.PopDownMenu.Center">
100 <item name="@android:windowEnterAnimation">@anim/grow_from_top</item>
101 <item name="@android:windowExitAnimation">@anim/shrink_from_bottom</item>
102 </style>
103
104 <style name="Animations.PopDownMenu.Left">
105 <item name="@android:windowEnterAnimation">@anim/grow_from_topleft_to_bottomright</item>
106 <item name="@android:windowExitAnimation">@anim/shrink_from_bottomright_to_topleft</item>
107 </style>
108
109 <style name="Animations.PopDownMenu.Right">
110 <item name="@android:windowEnterAnimation">@anim/grow_from_topright_to_bottomleft</item>
111 <item name="@android:windowExitAnimation">@anim/shrink_from_bottomleft_to_topright</item>
112 </style>
113
114 <style name="Animations.PopDownMenu.Reflect">
115 <item name="@android:windowEnterAnimation">@anim/pump_top</item>
116 <item name="@android:windowExitAnimation">@anim/disappear</item>
117 </style>
118
119 <!-- PopUpMenu -->
120 <style name="Animations.PopUpMenu" />
121
122 <style name="Animations.PopUpMenu.Center">
123 <item name="@android:windowEnterAnimation">@anim/grow_from_bottom</item>
124 <item name="@android:windowExitAnimation">@anim/shrink_from_top</item>
125 </style>
126
127 <style name="Animations.PopUpMenu.Left">
128 <item name="@android:windowEnterAnimation">@anim/grow_from_bottomleft_to_topright</item>
129 <item name="@android:windowExitAnimation">@anim/shrink_from_topright_to_bottomleft</item>
130 </style>
131
132 <style name="Animations.PopUpMenu.Right">
133 <item name="@android:windowEnterAnimation">@anim/grow_from_bottomright_to_topleft</item>
134 <item name="@android:windowExitAnimation">@anim/shrink_from_topleft_to_bottomright</item>
135 </style>
136
137 <style name="Animations.PopUpMenu.Reflect">
138 <item name="@android:windowEnterAnimation">@anim/pump_bottom</item>
139 <item name="@android:windowExitAnimation">@anim/disappear</item>
140 </style>
141
142 <style name="PassCodeStyle">
143 <item name="android:layout_width">50dp</item>
144 <item name="android:layout_height">50dp</item>
145 <item name="android:gravity">center</item>
146 <item name="android:layout_margin">10dp</item>
147 <item name="android:inputType">numberDecimal</item>
148 <item name="android:numeric">decimal</item>
149 <item name="android:digits">1234567890</item>
150 <item name="android:maxLength">1</item>
151 <item name="android:password">true</item>
152 <item name="android:singleLine">true</item>
153
154 </style>
155
156 <style name="OAuthDialog" parent="style/Theme.AppCompat.Light.Dialog.Alert">
157 <item name="windowNoTitle">false</item>
158 <item name="colorAccent">@color/owncloud_blue_accent</item>
159 </style>
160
161 <color name="setup_text_hint">#777777</color>
162 <color name="setup_text_typed">#000000</color>
163 </resources>