diff --git a/build.gradle b/build.gradle
index a0f2a4da31..4139388704 100644
--- a/build.gradle
+++ b/build.gradle
@@ -266,7 +266,7 @@ dependencies {
qaImplementation "com.github.nextcloud:android-library:$androidLibraryVersion"
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
- implementation 'com.google.android.material:material:1.0.0'
+ implementation 'com.google.android.material:material:1.1.0-alpha02'
implementation 'com.jakewharton:disklrucache:2.0.2'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.cardview:cardview:1.0.0'
diff --git a/src/main/java/com/nextcloud/client/preferences/AppPreferences.java b/src/main/java/com/nextcloud/client/preferences/AppPreferences.java
index d1b46c12bf..22a45b2bdb 100644
--- a/src/main/java/com/nextcloud/client/preferences/AppPreferences.java
+++ b/src/main/java/com/nextcloud/client/preferences/AppPreferences.java
@@ -300,4 +300,6 @@ public interface AppPreferences {
boolean isPowerCheckDisabled();
void setPowerCheckDisabled(boolean value);
+
+ boolean getTheme();
}
diff --git a/src/main/java/com/nextcloud/client/preferences/AppPreferencesImpl.java b/src/main/java/com/nextcloud/client/preferences/AppPreferencesImpl.java
index 9e292adfa1..11e689dc56 100644
--- a/src/main/java/com/nextcloud/client/preferences/AppPreferencesImpl.java
+++ b/src/main/java/com/nextcloud/client/preferences/AppPreferencesImpl.java
@@ -67,6 +67,8 @@ public final class AppPreferencesImpl implements AppPreferences {
private static final String PREF__AUTO_UPLOAD_INIT = "autoUploadInit";
private static final String PREF__FOLDER_SORT_ORDER = "folder_sort_order";
private static final String PREF__FOLDER_LAYOUT = "folder_layout";
+
+ private static final String PREF__DARK_THEME = "darkTheme";
private static final String PREF__LOCK_TIMESTAMP = "lock_timestamp";
private static final String PREF__SHOW_MEDIA_SCAN_NOTIFICATIONS = "show_media_scan_notifications";
private static final String PREF__LOCK = SettingsActivity.PREFERENCE_LOCK;
@@ -339,6 +341,11 @@ public final class AppPreferencesImpl implements AppPreferences {
return preferences.getInt(AUTO_PREF__UPLOADER_BEHAVIOR, 1);
}
+ @Override
+ public boolean getTheme() {
+ return preferences.getBoolean(PREF__DARK_THEME, false);
+ }
+
@Override
public void setUploaderBehaviour(int uploaderBehaviour) {
preferences.edit().putInt(AUTO_PREF__UPLOADER_BEHAVIOR, uploaderBehaviour).apply();
diff --git a/src/main/java/com/owncloud/android/MainApp.java b/src/main/java/com/owncloud/android/MainApp.java
index 2e10e459d3..e0484f2139 100644
--- a/src/main/java/com/owncloud/android/MainApp.java
+++ b/src/main/java/com/owncloud/android/MainApp.java
@@ -99,6 +99,7 @@ import javax.net.ssl.SSLEngine;
import androidx.annotation.RequiresApi;
import androidx.annotation.StringRes;
import androidx.appcompat.app.AlertDialog;
+import androidx.appcompat.app.AppCompatDelegate;
import androidx.core.util.Pair;
import androidx.multidex.MultiDexApplication;
import dagger.android.AndroidInjector;
@@ -230,6 +231,7 @@ public class MainApp extends MultiDexApplication implements HasAndroidInjector {
@SuppressFBWarnings("ST")
@Override
public void onCreate() {
+ setAppTheme(preferences.getTheme());
super.onCreate();
insertConscrypt();
@@ -795,4 +797,12 @@ public class MainApp extends MultiDexApplication implements HasAndroidInjector {
return dispatchingAndroidInjector;
}
+
+ public static void setAppTheme(Boolean darkTheme) {
+ if (darkTheme) {
+ AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
+ } else {
+ AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
+ }
+ }
}
diff --git a/src/main/java/com/owncloud/android/ui/activity/DrawerActivity.java b/src/main/java/com/owncloud/android/ui/activity/DrawerActivity.java
index 20a35ddb66..3b85c4ba1e 100644
--- a/src/main/java/com/owncloud/android/ui/activity/DrawerActivity.java
+++ b/src/main/java/com/owncloud/android/ui/activity/DrawerActivity.java
@@ -109,7 +109,9 @@ import javax.inject.Inject;
import androidx.annotation.NonNull;
import androidx.appcompat.app.ActionBarDrawerToggle;
+import androidx.appcompat.app.AppCompatDelegate;
import androidx.appcompat.graphics.drawable.DrawerArrowDrawable;
+import androidx.core.content.ContextCompat;
import androidx.core.view.GravityCompat;
import androidx.drawerlayout.widget.DrawerLayout;
@@ -990,7 +992,7 @@ public abstract class DrawerActivity extends ToolbarActivity
MenuItem menuItem = mNavigationView.getMenu().getItem(i);
if (menuItem.getIcon() != null) {
menuItem.getIcon().clearColorFilter();
- menuItem.setTitle(Html.fromHtml("" + menuItem.getTitle() + ""));
+ menuItem.setTitle(Html.fromHtml("" + menuItem.getTitle() + ""));
}
}
@@ -1264,6 +1266,9 @@ public abstract class DrawerActivity extends ToolbarActivity
@Override
protected void onResume() {
super.onResume();
+ getDelegate().setLocalNightMode(preferences.getTheme() ?
+ AppCompatDelegate.MODE_NIGHT_YES : AppCompatDelegate.MODE_NIGHT_NO);
+ getDelegate().applyDayNight();
setDrawerMenuItemChecked(mCheckedMenuItem);
}
diff --git a/src/main/java/com/owncloud/android/ui/activity/SettingsActivity.java b/src/main/java/com/owncloud/android/ui/activity/SettingsActivity.java
index aa9e0b3851..97ae0bdeec 100644
--- a/src/main/java/com/owncloud/android/ui/activity/SettingsActivity.java
+++ b/src/main/java/com/owncloud/android/ui/activity/SettingsActivity.java
@@ -690,6 +690,20 @@ public class SettingsActivity extends PreferenceActivity
}
loadStoragePath();
+
+ SwitchPreference themePref = (SwitchPreference) findPreference(getString(R.string.prefs_key_theme));
+ SharedPreferences appPrefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
+
+ themePref.setSummary((appPrefs.getBoolean(com.owncloud.android.db.PreferenceManager.PREF__DARK_THEME,
+ false) ?
+ getString(R.string.prefs_value_theme_dark) : getString(R.string.prefs_value_theme_light)));
+ themePref.setOnPreferenceChangeListener((preference, newValue) -> {
+ MainApp.setAppTheme((Boolean) newValue);
+ getDelegate().applyDayNight();
+ recreate();
+
+ return true;
+ });
}
private String getAppVersion() {
@@ -1001,5 +1015,4 @@ public class SettingsActivity extends PreferenceActivity
public void returnVersion(Integer latestVersion) {
FileActivity.showDevSnackbar(this, latestVersion, true);
}
-
}
diff --git a/src/main/java/com/owncloud/android/ui/activity/SsoGrantPermissionActivity.java b/src/main/java/com/owncloud/android/ui/activity/SsoGrantPermissionActivity.java
index bb8972a6ce..1aa3f96e1c 100644
--- a/src/main/java/com/owncloud/android/ui/activity/SsoGrantPermissionActivity.java
+++ b/src/main/java/com/owncloud/android/ui/activity/SsoGrantPermissionActivity.java
@@ -144,7 +144,8 @@ public class SsoGrantPermissionActivity extends BaseActivity {
int start = text.indexOf(textBlock);
int end = start + textBlock.length();
ssb.setSpan(new StyleSpan(Typeface.BOLD), start, end, 0);
- ssb.setSpan(new ForegroundColorSpan(Color.BLACK), start, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
+ ssb.setSpan(new ForegroundColorSpan(getResources().getColor(R.color.textColor)), start, end,
+ Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
}
return ssb;
diff --git a/src/main/java/com/owncloud/android/ui/adapter/ActivityListAdapter.java b/src/main/java/com/owncloud/android/ui/adapter/ActivityListAdapter.java
index 60423fd630..7096db731c 100644
--- a/src/main/java/com/owncloud/android/ui/adapter/ActivityListAdapter.java
+++ b/src/main/java/com/owncloud/android/ui/adapter/ActivityListAdapter.java
@@ -369,7 +369,8 @@ public class ActivityListAdapter extends RecyclerView.Adapter {
private static final String FILE = "file";
private StyleSpan styleSpanBold = new StyleSpan(Typeface.BOLD);
- private ForegroundColorSpan foregroundColorSpanBlack = new ForegroundColorSpan(Color.BLACK);
+ private ForegroundColorSpan foregroundColorSpanBlack;
private List notificationsList;
private OwnCloudClient client;
@@ -87,6 +87,7 @@ public class NotificationListAdapter extends RecyclerView.Adapter();
this.client = client;
this.notificationsActivity = notificationsActivity;
+ foregroundColorSpanBlack = new ForegroundColorSpan(notificationsActivity.getResources().getColor(R.color.textColor));
}
public void setNotificationItems(List notificationItems) {
diff --git a/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java b/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java
index 3545da9819..c79d921296 100644
--- a/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java
+++ b/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java
@@ -330,7 +330,7 @@ public class OCFileListAdapter extends RecyclerView.Adapter
-
+
diff --git a/src/main/res/drawable/process_dialog_background.xml b/src/main/res/drawable/process_dialog_background.xml
index 9ba0b1e9ab..d20aa2f26b 100644
--- a/src/main/res/drawable/process_dialog_background.xml
+++ b/src/main/res/drawable/process_dialog_background.xml
@@ -1,6 +1,6 @@
-
+
+ app:passwordToggleTint="@color/login_btn_tint">
+ app:cornerRadius="@dimen/button_corner_radius"
+ style="@style/Button.Primary" />
+ android:paddingLeft="@dimen/standard_padding"
+ android:background="@color/background_color">
+ android:visibility="visible"
+ android:background="@color/background_color" />
diff --git a/src/main/res/layout/community_layout.xml b/src/main/res/layout/community_layout.xml
index 74cdd671d5..a0a38f2cad 100755
--- a/src/main/res/layout/community_layout.xml
+++ b/src/main/res/layout/community_layout.xml
@@ -140,7 +140,7 @@
android:id="@+id/community_release_candidate_fdroid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:background="@color/white"
+ android:background="@color/background_color"
android:onClick="onGetRCFDroidClick"
android:padding="@dimen/zero"
android:src="@drawable/fdroid"
@@ -150,7 +150,7 @@
android:id="@+id/community_release_candidate_playstore"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:background="@color/white"
+ android:background="@color/background_color"
android:onClick="onGetRCPlayStoreClick"
android:padding="@dimen/zero"
android:src="@drawable/playstore"
@@ -181,7 +181,7 @@
android:id="@+id/community_beta_fdroid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:background="@color/white"
+ android:background="@color/background_color"
android:onClick="onGetBetaFDroidClick"
android:padding="@dimen/zero"
android:src="@drawable/fdroid"
@@ -191,7 +191,7 @@
android:id="@+id/community_beta_apk"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:background="@color/white"
+ android:background="@color/background_color"
android:onClick="onGetBetaApkClick"
android:padding="@dimen/zero"
android:src="@drawable/apk"
diff --git a/src/main/res/layout/contactlist_fragment.xml b/src/main/res/layout/contactlist_fragment.xml
index a3c5a057fe..1d75e1e04a 100644
--- a/src/main/res/layout/contactlist_fragment.xml
+++ b/src/main/res/layout/contactlist_fragment.xml
@@ -39,7 +39,7 @@
android:id="@+id/contactlist_restore_selected_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:background="@color/white"
+ android:background="@color/background_color"
android:orientation="vertical"
android:visibility="gone">
diff --git a/src/main/res/layout/contacts_backup_fragment.xml b/src/main/res/layout/contacts_backup_fragment.xml
index b21942fe47..02d5a1fa11 100644
--- a/src/main/res/layout/contacts_backup_fragment.xml
+++ b/src/main/res/layout/contacts_backup_fragment.xml
@@ -35,7 +35,8 @@
android:layout_height="wrap_content"
android:layout_margin="@dimen/standard_margin"
android:text="@string/contacts_automatic_backup"
- android:textAppearance="?android:attr/textAppearanceMedium"/>
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:textColor="@color/textColor" />
+ android:textColor="@color/textColor"/>
+ android:drawablePadding="@dimen/alternate_half_padding" />
+ android:text="@string/drawer_quota" />
+ android:text="@string/drawer_quota" />
diff --git a/src/main/res/layout/drawer_header.xml b/src/main/res/layout/drawer_header.xml
index bae2e402b6..0e396c675d 100644
--- a/src/main/res/layout/drawer_header.xml
+++ b/src/main/res/layout/drawer_header.xml
@@ -100,13 +100,13 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
- android:shadowColor="@color/black"
+ android:shadowColor="@color/drawer_shadow"
android:shadowDx="0.5"
android:shadowDy="0"
android:shadowRadius="2"
android:maxLines="1"
android:text="@string/app_name"
- android:textColor="@android:color/white"
+ android:textColor="@color/textColor"
android:textSize="@dimen/drawer_header_text"
android:textStyle="bold"/>
@@ -117,12 +117,12 @@
android:ellipsize="end"
android:lines="1"
android:maxLines="1"
- android:shadowColor="@color/black"
+ android:shadowColor="@color/drawer_shadow"
android:shadowDx="0.5"
android:shadowDy="0"
android:shadowRadius="2"
android:text="@string/app_name"
- android:textColor="@android:color/white"
+ android:textColor="@color/textColor"
android:textSize="@dimen/drawer_header_subtext"/>
diff --git a/src/main/res/layout/file_details_activities_fragment.xml b/src/main/res/layout/file_details_activities_fragment.xml
index 48949e34ae..a3751db4f3 100644
--- a/src/main/res/layout/file_details_activities_fragment.xml
+++ b/src/main/res/layout/file_details_activities_fragment.xml
@@ -38,7 +38,8 @@
android:layout_height="wrap_content"
android:layout_weight="1"
android:hint="@string/new_comment"
- android:paddingTop="@dimen/standard_padding" />
+ android:paddingTop="@dimen/standard_padding"
+ android:textColorHint="@color/secondaryTextColor" />
+ android:fillViewport="true"
+ android:background="@color/background_color">
@@ -133,7 +135,7 @@
android:id="@+id/overflow_menu"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:background="@color/white"
+ android:background="@color/background_color"
android:contentDescription="@string/overflow_menu"
android:src="@drawable/ic_dots_vertical" />
@@ -192,9 +194,10 @@
android:id="@+id/tab_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:background="@color/white"
+ android:background="@color/background_color"
app:tabGravity="center"
app:tabMode="fixed"
+ app:tabTextColor="@color/textColor"
app:tabTextAppearance="@style/AppTabTextAppearance" />
+ android:orientation="vertical"
+ android:background="@color/background_color">
+ android:textSize="@dimen/bottom_sheet_text_size"
+ android:textColor="@color/textColor"/>
+ android:textColor="@color/textColor"
+ android:textSize="@dimen/bottom_sheet_text_size" />
@@ -87,8 +89,8 @@
android:layout_marginStart="@dimen/standard_margin"
android:layout_marginLeft="@dimen/standard_margin"
android:text="@string/upload_content_from_other_apps"
- android:textColor="@color/black"
- android:textSize="@dimen/bottom_sheet_text_size"/>
+ android:textColor="@color/textColor"
+ android:textSize="@dimen/bottom_sheet_text_size" />
@@ -169,8 +171,8 @@
android:layout_marginStart="@dimen/standard_margin"
android:layout_marginLeft="@dimen/standard_margin"
android:text="@string/create_new_folder"
- android:textColor="@color/black"
- android:textSize="@dimen/bottom_sheet_text_size"/>
+ android:textColor="@color/textColor"
+ android:textSize="@dimen/bottom_sheet_text_size" />
@@ -216,7 +218,7 @@
android:layout_marginLeft="@dimen/standard_margin"
android:layout_marginStart="@dimen/standard_margin"
android:text="@string/create_new_document"
- android:textColor="@color/black"
+ android:textColor="@color/textColor"
android:textSize="@dimen/bottom_sheet_text_size"/>
@@ -245,7 +247,7 @@
android:layout_marginLeft="@dimen/standard_margin"
android:layout_marginStart="@dimen/standard_margin"
android:text="@string/create_new_spreadsheet"
- android:textColor="@color/black"
+ android:textColor="@color/textColor"
android:textSize="@dimen/bottom_sheet_text_size"/>
@@ -274,7 +276,7 @@
android:layout_marginLeft="@dimen/standard_margin"
android:layout_marginStart="@dimen/standard_margin"
android:text="@string/create_new_presentation"
- android:textColor="@color/black"
+ android:textColor="@color/textColor"
android:textSize="@dimen/bottom_sheet_text_size"/>
diff --git a/src/main/res/layout/file_preview.xml b/src/main/res/layout/file_preview.xml
index aa63c5234a..0f1bd40bf0 100644
--- a/src/main/res/layout/file_preview.xml
+++ b/src/main/res/layout/file_preview.xml
@@ -31,7 +31,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="invisible"
- android:background="@color/black">
+ android:background="@color/background_color_inverse">
+ android:src="@drawable/ic_synced" />
diff --git a/src/main/res/layout/media_control.xml b/src/main/res/layout/media_control.xml
index 087fcb8022..ef563ce559 100644
--- a/src/main/res/layout/media_control.xml
+++ b/src/main/res/layout/media_control.xml
@@ -65,7 +65,7 @@
android:layout_height="wrap_content"
android:paddingEnd="@dimen/standard_quarter_padding"
android:text="@string/placeholder_media_time"
- android:textColor="@color/white"
+ android:textColor="@color/textColor_inverse"
/>
diff --git a/src/main/res/layout/passcodelock.xml b/src/main/res/layout/passcodelock.xml
index a35c05dd3c..f2f4808ad3 100644
--- a/src/main/res/layout/passcodelock.xml
+++ b/src/main/res/layout/passcodelock.xml
@@ -31,7 +31,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/pass_code_enter_pass_code"
- android:textColor="@android:color/black"
+ android:textColor="@color/textColor"
android:gravity="center_horizontal"
android:textSize="@dimen/two_line_primary_text_size"
/>
@@ -56,6 +56,7 @@
android:focusable="true"
style="@style/PassCodeStyle"
android:cursorVisible="true"
+ android:textCursorDrawable="@color/primary"
android:imeOptions="flagNoExtractUi"
android:importantForAutofill="no"
android:hint="@string/hidden_character">
diff --git a/src/main/res/layout/richdocuments_webview.xml b/src/main/res/layout/richdocuments_webview.xml
index c5edc35749..afb3c098c2 100644
--- a/src/main/res/layout/richdocuments_webview.xml
+++ b/src/main/res/layout/richdocuments_webview.xml
@@ -47,7 +47,7 @@
android:layout_height="wrap_content"
android:ellipsize="middle"
android:text="@string/placeholder_filename"
- android:textColor="@color/black"
+ android:textColor="@color/textColor"
android:textSize="20sp"
android:textStyle="bold"/>
diff --git a/src/main/res/layout/send_button.xml b/src/main/res/layout/send_button.xml
index 50c27961ad..b0c54fe58b 100644
--- a/src/main/res/layout/send_button.xml
+++ b/src/main/res/layout/send_button.xml
@@ -41,5 +41,5 @@
android:layout_gravity="center"
android:gravity="center_horizontal"
android:paddingTop="@dimen/standard_half_padding"
- android:textColor="@color/black" />
+ android:textColor="@color/textColor" />
diff --git a/src/main/res/layout/send_share_fragment.xml b/src/main/res/layout/send_share_fragment.xml
index ed586f7598..841d2d071f 100644
--- a/src/main/res/layout/send_share_fragment.xml
+++ b/src/main/res/layout/send_share_fragment.xml
@@ -70,7 +70,7 @@
android:drawable="@drawable/ic_share"
android:text="@string/share"
android:paddingTop="@dimen/standard_half_padding"
- android:textColor="@color/black"/>
+ android:textColor="@color/textColor"/>
+ android:textColor="@color/textColor"/>
@@ -109,7 +109,7 @@
android:layout_height="1dp"
android:layout_below="@id/send_share_buttons"
android:alpha="0.3"
- android:background="@color/black"/>
+ android:background="@color/background_color_inverse"/>
@@ -227,7 +227,7 @@
android:layout_toStartOf="@id/shareViaLinkFileListingPermissionSwitch"
android:padding="@dimen/standard_half_padding"
android:text="@string/share_via_link_hide_file_listing_permission_label"
- android:textColor="@color/black"
+ android:textColor="@color/textColor"
android:textSize="@dimen/two_line_secondary_text_size"
/>
@@ -261,7 +261,7 @@
android:paddingRight="@dimen/standard_half_padding"
android:paddingTop="@dimen/standard_half_padding"
android:text="@string/share_via_link_password_label"
- android:textColor="@color/black"
+ android:textColor="@color/textColor"
android:textSize="@dimen/two_line_secondary_text_size"
/>
@@ -312,7 +312,7 @@
android:paddingRight="@dimen/standard_half_padding"
android:paddingTop="@dimen/standard_half_padding"
android:text="@string/share_via_link_expiration_date_label"
- android:textColor="@color/black"
+ android:textColor="@color/textColor"
android:textSize="@dimen/two_line_secondary_text_size"
/>
diff --git a/src/main/res/layout/sorting_order_fragment.xml b/src/main/res/layout/sorting_order_fragment.xml
index 0583d7955a..2cb44ab690 100644
--- a/src/main/res/layout/sorting_order_fragment.xml
+++ b/src/main/res/layout/sorting_order_fragment.xml
@@ -24,7 +24,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minWidth="300dp"
- android:orientation="vertical">
+ android:orientation="vertical"
+ android:background="@color/background_color">
+ android:textColor="@color/textColor"/>
diff --git a/src/main/res/layout/toolbar_user_information.xml b/src/main/res/layout/toolbar_user_information.xml
index 50b8a1974c..51f99a0eec 100644
--- a/src/main/res/layout/toolbar_user_information.xml
+++ b/src/main/res/layout/toolbar_user_information.xml
@@ -91,11 +91,11 @@
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
- android:shadowColor="@color/black"
+ android:shadowColor="@color/drawer_shadow"
android:shadowDx="0.5"
android:shadowDy="0"
android:shadowRadius="2"
- android:textColor="@android:color/white"
+ android:textColor="@color/textColor"
android:textSize="@dimen/drawer_header_text"
android:textStyle="bold"
tools:text="Max Mustermann"/>
@@ -107,11 +107,11 @@
android:ellipsize="end"
android:lines="1"
android:maxLines="1"
- android:shadowColor="@color/black"
+ android:shadowColor="@color/drawer_shadow"
android:shadowDx="0.5"
android:shadowDy="0"
android:shadowRadius="2"
- android:textColor="@android:color/white"
+ android:textColor="@color/textColor"
android:textSize="@dimen/drawer_header_subtext"
tools:text="max@127.0.0.1/nextcloud"/>
diff --git a/src/main/res/layout/upload_files_layout.xml b/src/main/res/layout/upload_files_layout.xml
index 80abb5ef9d..bc6a9a3d4a 100644
--- a/src/main/res/layout/upload_files_layout.xml
+++ b/src/main/res/layout/upload_files_layout.xml
@@ -61,7 +61,7 @@
android:layout_height="wrap_content"
android:text="@string/uploader_upload_files_behaviour"
android:id="@+id/upload_files_upload_files_behaviour_text"
- android:textColor="@color/black"
+ android:textColor="@color/textColor"
android:textStyle="bold"
android:paddingBottom="@dimen/standard_half_padding"/>
diff --git a/src/main/res/layout/whats_new_element.xml b/src/main/res/layout/whats_new_element.xml
index 502343bc8c..bab2f7a46d 100644
--- a/src/main/res/layout/whats_new_element.xml
+++ b/src/main/res/layout/whats_new_element.xml
@@ -49,7 +49,7 @@
android:gravity="center"
android:text=""
android:textAppearance="@style/NextcloudTextAppearanceHeadline"
- android:textColor="@color/white"
+ android:textColor="@color/textColor_inverse"
android:textStyle="bold"/>
+
+
+
+ #00ddff
+
+ @color/secondaryTextColor
+
+
+ #ffffff
+ #ffffff
+ #ff888888
+ #eee
+ #DDDDDD
+ #EEEEEE
+ #00000000
+ #a0a0a0
+ #e53935
+
+
+ #757575
+
+ #EEEEEE
+
+
+
+
+ #e9322d
+
+
+
+ #0082c9
+ #006AA3
+ #007cc2
+ #ffffff
+ #7fC0E3
+ #ffffff
+ #ffffff
+ #222222
+ #000000
+ @color/color_accent
+ #000000
+ #D6D7D7
+ #000000
+
+ #ffffff
+ #ffffff
+ #000000
+
+ #888888
+
+
+ #201D2D44
+ #40162233
+
+
+ #D6D7D7
+ #ECECEC
+ #616161
+
+
+
+
diff --git a/src/main/res/values-v21/styles.xml b/src/main/res/values-v21/styles.xml
index 78a391a8a7..e46290d7e3 100644
--- a/src/main/res/values-v21/styles.xml
+++ b/src/main/res/values-v21/styles.xml
@@ -32,5 +32,6 @@
diff --git a/src/main/res/values/colors.xml b/src/main/res/values/colors.xml
index 0ec8772b38..f9f9241728 100644
--- a/src/main/res/values/colors.xml
+++ b/src/main/res/values/colors.xml
@@ -22,9 +22,10 @@
#00ddff
@color/secondaryTextColor
- #000000
- #FFFFFF
- @color/black
+
+
+ #000000
+ #ffffff
#ff888888
#eee
#000000
@@ -41,12 +42,46 @@
#555555
#EEEEEE
#dbdbdb
+ #222222
#e9322d
+
+
+ #0082c9
+ #006AA3
+ #007cc2
+ #ffffff
+ #7fC0E3
+ #ffffff
+ #ffffff
+ #FFFFFF
+ #000000
+ @color/color_accent
+ #ffffff
+ #D6D7D7
+ #000000
+
+ #ffffff
+ #ffffff
+ #000000
+
+ #888888
+
+
+ #201D2D44
+ #40162233
+
+
+ #757575
+ #616161
+ #ECECEC
+
+
+
#FFFFFF
#000000
diff --git a/src/main/res/values/setup.xml b/src/main/res/values/setup.xml
index 02a8fce18e..959fb61ecc 100644
--- a/src/main/res/values/setup.xml
+++ b/src/main/res/values/setup.xml
@@ -45,26 +45,6 @@
-
- #0082c9
- #006AA3
- #007cc2
- @color/white
- #7fC0E3
- #FFFFFF
- @color/color_accent
- @color/white
- #D6D7D7
- @color/black
-
-
- #201D2D44
- #40162233
-
-
- #757575
- #616161
- #ECECEC
true
diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml
index 15d43ffff3..b94a942632 100644
--- a/src/main/res/values/strings.xml
+++ b/src/main/res/values/strings.xml
@@ -56,6 +56,11 @@
Help
Recommend to friend
Imprint
+ Light
+ Dark
+ darkTheme
+ Theme
+
Try %1$s on your device!
I want to invite you to use %1$s on your device.\nDownload here: %2$s
diff --git a/src/main/res/values/styles.xml b/src/main/res/values/styles.xml
index c88ccb96df..3495ce1830 100644
--- a/src/main/res/values/styles.xml
+++ b/src/main/res/values/styles.xml
@@ -20,11 +20,13 @@
-->
-
-
+
+
-
-
-
-
-
-
@@ -155,7 +163,7 @@
@@ -189,7 +197,7 @@
- @drawable/actionbar_progress_indeterminate_horizontal
-
@@ -198,15 +206,15 @@
parent="@style/Theme.MaterialComponents.Light.DarkActionBar.Bridge">
- @color/primary
- @color/primary
- - #ffffff
- - #222222
+ - @color/textColor
+ - @color/actionbar_shadow
- 1
- 1
- @drawable/split_action_bg
-
-
@@ -226,6 +234,8 @@
+
+ - @color/textColor
+
+
+