From bc463f3c64ab04ae766aa2f161cce8d5f0e4b9f3 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 29 Mar 2020 20:03:50 +0530 Subject: Significantly improve app theming (#679) * Update CHANGELOG * Use outlined box style in folder creation dialog * Add user-facing choice for app theme Signed-off-by: Harsh Shandilya --- app/src/main/res/values/arrays.xml | 10 ++++++++++ app/src/main/res/values/colors.xml | 7 ++++++- app/src/main/res/values/prefs.xml | 4 ++++ app/src/main/res/values/strings.xml | 5 +++++ app/src/main/res/values/styles.xml | 13 ++++++++++--- 5 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 app/src/main/res/values/prefs.xml (limited to 'app/src/main/res/values') diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index 37b55432..559a520c 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -59,5 +59,15 @@ file directory + + @string/theme_light + @string/theme_dark + @string/theme_battery_saver + + + light + dark + battery_saver + diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index f8fa1170..13bc049d 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -1,5 +1,5 @@ - + #607d8b #8eacbb @@ -19,4 +19,9 @@ #668eacbb #000000 @color/primary_dark_color + + + + @color/secondary_color + diff --git a/app/src/main/res/values/prefs.xml b/app/src/main/res/values/prefs.xml new file mode 100644 index 00000000..ae01866a --- /dev/null +++ b/app/src/main/res/values/prefs.xml @@ -0,0 +1,4 @@ + + + battery_saver + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ba491c87..ff9a2ea8 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -334,4 +334,9 @@ Password Generator Tap here to clear clipboard Clone a git repository to sync changes + App theme + Light + Dark + Set by Battery Saver + System default diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index bed9a13e..090b56b9 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -20,6 +20,7 @@ @style/AppTheme.Dialog @style/AppTheme.Dialog @style/ThemeOverlay.MaterialComponents.ActionBar + @style/TextInputLayoutBase - + +