mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 13:15:35 +03:00
Add dark mode themes
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
971b6bf48d
commit
055f188030
4 changed files with 59 additions and 23 deletions
41
app/src/main/res/values-night/themes.xml
Normal file
41
app/src/main/res/values-night/themes.xml
Normal file
|
@ -0,0 +1,41 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Nextcloud Android client application
|
||||
|
||||
@author Alper Ozturk
|
||||
Copyright (C) 2024 Alper Ozturk
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
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 Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<resources>
|
||||
|
||||
<style name="BaseTheme.ownCloud.Toolbar" parent="Theme.Material3.Dark">
|
||||
<item name="alertDialogTheme">@style/ownCloud.AlertDialog</item>
|
||||
<item name="android:alertDialogTheme">@style/Theme.ownCloud.Dialog</item>
|
||||
<item name="android:colorBackground">@color/bg_default</item>
|
||||
<item name="android:windowBackground">@color/bg_default</item>
|
||||
<item name="colorAccent">@color/color_accent</item>
|
||||
<item name="colorPrimary">@color/primary</item>
|
||||
<item name="colorPrimaryDark">@color/primary</item>
|
||||
<item name="searchViewStyle">@style/ownCloud.SearchView</item>
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowActionModeOverlay">true</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
<item name="textInputStyle">@style/Widget.App.TextInputLayout</item>
|
||||
<item name="popupMenuStyle">@style/Nextcloud.Widget.PopupMenu</item>
|
||||
<item name="bottomSheetDialogTheme">@style/ThemeOverlay.App.BottomSheetDialog</item>
|
||||
<item name="actionModeStyle">@style/App.ActionMode</item>
|
||||
<item name="android:windowLightNavigationBar">true</item>
|
||||
</style>
|
||||
</resources>
|
|
@ -23,10 +23,6 @@
|
|||
<item name="android:windowLightNavigationBar">true</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.ownCloud.Toolbar" parent="Theme.ownCloud.ToolbarBase">
|
||||
<item name="android:windowLightNavigationBar">true</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.ownCloud" parent="BaseTheme.ownCloud">
|
||||
<item name="android:windowLightNavigationBar">true</item>
|
||||
</style>
|
||||
|
|
|
@ -106,25 +106,6 @@
|
|||
<item name="android:textColor">@color/text_color</item>
|
||||
</style>
|
||||
|
||||
<!-- separate action bar style for activities without an action bar -->
|
||||
<style name="BaseTheme.ownCloud.Toolbar" parent="Theme.AppCompat">
|
||||
<item name="alertDialogTheme">@style/ownCloud.AlertDialog</item>
|
||||
<item name="android:alertDialogTheme">@style/Theme.ownCloud.Dialog</item>
|
||||
<item name="android:colorBackground">@color/bg_default</item>
|
||||
<item name="android:windowBackground">@color/bg_default</item>
|
||||
<item name="colorAccent">@color/color_accent</item>
|
||||
<item name="colorPrimary">@color/primary</item>
|
||||
<item name="colorPrimaryDark">@color/primary</item>
|
||||
<item name="searchViewStyle">@style/ownCloud.SearchView</item>
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowActionModeOverlay">true</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
<item name="textInputStyle">@style/Widget.App.TextInputLayout</item>
|
||||
<item name="popupMenuStyle">@style/Nextcloud.Widget.PopupMenu</item>
|
||||
<item name="bottomSheetDialogTheme">@style/ThemeOverlay.App.BottomSheetDialog</item>
|
||||
<item name="actionModeStyle">@style/App.ActionMode</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.ownCloud.ToolbarBase" parent="BaseTheme.ownCloud.Toolbar">
|
||||
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
||||
<item name="android:navigationBarColor">@color/bg_default</item>
|
||||
|
|
|
@ -22,6 +22,24 @@
|
|||
|
||||
<resources>
|
||||
|
||||
<style name="BaseTheme.ownCloud.Toolbar" parent="Theme.Material3.Light">
|
||||
<item name="alertDialogTheme">@style/ownCloud.AlertDialog</item>
|
||||
<item name="android:alertDialogTheme">@style/Theme.ownCloud.Dialog</item>
|
||||
<item name="android:colorBackground">@color/bg_default</item>
|
||||
<item name="android:windowBackground">@color/bg_default</item>
|
||||
<item name="colorAccent">@color/color_accent</item>
|
||||
<item name="colorPrimary">@color/primary</item>
|
||||
<item name="colorPrimaryDark">@color/primary</item>
|
||||
<item name="searchViewStyle">@style/ownCloud.SearchView</item>
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowActionModeOverlay">true</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
<item name="textInputStyle">@style/Widget.App.TextInputLayout</item>
|
||||
<item name="popupMenuStyle">@style/Nextcloud.Widget.PopupMenu</item>
|
||||
<item name="bottomSheetDialogTheme">@style/ThemeOverlay.App.BottomSheetDialog</item>
|
||||
<item name="actionModeStyle">@style/App.ActionMode</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.ownCloud.Toolbar.AppWidgetContainerParent" parent="@android:style/Theme.DeviceDefault">
|
||||
<!-- Radius of the outer bound of widgets to make the rounded corners -->
|
||||
<item name="appWidgetRadius">16dp</item>
|
||||
|
|
Loading…
Reference in a new issue