From f29122e3ef557db664325ad3f479691055b2e1b4 Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 29 Nov 2022 09:44:11 +0100 Subject: [PATCH] change colors --- app/src/main/AndroidManifest.xml | 6 ++++ .../activities/ThemeSettingsActivity.java | 6 ++-- app/src/main/res/drawable/ic_display_less.xml | 2 +- app/src/main/res/drawable/ic_display_more.xml | 2 +- app/src/main/res/drawable/reaction_border.xml | 2 +- app/src/main/res/drawable/reaction_voted.xml | 4 +-- .../main/res/drawable/translation_border.xml | 2 +- app/src/main/res/layout/activity_about.xml | 2 +- .../res/layout/activity_admin_account.xml | 2 +- .../main/res/layout/activity_edit_image.xml | 2 -- app/src/main/res/layout/activity_profile.xml | 2 +- .../res/layout/activity_theme_settings.xml | 29 ++++++++++++++++ app/src/main/res/layout/drawer_account.xml | 2 +- .../main/res/layout/drawer_account_list.xml | 2 +- .../main/res/layout/drawer_announcement.xml | 2 +- .../main/res/layout/drawer_conversation.xml | 2 +- .../main/res/layout/drawer_domain_block.xml | 2 +- app/src/main/res/layout/drawer_follow.xml | 2 +- .../main/res/layout/drawer_instance_reg.xml | 2 +- app/src/main/res/layout/drawer_status.xml | 8 ++--- .../main/res/layout/drawer_status_compose.xml | 2 +- .../main/res/layout/drawer_status_draft.xml | 2 +- .../res/layout/drawer_status_filtered.xml | 2 +- .../layout/drawer_status_filtered_hide.xml | 2 +- .../main/res/layout/drawer_status_history.xml | 2 +- .../res/layout/drawer_status_scheduled.xml | 2 +- .../main/res/layout/drawer_status_simple.xml | 2 +- app/src/main/res/layout/drawer_suggestion.xml | 2 +- app/src/main/res/layout/drawer_tag.xml | 2 +- app/src/main/res/layout/popup_add_filter.xml | 4 +-- app/src/main/res/layout/popup_links.xml | 12 +++---- .../main/res/layout/popup_status_theme.xml | 4 +-- app/src/main/res/layout/thumbnail.xml | 2 +- app/src/main/res/values/styles.xml | 33 +++---------------- 34 files changed, 83 insertions(+), 73 deletions(-) create mode 100644 app/src/main/res/layout/activity_theme_settings.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index b6e762eb..9294e2a7 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -243,6 +243,12 @@ android:configChanges="keyboardHidden|orientation|screenSize" android:label="@string/action_about" android:theme="@style/AppThemeBar" /> + + + android:color="?colorPrimary" /> diff --git a/app/src/main/res/drawable/reaction_voted.xml b/app/src/main/res/drawable/reaction_voted.xml index 267b5815..f91d0f74 100644 --- a/app/src/main/res/drawable/reaction_voted.xml +++ b/app/src/main/res/drawable/reaction_voted.xml @@ -1,8 +1,8 @@ - + + android:color="?colorPrimary" /> diff --git a/app/src/main/res/drawable/translation_border.xml b/app/src/main/res/drawable/translation_border.xml index 90d68440..fcde2629 100644 --- a/app/src/main/res/drawable/translation_border.xml +++ b/app/src/main/res/drawable/translation_border.xml @@ -2,6 +2,6 @@ + android:color="?colorPrimary" /> diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml index 03cdd8dc..3333b94a 100644 --- a/app/src/main/res/layout/activity_about.xml +++ b/app/src/main/res/layout/activity_about.xml @@ -54,7 +54,7 @@ android:gravity="center_vertical" android:padding="5dp" android:text="@string/about_developer" - android:textColor="?colorAccent" + android:textColor="?colorPrimary" android:textSize="16sp" android:visibility="gone" /> diff --git a/app/src/main/res/layout/activity_admin_account.xml b/app/src/main/res/layout/activity_admin_account.xml index cdc45b9c..fee5182b 100644 --- a/app/src/main/res/layout/activity_admin_account.xml +++ b/app/src/main/res/layout/activity_admin_account.xml @@ -32,7 +32,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:fitsSystemWindows="true" - app:contentScrim="?colorPrimaryDark" + app:contentScrim="?colorPrimary" app:expandedTitleGravity="top" app:expandedTitleMarginEnd="64dp" app:expandedTitleMarginStart="48dp" diff --git a/app/src/main/res/layout/activity_edit_image.xml b/app/src/main/res/layout/activity_edit_image.xml index 39a6f5ab..7c426da8 100644 --- a/app/src/main/res/layout/activity_edit_image.xml +++ b/app/src/main/res/layout/activity_edit_image.xml @@ -73,7 +73,6 @@ android:id="@+id/rvConstraintTools" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="@color/tool_bg" android:orientation="horizontal" android:paddingTop="4dp" android:paddingBottom="4dp" @@ -87,7 +86,6 @@ android:id="@+id/rvFilterView" android:layout_width="0dp" android:layout_height="0dp" - android:background="@color/tool_bg" android:orientation="horizontal" app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" app:layout_constraintBottom_toBottomOf="@+id/rvConstraintTools" diff --git a/app/src/main/res/layout/activity_profile.xml b/app/src/main/res/layout/activity_profile.xml index 203715ef..d9463538 100644 --- a/app/src/main/res/layout/activity_profile.xml +++ b/app/src/main/res/layout/activity_profile.xml @@ -32,7 +32,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:fitsSystemWindows="true" - app:contentScrim="?colorPrimaryDark" + app:contentScrim="?colorPrimary" app:expandedTitleGravity="top" app:expandedTitleMarginEnd="64dp" app:expandedTitleMarginStart="48dp" diff --git a/app/src/main/res/layout/activity_theme_settings.xml b/app/src/main/res/layout/activity_theme_settings.xml new file mode 100644 index 00000000..bcdb36dd --- /dev/null +++ b/app/src/main/res/layout/activity_theme_settings.xml @@ -0,0 +1,29 @@ + + + + + + + + diff --git a/app/src/main/res/layout/drawer_account.xml b/app/src/main/res/layout/drawer_account.xml index 0d31b5cd..25b46fc5 100644 --- a/app/src/main/res/layout/drawer_account.xml +++ b/app/src/main/res/layout/drawer_account.xml @@ -17,7 +17,7 @@ diff --git a/app/src/main/res/layout/drawer_domain_block.xml b/app/src/main/res/layout/drawer_domain_block.xml index 38c32d0c..0de61977 100644 --- a/app/src/main/res/layout/drawer_domain_block.xml +++ b/app/src/main/res/layout/drawer_domain_block.xml @@ -19,7 +19,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="12dp" - app:cardBackgroundColor="?carViewBackground" + app:cardElevation="5dp" app:strokeWidth="0dp"> diff --git a/app/src/main/res/layout/drawer_follow.xml b/app/src/main/res/layout/drawer_follow.xml index 98779605..b71d85c0 100644 --- a/app/src/main/res/layout/drawer_follow.xml +++ b/app/src/main/res/layout/drawer_follow.xml @@ -21,7 +21,7 @@ android:layout_height="wrap_content" android:layout_margin="6dp" app:cardElevation="5dp" - app:cardBackgroundColor="?carViewBackground" + app:strokeWidth="0dp"> diff --git a/app/src/main/res/layout/drawer_status.xml b/app/src/main/res/layout/drawer_status.xml index 37edbccd..f1efcd08 100644 --- a/app/src/main/res/layout/drawer_status.xml +++ b/app/src/main/res/layout/drawer_status.xml @@ -20,7 +20,7 @@ android:id="@+id/cardview_container" android:layout_width="match_parent" android:layout_height="wrap_content" - app:cardBackgroundColor="?carViewBackground" + android:layout_marginHorizontal="@dimen/card_margin" android:layout_marginTop="@dimen/card_margin" android:clipToPadding="false" @@ -197,7 +197,7 @@ android:layout_gravity="center_vertical|end" android:layout_marginStart="6dp" android:layout_marginEnd="6dp" - android:tint="?colorAccent" + android:tint="?colorPrimary" android:visibility="gone" /> @@ -440,7 +440,7 @@ android:alpha="0.8" android:gravity="center_vertical" android:padding="6dp" - android:textColor="?colorAccent" + android:textColor="?colorPrimary" android:visibility="gone" tools:text="1 January 2021, 12:00" tools:visibility="visible" /> @@ -455,7 +455,7 @@ android:alpha="0.8" android:gravity="center_vertical" android:padding="6dp" - android:textColor="?colorAccent" + android:textColor="?colorPrimary" android:visibility="gone" tools:text="Fedilab" tools:visibility="visible" /> diff --git a/app/src/main/res/layout/drawer_status_compose.xml b/app/src/main/res/layout/drawer_status_compose.xml index 962cc127..75f0e6b4 100644 --- a/app/src/main/res/layout/drawer_status_compose.xml +++ b/app/src/main/res/layout/drawer_status_compose.xml @@ -21,7 +21,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:clipChildren="false" - app:cardBackgroundColor="?carViewBackground" + android:clipToPadding="false" app:cardElevation="5dp" app:strokeWidth="0dp"> diff --git a/app/src/main/res/layout/drawer_status_draft.xml b/app/src/main/res/layout/drawer_status_draft.xml index 861d9a22..a51911c4 100644 --- a/app/src/main/res/layout/drawer_status_draft.xml +++ b/app/src/main/res/layout/drawer_status_draft.xml @@ -21,7 +21,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="12dp" - app:cardBackgroundColor="?carViewBackground" + app:cardElevation="5dp" app:strokeWidth="0dp"> diff --git a/app/src/main/res/layout/drawer_status_filtered.xml b/app/src/main/res/layout/drawer_status_filtered.xml index a13e8e2f..7eee092e 100644 --- a/app/src/main/res/layout/drawer_status_filtered.xml +++ b/app/src/main/res/layout/drawer_status_filtered.xml @@ -23,7 +23,7 @@ android:layout_marginHorizontal="@dimen/card_margin" android:layout_marginTop="@dimen/card_margin" android:clipChildren="false" - app:cardBackgroundColor="?carViewBackground" + android:clipToPadding="false" app:cardElevation="5dp" app:strokeWidth="0dp"> diff --git a/app/src/main/res/layout/drawer_status_filtered_hide.xml b/app/src/main/res/layout/drawer_status_filtered_hide.xml index f3c093cd..19385238 100644 --- a/app/src/main/res/layout/drawer_status_filtered_hide.xml +++ b/app/src/main/res/layout/drawer_status_filtered_hide.xml @@ -23,7 +23,7 @@ android:layout_marginHorizontal="@dimen/card_margin" android:layout_marginTop="@dimen/card_margin" android:clipChildren="false" - app:cardBackgroundColor="?carViewBackground" + android:clipToPadding="false" app:cardElevation="5dp" app:strokeWidth="0dp"> diff --git a/app/src/main/res/layout/drawer_status_history.xml b/app/src/main/res/layout/drawer_status_history.xml index 81667773..4507a628 100644 --- a/app/src/main/res/layout/drawer_status_history.xml +++ b/app/src/main/res/layout/drawer_status_history.xml @@ -24,7 +24,7 @@ android:layout_marginTop="12dp" android:clipChildren="false" android:clipToPadding="false" - app:cardBackgroundColor="?carViewBackground" + app:cardElevation="5dp" app:strokeWidth="0dp"> diff --git a/app/src/main/res/layout/drawer_status_scheduled.xml b/app/src/main/res/layout/drawer_status_scheduled.xml index 2d0167a4..c55ba39b 100644 --- a/app/src/main/res/layout/drawer_status_scheduled.xml +++ b/app/src/main/res/layout/drawer_status_scheduled.xml @@ -21,7 +21,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="12dp" - app:cardBackgroundColor="?carViewBackground" + app:cardElevation="5dp" app:strokeWidth="0dp"> diff --git a/app/src/main/res/layout/drawer_status_simple.xml b/app/src/main/res/layout/drawer_status_simple.xml index 09766b2b..50d0e314 100644 --- a/app/src/main/res/layout/drawer_status_simple.xml +++ b/app/src/main/res/layout/drawer_status_simple.xml @@ -22,7 +22,7 @@ android:layout_height="wrap_content" android:layout_marginHorizontal="12dp" android:layout_marginTop="12dp" - app:cardBackgroundColor="?carViewBackground" + android:clipChildren="false" android:clipToPadding="false" app:cardElevation="5dp" diff --git a/app/src/main/res/layout/drawer_suggestion.xml b/app/src/main/res/layout/drawer_suggestion.xml index 0c86c2c0..966c2eea 100644 --- a/app/src/main/res/layout/drawer_suggestion.xml +++ b/app/src/main/res/layout/drawer_suggestion.xml @@ -21,7 +21,7 @@ android:layout_height="wrap_content" android:layout_marginHorizontal="6dp" android:layout_marginTop="6dp" - app:cardBackgroundColor="?carViewBackground" + app:cardElevation="5dp" app:strokeWidth="0dp"> diff --git a/app/src/main/res/layout/drawer_tag.xml b/app/src/main/res/layout/drawer_tag.xml index 656e2bba..bcc24c41 100644 --- a/app/src/main/res/layout/drawer_tag.xml +++ b/app/src/main/res/layout/drawer_tag.xml @@ -19,7 +19,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="12dp" - app:cardBackgroundColor="?carViewBackground" + app:cardElevation="5dp" app:strokeWidth="0dp"> diff --git a/app/src/main/res/layout/popup_add_filter.xml b/app/src/main/res/layout/popup_add_filter.xml index 9dd4497d..8e74b6d2 100644 --- a/app/src/main/res/layout/popup_add_filter.xml +++ b/app/src/main/res/layout/popup_add_filter.xml @@ -64,7 +64,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/filter_context_explanations" - android:textColor="?colorAccent" + android:textColor="?colorPrimary" android:textSize="12sp" /> @@ -139,7 +139,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/filter_action_explanations" - android:textColor="?colorAccent" + android:textColor="?colorPrimary" android:textSize="12sp" /> + app:drawableTint="?colorPrimary" /> + app:drawableTint="?colorPrimary" /> + app:drawableTint="?colorPrimary" /> diff --git a/app/src/main/res/layout/popup_status_theme.xml b/app/src/main/res/layout/popup_status_theme.xml index 87983e20..71dcf2f6 100644 --- a/app/src/main/res/layout/popup_status_theme.xml +++ b/app/src/main/res/layout/popup_status_theme.xml @@ -124,7 +124,7 @@ android:layout_marginTop="6dp" android:text="@string/show_content" android:textAppearance="@style/TextAppearance.AppCompat.Body2" - android:textColor="?colorAccent" /> + android:textColor="?colorPrimary" /> - - + - -