diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 9294e2a7..a9e48709 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -30,7 +30,7 @@ android:roundIcon="@mipmap/ic_launcher_bubbles_round" android:supportsRtl="true" android:requestLegacyExternalStorage="true" - android:theme="@style/AppThemeDark" + android:theme="@style/AppTheme" android:usesCleartextTraffic="true" tools:replace="android:allowBackup"> @@ -320,29 +320,29 @@ + android:theme="@style/AppThemeBar" /> { List ids = new ArrayList<>(); @@ -107,7 +107,7 @@ public class AccountListAdapter extends RecyclerView.Adapter { accountList.remove(account); diff --git a/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java b/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java index b70d3f0d..a3fb426e 100644 --- a/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java +++ b/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java @@ -1237,7 +1237,7 @@ public class StatusAdapter extends RecyclerView.Adapter layoutMediaBinding.media.setScaleType(ImageView.ScaleType.CENTER_CROP); } if (statusToDeal.sensitive) { - Helper.changeDrawableColor(context, layoutMediaBinding.viewHide, R.color.red_1); + Helper.changeDrawableColor(context, layoutMediaBinding.viewHide, ThemeHelper.getAttColor(context, R.attr.colorError)); } else { Helper.changeDrawableColor(context, layoutMediaBinding.viewHide, R.color.white); } @@ -1402,7 +1402,7 @@ public class StatusAdapter extends RecyclerView.Adapter .into(layoutMediaBinding.media); } if (statusToDeal.sensitive) { - Helper.changeDrawableColor(context, layoutMediaBinding.viewHide, R.color.red_1); + Helper.changeDrawableColor(context, layoutMediaBinding.viewHide, ThemeHelper.getAttColor(context, R.attr.colorError)); } else { Helper.changeDrawableColor(context, layoutMediaBinding.viewHide, R.color.white); } diff --git a/app/src/main/res/drawable/media_message_border.xml b/app/src/main/res/drawable/media_message_border.xml index 1385c993..6c221bca 100644 --- a/app/src/main/res/drawable/media_message_border.xml +++ b/app/src/main/res/drawable/media_message_border.xml @@ -1,10 +1,10 @@ - + + android:color="?colorPrimary" /> + android:color="?colorError" /> + app:strokeColor="?colorError" /> diff --git a/app/src/main/res/layout/activity_admin_account.xml b/app/src/main/res/layout/activity_admin_account.xml index fee5182b..57f0e20f 100644 --- a/app/src/main/res/layout/activity_admin_account.xml +++ b/app/src/main/res/layout/activity_admin_account.xml @@ -147,7 +147,7 @@ android:layout_marginTop="5dp" android:background="@drawable/red_border" android:text="Peertube" - android:textColor="@color/red_1" + android:textColor="?colorError" android:visibility="gone" tools:ignore="HardcodedText" /> diff --git a/app/src/main/res/layout/activity_profile.xml b/app/src/main/res/layout/activity_profile.xml index d9463538..9979a096 100644 --- a/app/src/main/res/layout/activity_profile.xml +++ b/app/src/main/res/layout/activity_profile.xml @@ -172,7 +172,7 @@ android:layout_marginTop="5dp" android:background="@drawable/red_border" android:text="Peertube" - android:textColor="@color/red_1" + android:textColor="?colorError" android:visibility="gone" tools:ignore="HardcodedText" /> @@ -191,7 +191,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" - android:textColor="@color/red" + android:textColor="?colorError" android:visibility="gone" /> + android:text="@string/disclaimer_full" /> + android:textColor="?colorError" /> diff --git a/app/src/main/res/layout/fragment_login_register_mastodon.xml b/app/src/main/res/layout/fragment_login_register_mastodon.xml index 9bf162f9..f2be10fb 100644 --- a/app/src/main/res/layout/fragment_login_register_mastodon.xml +++ b/app/src/main/res/layout/fragment_login_register_mastodon.xml @@ -31,7 +31,7 @@ android:background="@drawable/red_border" android:gravity="center" android:padding="5dp" - android:textColor="@color/red_1" + android:textColor="?colorError" android:visibility="gone" /> @@ -131,9 +130,7 @@ android:layout_marginBottom="40dp" android:background="@drawable/media_message_border" android:gravity="center" - android:text="@string/media_ready" - android:textColor="@color/dark_text" android:textSize="14sp" android:visibility="gone" /> diff --git a/app/src/main/res/layout/popup_manage_accounts_list.xml b/app/src/main/res/layout/popup_manage_accounts_list.xml index 9610980a..e632e44e 100644 --- a/app/src/main/res/layout/popup_manage_accounts_list.xml +++ b/app/src/main/res/layout/popup_manage_accounts_list.xml @@ -13,7 +13,6 @@ android:layout_height="wrap_content" android:layout_gravity="center" android:gravity="center" - android:textColor="@color/titleb" android:textSize="20sp" /> + app:iconTint="?colorError" + app:rippleColor="?colorError" /> + app:iconTint="?colorError" + app:rippleColor="?colorError" + app:strokeColor="?colorError" /> diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml new file mode 100644 index 00000000..4aa32408 --- /dev/null +++ b/app/src/main/res/values-night/themes.xml @@ -0,0 +1,86 @@ + + + + + + + + + + diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 7057d2af..51ea9a7d 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -2,51 +2,80 @@ - #191b22 - #606984 - #595aff - #8c8dff + #6750A4 + #6750A4 + #FFFFFF + #EADDFF + #21005D + #625B71 + #FFFFFF + #E8DEF8 + #1D192B + #7D5260 + #FFFFFF + #FFD8E4 + #31111D + #B3261E + #FFFFFF + #F9DEDC + #410E0B + #79747E + #FFFBFE + #1C1B1F + #FFFBFE + #1C1B1F + #E7E0EC + #49454F + #313033 + #F4EFF4 + #D0BCFF + #000000 + #6750A4 + #CAC4D0 + #000000 + #D0BCFF + #381E72 + #4F378B + #EADDFF + #CCC2DC + #332D41 + #4A4458 + #E8DEF8 + #EFB8C8 + #492532 + #633B48 + #FFD8E4 + #F2B8B5 + #601410 + #8C1D18 + #F9DEDC + #938F99 + #1C1B1F + #E6E1E5 + #1C1B1F + #E6E1E5 + #49454F + #CAC4D0 + #E6E1E5 + #313033 + #6750A4 + #000000 + #D0BCFF + #49454F + #000000 - #8c8dff - #595aff - - - #6200EE - #03DAC6 - #000 - #3700B3 - - - - - - #d9d9d9 - @color/mastodonC4 #FFEA00 #42A5F5 - #f3f3f3 #ca8f04 #2b90d9 #00000000 #77000000 - #FFF - #009688 - #F44336 - #FFCDD2 - #D7CCC8 + #FFF #000 - - #585c67 - #454b5b - #282c37 - #313543 - #9baec8 - #d9e1e8 - #2b90d9 diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml deleted file mode 100644 index 616610c9..00000000 --- a/app/src/main/res/values/styles.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml new file mode 100644 index 00000000..72e7d86f --- /dev/null +++ b/app/src/main/res/values/themes.xml @@ -0,0 +1,84 @@ + + + + + + + + + + +