2011-08-20 00:37:35 +04:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2013-02-07 21:45:10 +04:00
|
|
|
<!--
|
|
|
|
ownCloud Android client application
|
|
|
|
|
|
|
|
Copyright (C) 2012 Bartek Przybylski
|
2015-03-05 15:27:45 +03:00
|
|
|
Copyright (C) 2015 ownCloud Inc.
|
2013-02-07 21:45:10 +04:00
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
2013-04-17 14:26:13 +04:00
|
|
|
it under the terms of the GNU General Public License version 2,
|
|
|
|
as published by the Free Software Foundation.
|
2013-02-07 21:45:10 +04:00
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
-->
|
2013-06-14 18:59:38 +04:00
|
|
|
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
2011-08-20 00:37:35 +04:00
|
|
|
<style name="Animations" />
|
|
|
|
|
2013-08-21 20:51:13 +04:00
|
|
|
<!-- General ownCloud app style -->
|
2015-08-14 18:18:36 +03:00
|
|
|
<style name="Theme.ownCloud" parent="Theme.AppCompat.Light.DarkActionBar">
|
2012-04-10 06:40:53 +04:00
|
|
|
<item name="android:actionBarStyle">@style/Theme.ownCloud.Widget.ActionBar</item>
|
|
|
|
<item name="actionBarStyle">@style/Theme.ownCloud.Widget.ActionBar</item>
|
2013-10-25 17:06:10 +04:00
|
|
|
<item name="android:buttonStyle">@style/Theme.ownCloud.ButtonStyle</item>
|
2015-07-26 02:49:27 +03:00
|
|
|
<item name="colorPrimary">@color/primary</item>
|
|
|
|
<item name="colorPrimaryDark">@color/primary_dark</item>
|
|
|
|
<item name="colorAccent">@color/color_accent</item>
|
2015-08-06 18:13:00 +03:00
|
|
|
<item name="android:alertDialogTheme">@style/Theme.ownCloud.Dialog</item>
|
2015-08-14 18:18:36 +03:00
|
|
|
<item name="alertDialogTheme">@style/ownCloud.AlertDialog</item>
|
2015-08-07 18:09:47 +03:00
|
|
|
<item name="colorButtonNormal">@color/background_color</item>
|
|
|
|
<item name="colorControlActivated">@color/primary_dark</item>
|
|
|
|
<item name="colorControlHighlight">@color/color_accent</item>
|
2012-02-06 01:47:25 +04:00
|
|
|
</style>
|
2015-08-06 20:04:22 +03:00
|
|
|
|
|
|
|
<!-- seperate action bar style for activities without an action bar -->
|
2015-08-14 18:18:36 +03:00
|
|
|
<style name="Theme.ownCloud.noActionBar" parent="Theme.AppCompat.Light.DarkActionBar">
|
2015-07-26 02:49:27 +03:00
|
|
|
<item name="android:buttonStyle">@style/Theme.ownCloud.ButtonStyle</item>
|
|
|
|
<item name="windowNoTitle">true</item>
|
|
|
|
<item name="windowActionBar">false</item>
|
|
|
|
<item name="colorPrimary">@color/primary</item>
|
|
|
|
<item name="colorPrimaryDark">@color/primary_dark</item>
|
|
|
|
<item name="colorAccent">@color/color_accent</item>
|
2015-08-06 18:13:00 +03:00
|
|
|
<item name="android:alertDialogTheme">@style/Theme.ownCloud.Dialog</item>
|
2015-08-14 18:18:36 +03:00
|
|
|
<item name="alertDialogTheme">@style/ownCloud.AlertDialog</item>
|
2015-08-07 18:09:47 +03:00
|
|
|
<item name="colorButtonNormal">@color/background_color</item>
|
|
|
|
<item name="colorControlActivated">@color/primary_dark</item>
|
|
|
|
<item name="colorControlHighlight">@color/color_accent</item>
|
2013-06-14 18:59:38 +04:00
|
|
|
</style>
|
2015-05-25 13:39:05 +03:00
|
|
|
|
2015-08-13 16:41:59 +03:00
|
|
|
<style name="Theme.ownCloud.noActionBar.Login" parent="Theme.ownCloud.noActionBar">
|
|
|
|
<item name="colorAccent">@color/white</item>
|
|
|
|
</style>
|
|
|
|
|
2015-08-14 18:18:36 +03:00
|
|
|
<style name="ownCloud.AlertDialog" parent="Theme.AppCompat.Light.Dialog.Alert">
|
|
|
|
<item name="colorAccent">@color/color_accent</item>
|
|
|
|
<item name="android:textColorPrimary">@color/primary</item>
|
|
|
|
</style>
|
|
|
|
|
2015-08-17 16:58:03 +03:00
|
|
|
<style name="ownCloud.Dialog" parent="Theme.AppCompat.Light.Dialog" />
|
2015-08-14 18:18:36 +03:00
|
|
|
|
2015-08-18 14:08:58 +03:00
|
|
|
<style name="ProgressDialogTheme" parent="ownCloud.Dialog">
|
|
|
|
<item name="android:windowFrame">@null</item>
|
|
|
|
<item name="android:windowBackground">@null</item>
|
|
|
|
</style>
|
|
|
|
|
2015-08-07 18:09:47 +03:00
|
|
|
<style name="ownCloud.Button" parent="Widget.AppCompat.Button">
|
|
|
|
<item name="colorButtonNormal">@color/primary</item>
|
|
|
|
<item name="colorControlActivated">@color/primary_dark</item>
|
|
|
|
<item name="colorControlHighlight">@color/color_accent</item>
|
|
|
|
</style>
|
|
|
|
|
2015-08-13 16:41:59 +03:00
|
|
|
<style name="Button.Borderless" parent="Base.Widget.AppCompat.Button.Borderless">
|
|
|
|
<item name="android:textColor">@color/color_accent</item>
|
|
|
|
</style>
|
|
|
|
|
2015-08-06 20:04:22 +03:00
|
|
|
<!-- separat translucent action bar style -->
|
|
|
|
<style name="Theme.ownCloud.Overlay" parent="style/Theme.ownCloud">
|
|
|
|
<item name="android:actionBarStyle">@style/Theme.ownCloud.Overlay.ActionBar</item>
|
|
|
|
<item name="windowActionBarOverlay">true</item>
|
|
|
|
<!-- Support library compatibility -->
|
|
|
|
<item name="actionBarStyle">@style/Theme.ownCloud.Overlay.ActionBar</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<!-- ACTION BAR STYLES -->
|
|
|
|
<style name="Theme.ownCloud.Overlay.ActionBar" parent="@style/Widget.AppCompat.ActionBar">
|
|
|
|
<item name="android:background">@color/owncloud_blue_transparent</item>
|
|
|
|
<item name="android:windowActionBarOverlay">true</item>
|
|
|
|
|
|
|
|
<!-- Support library compatibility -->
|
|
|
|
<item name="background">@color/owncloud_blue_transparent</item>
|
|
|
|
<item name="windowActionBarOverlay">true</item>
|
|
|
|
</style>
|
|
|
|
|
2015-07-26 18:52:29 +03:00
|
|
|
<!-- Progress bar -->
|
2015-08-04 19:32:33 +03:00
|
|
|
<style name="Widget.ownCloud.TopProgressBar" parent="style/Widget.AppCompat.ProgressBar.Horizontal">
|
2015-07-26 18:52:29 +03:00
|
|
|
<item name="android:progressDrawable">@drawable/actionbar_progress_horizontal</item>
|
|
|
|
<item name="android:indeterminateDrawable">@drawable/actionbar_progress_indeterminate_horizontal</item>
|
|
|
|
</style>
|
|
|
|
|
2015-05-25 13:39:05 +03:00
|
|
|
<style name="Theme.ownCloud.Fullscreen" parent="style/Theme.AppCompat">
|
|
|
|
<item name="android:windowFullscreen">true</item>
|
2013-06-14 18:59:38 +04:00
|
|
|
</style>
|
|
|
|
|
2012-05-13 18:13:13 +04:00
|
|
|
|
2015-05-15 12:24:14 +03:00
|
|
|
<style name="Theme.ownCloud.Widget.ActionBar"
|
|
|
|
parent="style/Widget.AppCompat.Light.ActionBar.Solid.Inverse">
|
2015-07-26 02:49:27 +03:00
|
|
|
<item name="android:background">@color/owncloud_blue</item>
|
2013-10-30 13:30:48 +04:00
|
|
|
<item name="background">@drawable/main_header_bg</item>
|
2012-04-12 02:34:07 +04:00
|
|
|
<item name="android:textColor">#ffffff</item>
|
|
|
|
<item name="android:shadowColor">#222222</item>
|
|
|
|
<item name="android:shadowRadius">1</item>
|
|
|
|
<item name="android:shadowDy">1</item>
|
2012-05-15 23:52:59 +04:00
|
|
|
<item name="android:backgroundSplit">@drawable/split_action_bg</item>
|
2012-02-06 01:47:25 +04:00
|
|
|
</style>
|
2013-08-21 20:51:13 +04:00
|
|
|
|
|
|
|
<!-- Dialogs -->
|
2015-08-06 17:27:56 +03:00
|
|
|
<style name="Theme.ownCloud.Dialog" parent="style/Theme.AppCompat.Light.Dialog.Alert">
|
|
|
|
<item name="windowNoTitle">false</item>
|
|
|
|
<item name="colorAccent">@color/owncloud_blue_accent</item>
|
2015-08-06 18:13:00 +03:00
|
|
|
<item name="buttonBarButtonStyle">@style/Theme.ownCloud.Dialog.ButtonBar.Button</item>
|
|
|
|
<item name="buttonBarStyle">@style/Theme.ownCloud.Dialog.ButtonBar</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<!-- Button Bar hack due to Lollipop bug:
|
|
|
|
https://code.google.com/p/android/issues/detail?id=78302
|
|
|
|
fix see:
|
|
|
|
http://stackoverflow.com/questions/27187353/dialog-buttons-with-long-text-not-wrapping-squeezed-out-material-theme-on-an
|
|
|
|
-->
|
|
|
|
<style name="Theme.ownCloud.Dialog.ButtonBar" parent="style/Widget.AppCompat.Button.ButtonBar.AlertDialog">
|
|
|
|
<!-- Making sure, the button bar uses parent width and is not restricted in height -->
|
|
|
|
<item name="android:layout_width">match_parent</item>
|
|
|
|
<item name="android:layout_height">wrap_content</item>
|
|
|
|
<item name="android:height">@null</item>
|
|
|
|
<item name="android:minHeight">@null</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="Theme.ownCloud.Dialog.ButtonBar.Button" parent="style/Widget.AppCompat.Button.Borderless.Colored">
|
|
|
|
<!-- Setting the weight as follows should result in equally wide buttons filling the alert dialog width,
|
|
|
|
but instead they span further out of the dialog, breaking in multiple lines though -->
|
|
|
|
<item name="android:layout_width">0dp</item>
|
|
|
|
<item name="android:layout_weight">1</item>
|
|
|
|
<!-- setting a fixed width as follows results in narrow buttons with line breaks, but of course this is not a solution -->
|
|
|
|
<!-- <item name="android:width">100dp</item> -->
|
2013-08-21 20:51:13 +04:00
|
|
|
</style>
|
|
|
|
|
2011-08-20 00:37:35 +04:00
|
|
|
<!-- PopDownMenu -->
|
|
|
|
<style name="Animations.PopDownMenu" />
|
|
|
|
|
|
|
|
<style name="Animations.PopDownMenu.Center">
|
|
|
|
<item name="@android:windowEnterAnimation">@anim/grow_from_top</item>
|
|
|
|
<item name="@android:windowExitAnimation">@anim/shrink_from_bottom</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="Animations.PopDownMenu.Left">
|
|
|
|
<item name="@android:windowEnterAnimation">@anim/grow_from_topleft_to_bottomright</item>
|
|
|
|
<item name="@android:windowExitAnimation">@anim/shrink_from_bottomright_to_topleft</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="Animations.PopDownMenu.Right">
|
|
|
|
<item name="@android:windowEnterAnimation">@anim/grow_from_topright_to_bottomleft</item>
|
|
|
|
<item name="@android:windowExitAnimation">@anim/shrink_from_bottomleft_to_topright</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="Animations.PopDownMenu.Reflect">
|
|
|
|
<item name="@android:windowEnterAnimation">@anim/pump_top</item>
|
|
|
|
<item name="@android:windowExitAnimation">@anim/disappear</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<!-- PopUpMenu -->
|
|
|
|
<style name="Animations.PopUpMenu" />
|
|
|
|
|
|
|
|
<style name="Animations.PopUpMenu.Center">
|
|
|
|
<item name="@android:windowEnterAnimation">@anim/grow_from_bottom</item>
|
|
|
|
<item name="@android:windowExitAnimation">@anim/shrink_from_top</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="Animations.PopUpMenu.Left">
|
|
|
|
<item name="@android:windowEnterAnimation">@anim/grow_from_bottomleft_to_topright</item>
|
|
|
|
<item name="@android:windowExitAnimation">@anim/shrink_from_topright_to_bottomleft</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="Animations.PopUpMenu.Right">
|
|
|
|
<item name="@android:windowEnterAnimation">@anim/grow_from_bottomright_to_topleft</item>
|
|
|
|
<item name="@android:windowExitAnimation">@anim/shrink_from_topleft_to_bottomright</item>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style name="Animations.PopUpMenu.Reflect">
|
|
|
|
<item name="@android:windowEnterAnimation">@anim/pump_bottom</item>
|
|
|
|
<item name="@android:windowExitAnimation">@anim/disappear</item>
|
|
|
|
</style>
|
2012-07-09 13:11:44 +04:00
|
|
|
|
|
|
|
<style name="PassCodeStyle">
|
|
|
|
<item name="android:layout_width">50dp</item>
|
|
|
|
<item name="android:layout_height">50dp</item>
|
|
|
|
<item name="android:gravity">center</item>
|
|
|
|
<item name="android:layout_margin">10dp</item>
|
|
|
|
<item name="android:inputType">numberDecimal</item>
|
|
|
|
<item name="android:numeric">decimal</item>
|
|
|
|
<item name="android:digits">1234567890</item>
|
|
|
|
<item name="android:maxLength">1</item>
|
|
|
|
<item name="android:password">true</item>
|
|
|
|
<item name="android:singleLine">true</item>
|
|
|
|
|
|
|
|
</style>
|
2012-10-31 21:59:43 +04:00
|
|
|
|
2015-08-06 17:27:56 +03:00
|
|
|
<style name="OAuthDialog" parent="style/Theme.AppCompat.Light.Dialog.Alert">
|
|
|
|
<item name="windowNoTitle">false</item>
|
|
|
|
<item name="colorAccent">@color/owncloud_blue_accent</item>
|
2012-10-31 21:59:43 +04:00
|
|
|
</style>
|
2012-07-09 13:11:44 +04:00
|
|
|
|
2011-08-20 00:37:35 +04:00
|
|
|
<color name="setup_text_hint">#777777</color>
|
|
|
|
<color name="setup_text_typed">#000000</color>
|
|
|
|
</resources>
|