From e96d0bd7999ff25cb4739d658b170a49a3198edf Mon Sep 17 00:00:00 2001 From: Ezerous Date: Sat, 27 Jun 2020 20:11:52 +0300 Subject: [PATCH] Colors refactoring --- app/src/main/java/gr/thmmy/mthmmy/base/BaseActivity.java | 8 ++++---- .../main/java/gr/thmmy/mthmmy/base/BaseApplication.java | 2 +- app/src/main/res/layout/activity_about.xml | 2 +- app/src/main/res/layout/activity_settings.xml | 2 +- app/src/main/res/layout/activity_upload.xml | 6 +++--- .../main/res/layout/activity_upload_fields_builder.xml | 2 +- .../res/layout/activity_upload_filename_info_popup.xml | 2 +- app/src/main/res/layout/download_prompt_dialog.xml | 2 +- app/src/main/res/layout/fragment_bookmarks.xml | 2 +- app/src/main/res/layout/fragment_forum_board_row.xml | 2 +- app/src/main/res/layout/fragment_forum_category_row.xml | 2 +- app/src/main/res/layout/fragment_recent_row.xml | 2 +- app/src/main/res/layout/fragment_unread_row.xml | 2 +- app/src/main/res/values/colors.xml | 7 ++++--- app/src/main/res/values/styles.xml | 6 +++--- 15 files changed, 25 insertions(+), 24 deletions(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/base/BaseActivity.java b/app/src/main/java/gr/thmmy/mthmmy/base/BaseActivity.java index 6c571129..d31b7993 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/base/BaseActivity.java +++ b/app/src/main/java/gr/thmmy/mthmmy/base/BaseActivity.java @@ -206,7 +206,7 @@ public abstract class BaseActivity extends AppCompatActivity { */ protected void createDrawer() { final int primaryColor = ContextCompat.getColor(this, R.color.iron); - final int selectedPrimaryColor = ContextCompat.getColor(this, R.color.primary_dark); + final int selectedPrimaryColor = ContextCompat.getColor(this, R.color.primary_light); final int selectedSecondaryColor = ContextCompat.getColor(this, R.color.accent); PrimaryDrawerItem homeItem, bookmarksItem, settingsItem, aboutItem, shoutboxItem; @@ -361,7 +361,7 @@ public abstract class BaseActivity extends AppCompatActivity { .withActivity(this) .withCompactStyle(true) .withSelectionListEnabledForSingleProfile(false) - .withHeaderBackground(R.color.primary) + .withHeaderBackground(R.color.primary_dark) .withTextColor(getResources().getColor(R.color.iron)) .addProfiles(profileDrawerItem) .withOnAccountHeaderListener((view, profile, currentProfile) -> { @@ -390,7 +390,7 @@ public abstract class BaseActivity extends AppCompatActivity { .withActivity(this) .withToolbar(toolbar) .withDrawerWidthDp((int) BaseApplication.getInstance().getWidthInDp() / 2) - .withSliderBackgroundColor(ContextCompat.getColor(this, R.color.primary_light)) + .withSliderBackgroundColor(ContextCompat.getColor(this, R.color.primary_lighter)) .withAccountHeader(accountHeader) .withOnDrawerItemClickListener((view, position, drawerItem) -> { if (drawerItem.equals(HOME_ID)) { @@ -494,7 +494,7 @@ public abstract class BaseActivity extends AppCompatActivity { .icon(FontAwesome.Icon.faw_user) .paddingDp(10) .color(ContextCompat.getColor(this, R.color.iron)) - .backgroundColor(ContextCompat.getColor(this, R.color.primary_light))); + .backgroundColor(ContextCompat.getColor(this, R.color.primary_lighter))); } //-------------------------------------------LOGOUT------------------------------------------------- diff --git a/app/src/main/java/gr/thmmy/mthmmy/base/BaseApplication.java b/app/src/main/java/gr/thmmy/mthmmy/base/BaseApplication.java index dea0808b..49ff1c0e 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/base/BaseApplication.java +++ b/app/src/main/java/gr/thmmy/mthmmy/base/BaseApplication.java @@ -183,7 +183,7 @@ public class BaseApplication extends MultiDexApplication { return new IconicsDrawable(ctx).icon(FontAwesome.Icon.faw_user) .paddingDp(10) .color(ContextCompat.getColor(ctx, R.color.iron)) - .backgroundColor(ContextCompat.getColor(ctx, R.color.primary)); + .backgroundColor(ContextCompat.getColor(ctx, R.color.primary_lighter)); } return super.placeholder(ctx, tag); } diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml index 87d99723..8bd337e9 100644 --- a/app/src/main/res/layout/activity_about.xml +++ b/app/src/main/res/layout/activity_about.xml @@ -28,7 +28,7 @@ android:id="@+id/scrollview" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="@color/primary_light" + android:background="@color/primary_lighter" app:layout_behavior="@string/appbar_scrolling_view_behavior"> \ No newline at end of file diff --git a/app/src/main/res/layout/activity_upload.xml b/app/src/main/res/layout/activity_upload.xml index 2282efae..1760ff1f 100644 --- a/app/src/main/res/layout/activity_upload.xml +++ b/app/src/main/res/layout/activity_upload.xml @@ -28,7 +28,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="top|start" - android:background="@color/primary_light" + android:background="@color/primary_lighter" android:paddingStart="@dimen/activity_horizontal_margin" android:paddingEnd="@dimen/activity_horizontal_margin" app:layout_behavior="@string/appbar_scrolling_view_behavior" @@ -37,7 +37,7 @@ @@ -46,7 +46,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="8dp" - android:background="@color/primary_light" + android:background="@color/primary_lighter" android:orientation="vertical"> diff --git a/app/src/main/res/layout/fragment_bookmarks.xml b/app/src/main/res/layout/fragment_bookmarks.xml index 8d1372c0..aa1bbaab 100644 --- a/app/src/main/res/layout/fragment_bookmarks.xml +++ b/app/src/main/res/layout/fragment_bookmarks.xml @@ -9,7 +9,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="top|start" - android:background="@color/primary_light" + android:background="@color/primary_lighter" android:scrollbars="none" app:layout_behavior="@string/appbar_scrolling_view_behavior"> diff --git a/app/src/main/res/layout/fragment_forum_board_row.xml b/app/src/main/res/layout/fragment_forum_board_row.xml index 871c5450..3f6eb4e6 100644 --- a/app/src/main/res/layout/fragment_forum_board_row.xml +++ b/app/src/main/res/layout/fragment_forum_board_row.xml @@ -2,7 +2,7 @@ + android:background="@color/primary_lighter"> #2B2B2B - #333333 - #3C3C3C - #494949 + #333333 + #3C3C3C + #494949 + #222222 #26A69A #E7E7E7 #757575 diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 1e092378..28fe1690 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -2,7 +2,7 @@ @@ -86,6 +86,6 @@