From cf00f77585625ff0591075783fc62d30f88814eb Mon Sep 17 00:00:00 2001 From: A117870935 Date: Mon, 15 May 2023 18:27:42 +0530 Subject: [PATCH] Code refactoring. --- .../java/com/owncloud/android/MainApp.java | 2 +- .../res/color/dialog_positive_btn_color.xml | 2 - app/src/main/res/values-de/strings.xml | 2 + app/src/main/res/values-night/colors.xml | 67 ++++++++++++- app/src/main/res/values/colors.xml | 94 ++++++++++++++++++- app/src/main/res/values/dimens.xml | 2 +- app/src/main/res/values/strings.xml | 2 + app/src/main/res/values/styles.xml | 4 +- 8 files changed, 165 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/com/owncloud/android/MainApp.java b/app/src/main/java/com/owncloud/android/MainApp.java index 9585a5c3fea6..b1f2b7581fab 100644 --- a/app/src/main/java/com/owncloud/android/MainApp.java +++ b/app/src/main/java/com/owncloud/android/MainApp.java @@ -284,7 +284,7 @@ public static AppComponent getAppComponent() { @SuppressFBWarnings("ST") @Override public void onCreate() { - //enableStrictMode(); + enableStrictMode(); viewThemeUtils = viewThemeUtilsProvider.get(); diff --git a/app/src/main/res/color/dialog_positive_btn_color.xml b/app/src/main/res/color/dialog_positive_btn_color.xml index 061efcc9d9e4..5913e0da1a1d 100644 --- a/app/src/main/res/color/dialog_positive_btn_color.xml +++ b/app/src/main/res/color/dialog_positive_btn_color.xml @@ -1,7 +1,5 @@ - - \ No newline at end of file diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index a0f6adb420fd..8e59a39826c8 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -975,6 +975,7 @@ %d ausgewählt %d ausgewählt + Ersetzen Alle ersetzen Beide behalten @@ -985,4 +986,5 @@ %d Dateikonflikte %1$s ist im Zielordner bereits vorhanden. Möchten Sie die bestehende Datei behalten oder überschreiben? Die Dateien sind im Zielordner bereits vorhanden. Möchten Sie die bestehenden Dateien behalten oder überschreiben? + diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml index 0ec6735d4cc8..88a29668c4cd 100644 --- a/app/src/main/res/values-night/colors.xml +++ b/app/src/main/res/values-night/colors.xml @@ -31,7 +31,6 @@ #121212 #000000 #818181 - @color/grey_0 #222222 #ffffff @@ -49,4 +48,70 @@ #1E1E1E @android:color/white + + + #FFFFFF + @color/grey_30 + @color/grey_30 + #CCCCCC + @color/grey_70 + @color/grey_80 + #2D2D2D + @color/grey_70 + @color/grey_70 + + + @color/grey_80 + @color/grey_0 + + + @color/grey_80 + @color/grey_0 + + + @color/grey_60 + @color/grey_0 + @color/grey_0 + @color/grey_30 + #FFFFFF + @color/grey_30 + @color/grey_80 + #FFFFFF + + + @color/grey_80 + @color/grey_30 + @color/grey_0 + + + @color/grey_80 + @color/grey_0 + @color/grey_80 + + + @color/grey_70 + @color/grey_60 + @color/grey_70 + @color/grey_60 + + + @color/grey_70 + @color/grey_70 + + + #FFFFFF + @color/grey_30 + @color/grey_0 + @color/grey_0 + @color/grey_0 + @color/grey_0 + @color/grey_60 + @color/grey_0 + #FFFFFF + + + #121212 + @color/grey_0 + @color/grey_80 + @color/grey_80 diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index f036313412d0..1ddf1a93ca08 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -39,9 +39,7 @@ #222222 #EEEEEE #BDBDBD - #F2F2F2 #666666 - #B2B2B2 @@ -59,7 +57,6 @@ #D6D7D7 #000000 #ededed - #191919 #000000 #ffffff @@ -84,4 +81,95 @@ @android:color/white #666666 #A5A5A5 + + + #191919 + @color/primary + #191919 + #191919 + @color/grey_30 + @android:color/white + #FFFFFF + @color/grey_0 + #CCCCCC + #77c4ff + #B3FFFFFF + @color/grey_10 + + + #101010 + #F2F2F2 + #E5E5E5 + #B2B2B2 + #666666 + #4C4C4C + #333333 + + + @color/design_snackbar_background_color + @color/white + + + #FFFFFF + #191919 + + + @color/grey_0 + #191919 + @color/primary + #191919 + @color/primary + @color/grey_30 + @color/white + #191919 + + + #FFFFFF + #191919 + #191919 + + + #FFFFFF + #191919 + #FFFFFF + + + @color/primary + #F399C7 + @color/grey_0 + @color/grey_0 + #FFFFFF + @color/grey_30 + @color/grey_0 + @color/grey_0 + + + @color/primary + @color/grey_30 + @color/grey_30 + #CCCCCC + + + #191919 + @color/grey_30 + #191919 + #191919 + #191919 + #191919 + @color/grey_30 + #191919 + #000000 + #191919 + #F6E5EB + #C16F81 + #0D39DF + #0099ff + + + @color/grey_0 + #191919 + @color/grey_0 + @color/grey_30 + #77b6bb + #5077b6bb diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index d976f96e19d6..7c23544141a7 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -31,4 +31,4 @@ 145dp 1dp 13sp - + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 6b69fcad68a2..e7a403fd36de 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1078,6 +1078,7 @@ Multiple images Cannot create local file Invalid filename for local file + Replace Replace all Keep both @@ -1089,6 +1090,7 @@ %1$s already exists in this location. Do you want to replace it with the file you are moving? The files already exist in this location. Do you want to replace them with the files you are moving? + Groupfolders +%1$d diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 2b800145229c..2d03c476d83b 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -486,11 +486,11 @@ @color/white - -