From c50663fb0ee04a2e4724b30883e32326d2559a13 Mon Sep 17 00:00:00 2001 From: Nishith Khanna Date: Tue, 27 Sep 2022 17:26:28 +0530 Subject: [PATCH] Theme app according to our palette --- app/build.gradle | 1 + .../main/res/drawable/widget_background.xml | 2 +- app/src/main/res/layout/activity_accounts.xml | 2 +- app/src/main/res/values-night/bools.xml | 4 --- app/src/main/res/values-night/colors.xml | 11 ------- app/src/main/res/values/bools.xml | 4 --- app/src/main/res/values/colors.xml | 30 +++++++++---------- app/src/main/res/values/style.xml | 8 ++--- settings.gradle | 1 + 9 files changed, 23 insertions(+), 40 deletions(-) delete mode 100644 app/src/main/res/values-night/bools.xml delete mode 100644 app/src/main/res/values-night/colors.xml delete mode 100644 app/src/main/res/values/bools.xml diff --git a/app/build.gradle b/app/build.gradle index f41a5016..be6b5805 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -90,6 +90,7 @@ dependencies { implementation "androidx.work:work-runtime:2.7.1" implementation 'androidx.test:core:1.4.0' implementation 'com.jakewharton.timber:timber:5.0.1' + implementation 'foundation.e:elib:0.0.1-alpha11' androidTestImplementation 'androidx.test:runner:1.4.0' androidTestImplementation 'androidx.test:rules:1.4.0' diff --git a/app/src/main/res/drawable/widget_background.xml b/app/src/main/res/drawable/widget_background.xml index 52e4825e..33f8c8ad 100644 --- a/app/src/main/res/drawable/widget_background.xml +++ b/app/src/main/res/drawable/widget_background.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_accounts.xml b/app/src/main/res/layout/activity_accounts.xml index 2cf82845..1de0b968 100644 --- a/app/src/main/res/layout/activity_accounts.xml +++ b/app/src/main/res/layout/activity_accounts.xml @@ -15,7 +15,7 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" - app:navigationIcon="@drawable/ic_arrow_back" /> + app:navigationIcon="@drawable/e_ic_back" /> - - false - \ No newline at end of file diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml deleted file mode 100644 index b427f4fe..00000000 --- a/app/src/main/res/values-night/colors.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - #272727 - #272727 - #5DB2FF - #DEFFFFFF - #99FFFFFF - #61FFFFFF - #121212 - #2F2F2F - \ No newline at end of file diff --git a/app/src/main/res/values/bools.xml b/app/src/main/res/values/bools.xml deleted file mode 100644 index 537716fa..00000000 --- a/app/src/main/res/values/bools.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - true - \ No newline at end of file diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index bae92f3d..41e5cc12 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -1,13 +1,13 @@ - #FFFFFF - #FFFFFF - #0086FF - #DE000000 - #99000000 - #61000000 - #DCDCDC - #FAFAFA + @color/e_action_bar + @color/e_action_bar + @color/e_accent + @color/e_primary_text_color + @color/e_secondary_text_color + @color/e_disabled_color + @color/e_background_overlay + @color/e_background #FF0000 #46CF23 #FFFBFB @@ -15,12 +15,12 @@ #1c000000 #42221f1f - #33000000 - #99FFFFFF - #DEFFFFFF - #61FFFFFF - #5DB2FF + @color/e_launcher_widget_background + @color/e_secondary_text_color_dark + @color/e_primary_text_color_dark + @color/e_disabled_color_dark + @color/e_accent_dark - #61000000 - #99000000 + @color/e_disabled_color_light + @color/e_secondary_text_color_light \ No newline at end of file diff --git a/app/src/main/res/values/style.xml b/app/src/main/res/values/style.xml index 0bcf0a0e..906c04d5 100644 --- a/app/src/main/res/values/style.xml +++ b/app/src/main/res/values/style.xml @@ -8,10 +8,10 @@ @color/colorPrimary @color/colorPrimaryDark @color/colorPrimaryDark - @color/colorAccent - @color/colorAccent - @bool/isDay - @bool/isDay + @color/textColorPrimary + @color/textColorPrimary + @bool/isLight + @bool/isLight @color/background diff --git a/settings.gradle b/settings.gradle index a18c791d..35988f79 100644 --- a/settings.gradle +++ b/settings.gradle @@ -11,6 +11,7 @@ dependencyResolutionManagement { google() mavenCentral() maven { url "https://jitpack.io" } + maven { url 'https://gitlab.e.foundation/api/v4/groups/9/-/packages/maven'} } } rootProject.name = "eDrive" -- GitLab