mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-01-30 19:34:45 +01:00
Fix theme issues.
This commit is contained in:
parent
7f83d6d7c9
commit
c5d4ac64a0
@ -193,7 +193,7 @@ public class RedditGallerySubmissionRecyclerViewAdapter extends RecyclerView.Ada
|
|||||||
super(itemView);
|
super(itemView);
|
||||||
|
|
||||||
FloatingActionButton fab = itemView.findViewById(R.id.fab_item_gallery_submission_add_image);
|
FloatingActionButton fab = itemView.findViewById(R.id.fab_item_gallery_submission_add_image);
|
||||||
fab.setBackgroundTintList(ColorStateList.valueOf(customThemeWrapper.getColorPrimaryLightTheme()));
|
fab.setBackgroundTintList(ColorStateList.valueOf(customThemeWrapper.getColorAccent()));
|
||||||
fab.setImageTintList(ColorStateList.valueOf(customThemeWrapper.getFABIconColor()));
|
fab.setImageTintList(ColorStateList.valueOf(customThemeWrapper.getFABIconColor()));
|
||||||
|
|
||||||
itemView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
|
itemView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
|
||||||
|
@ -868,7 +868,7 @@ public class CustomThemeWrapper {
|
|||||||
customTheme.commentVerticalBarColor5 = Color.parseColor("#EE0220");
|
customTheme.commentVerticalBarColor5 = Color.parseColor("#EE0220");
|
||||||
customTheme.commentVerticalBarColor6 = Color.parseColor("#02EE6E");
|
customTheme.commentVerticalBarColor6 = Color.parseColor("#02EE6E");
|
||||||
customTheme.commentVerticalBarColor7 = Color.parseColor("#EE4602");
|
customTheme.commentVerticalBarColor7 = Color.parseColor("#EE4602");
|
||||||
customTheme.fabIconColor = Color.parseColor("#000000");
|
customTheme.fabIconColor = Color.parseColor("#FFFFFF");
|
||||||
customTheme.chipTextColor = Color.parseColor("#FFFFFF");
|
customTheme.chipTextColor = Color.parseColor("#FFFFFF");
|
||||||
customTheme.linkColor = Color.parseColor("#FF1868");
|
customTheme.linkColor = Color.parseColor("#FF1868");
|
||||||
customTheme.receivedMessageTextColor = Color.parseColor("#FFFFFF");
|
customTheme.receivedMessageTextColor = Color.parseColor("#FFFFFF");
|
||||||
@ -961,7 +961,7 @@ public class CustomThemeWrapper {
|
|||||||
customTheme.commentVerticalBarColor5 = Color.parseColor("#EE0219");
|
customTheme.commentVerticalBarColor5 = Color.parseColor("#EE0219");
|
||||||
customTheme.commentVerticalBarColor6 = Color.parseColor("#00B925");
|
customTheme.commentVerticalBarColor6 = Color.parseColor("#00B925");
|
||||||
customTheme.commentVerticalBarColor7 = Color.parseColor("#EE4602");
|
customTheme.commentVerticalBarColor7 = Color.parseColor("#EE4602");
|
||||||
customTheme.fabIconColor = Color.parseColor("#FFFFFF");
|
customTheme.fabIconColor = Color.parseColor("#000000");
|
||||||
customTheme.chipTextColor = Color.parseColor("#FFFFFF");
|
customTheme.chipTextColor = Color.parseColor("#FFFFFF");
|
||||||
customTheme.linkColor = Color.parseColor("#FF1868");
|
customTheme.linkColor = Color.parseColor("#FF1868");
|
||||||
customTheme.receivedMessageTextColor = Color.parseColor("#FFFFFF");
|
customTheme.receivedMessageTextColor = Color.parseColor("#FFFFFF");
|
||||||
@ -1054,7 +1054,7 @@ public class CustomThemeWrapper {
|
|||||||
customTheme.commentVerticalBarColor5 = Color.parseColor("#EE0219");
|
customTheme.commentVerticalBarColor5 = Color.parseColor("#EE0219");
|
||||||
customTheme.commentVerticalBarColor6 = Color.parseColor("#00B925");
|
customTheme.commentVerticalBarColor6 = Color.parseColor("#00B925");
|
||||||
customTheme.commentVerticalBarColor7 = Color.parseColor("#EE4602");
|
customTheme.commentVerticalBarColor7 = Color.parseColor("#EE4602");
|
||||||
customTheme.fabIconColor = Color.parseColor("#FFFFFF");
|
customTheme.fabIconColor = Color.parseColor("#000000");
|
||||||
customTheme.chipTextColor = Color.parseColor("#FFFFFF");
|
customTheme.chipTextColor = Color.parseColor("#FFFFFF");
|
||||||
customTheme.linkColor = Color.parseColor("#FF1868");
|
customTheme.linkColor = Color.parseColor("#FF1868");
|
||||||
customTheme.receivedMessageTextColor = Color.parseColor("#FFFFFF");
|
customTheme.receivedMessageTextColor = Color.parseColor("#FFFFFF");
|
||||||
@ -1426,7 +1426,7 @@ public class CustomThemeWrapper {
|
|||||||
customTheme.commentVerticalBarColor5 = Color.parseColor("#BD93F9");
|
customTheme.commentVerticalBarColor5 = Color.parseColor("#BD93F9");
|
||||||
customTheme.commentVerticalBarColor6 = Color.parseColor("#FF5555");
|
customTheme.commentVerticalBarColor6 = Color.parseColor("#FF5555");
|
||||||
customTheme.commentVerticalBarColor7 = Color.parseColor("#F1FA8C");
|
customTheme.commentVerticalBarColor7 = Color.parseColor("#F1FA8C");
|
||||||
customTheme.fabIconColor = Color.parseColor("#FFFFFF");
|
customTheme.fabIconColor = Color.parseColor("#000000");
|
||||||
customTheme.chipTextColor = Color.parseColor("#FFFFFF");
|
customTheme.chipTextColor = Color.parseColor("#FFFFFF");
|
||||||
customTheme.linkColor = Color.parseColor("#FF1868");
|
customTheme.linkColor = Color.parseColor("#FF1868");
|
||||||
customTheme.receivedMessageTextColor = Color.parseColor("#FFFFFF");
|
customTheme.receivedMessageTextColor = Color.parseColor("#FFFFFF");
|
||||||
|
@ -99,7 +99,7 @@ public class MaterialYouUtils {
|
|||||||
lightTheme.navBarColor = lightTheme.colorPrimary;
|
lightTheme.navBarColor = lightTheme.colorPrimary;
|
||||||
lightTheme.primaryTextColor = context.getColor(android.R.color.system_neutral1_900);
|
lightTheme.primaryTextColor = context.getColor(android.R.color.system_neutral1_900);
|
||||||
lightTheme.secondaryTextColor = context.getColor(android.R.color.system_neutral1_700);
|
lightTheme.secondaryTextColor = context.getColor(android.R.color.system_neutral1_700);
|
||||||
lightTheme.buttonTextColor = context.getColor(android.R.color.system_accent1_800);
|
lightTheme.buttonTextColor = lightTheme.primaryTextColor;
|
||||||
lightTheme.bottomAppBarIconColor = lightTheme.buttonTextColor;
|
lightTheme.bottomAppBarIconColor = lightTheme.buttonTextColor;
|
||||||
lightTheme.primaryIconColor = context.getColor(android.R.color.system_accent1_400);
|
lightTheme.primaryIconColor = context.getColor(android.R.color.system_accent1_400);
|
||||||
lightTheme.fabIconColor = lightTheme.buttonTextColor;
|
lightTheme.fabIconColor = lightTheme.buttonTextColor;
|
||||||
@ -120,7 +120,7 @@ public class MaterialYouUtils {
|
|||||||
darkTheme.colorPrimary = context.getColor(android.R.color.system_accent2_800);
|
darkTheme.colorPrimary = context.getColor(android.R.color.system_accent2_800);
|
||||||
darkTheme.colorPrimaryDark = darkTheme.colorPrimary;
|
darkTheme.colorPrimaryDark = darkTheme.colorPrimary;
|
||||||
darkTheme.colorAccent = context.getColor(android.R.color.system_accent3_100);
|
darkTheme.colorAccent = context.getColor(android.R.color.system_accent3_100);
|
||||||
darkTheme.colorPrimaryLightTheme = context.getColor(android.R.color.system_accent1_300);
|
darkTheme.colorPrimaryLightTheme = lightTheme.colorPrimary;
|
||||||
darkTheme.backgroundColor = context.getColor(android.R.color.system_neutral1_900);
|
darkTheme.backgroundColor = context.getColor(android.R.color.system_neutral1_900);
|
||||||
darkTheme.cardViewBackgroundColor = context.getColor(android.R.color.system_neutral2_800);
|
darkTheme.cardViewBackgroundColor = context.getColor(android.R.color.system_neutral2_800);
|
||||||
darkTheme.commentBackgroundColor = darkTheme.cardViewBackgroundColor;
|
darkTheme.commentBackgroundColor = darkTheme.cardViewBackgroundColor;
|
||||||
@ -129,6 +129,7 @@ public class MaterialYouUtils {
|
|||||||
darkTheme.navBarColor = darkTheme.colorPrimary;
|
darkTheme.navBarColor = darkTheme.colorPrimary;
|
||||||
darkTheme.primaryTextColor = context.getColor(android.R.color.system_neutral1_10);
|
darkTheme.primaryTextColor = context.getColor(android.R.color.system_neutral1_10);
|
||||||
darkTheme.secondaryTextColor = context.getColor(android.R.color.system_neutral1_10);
|
darkTheme.secondaryTextColor = context.getColor(android.R.color.system_neutral1_10);
|
||||||
|
darkTheme.buttonTextColor = context.getColor(android.R.color.system_neutral1_900);
|
||||||
darkTheme.bottomAppBarIconColor = context.getColor(android.R.color.system_accent1_100);
|
darkTheme.bottomAppBarIconColor = context.getColor(android.R.color.system_accent1_100);
|
||||||
darkTheme.primaryIconColor = context.getColor(android.R.color.system_accent1_100);
|
darkTheme.primaryIconColor = context.getColor(android.R.color.system_accent1_100);
|
||||||
darkTheme.fabIconColor = context.getColor(android.R.color.system_neutral1_900);
|
darkTheme.fabIconColor = context.getColor(android.R.color.system_neutral1_900);
|
||||||
@ -146,7 +147,7 @@ public class MaterialYouUtils {
|
|||||||
darkTheme.name = "Material You Dark";
|
darkTheme.name = "Material You Dark";
|
||||||
|
|
||||||
amoledTheme.colorAccent = context.getColor(android.R.color.system_accent1_100);
|
amoledTheme.colorAccent = context.getColor(android.R.color.system_accent1_100);
|
||||||
amoledTheme.colorPrimaryLightTheme = context.getColor(android.R.color.system_accent1_300);
|
amoledTheme.colorPrimaryLightTheme = lightTheme.colorPrimary;
|
||||||
amoledTheme.fabIconColor = context.getColor(android.R.color.system_neutral1_900);
|
amoledTheme.fabIconColor = context.getColor(android.R.color.system_neutral1_900);
|
||||||
amoledTheme.name = "Material You Amoled";
|
amoledTheme.name = "Material You Amoled";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user