fix(YouTube - Snack bar components): Change the default value of the patch option to YouTube background color

This commit is contained in:
inotia00
2025-01-22 17:18:06 +09:00
parent ad015e369f
commit 63dac0e905

View File

@ -177,10 +177,11 @@ val snackBarComponentsPatch = resourcePatch(
snackBarComponentsBytecodePatch, snackBarComponentsBytecodePatch,
) )
val catppuccinMochaColor = "#FF181825" val ytBackgroundColorDark = "@color/yt_black3"
val catppuccinLatteColor = "#FFE6E9EF" val ytBackgroundColorLight = "@color/yt_white3"
val availableDarkTheme = mapOf( val availableDarkTheme = mapOf(
"YouTube Dark" to ytBackgroundColorDark,
"Amoled Black" to "@android:color/black", "Amoled Black" to "@android:color/black",
"Catppuccin (Mocha)" to "#FF181825", "Catppuccin (Mocha)" to "#FF181825",
"Dark Pink" to "#FF290025", "Dark Pink" to "#FF290025",
@ -192,6 +193,7 @@ val snackBarComponentsPatch = resourcePatch(
) )
val availableLightTheme = mapOf( val availableLightTheme = mapOf(
"YouTube Light" to ytBackgroundColorLight,
"White" to "@android:color/white", "White" to "@android:color/white",
"Catppuccin (Latte)" to "#FFE6E9EF", "Catppuccin (Latte)" to "#FFE6E9EF",
"Light Pink" to "#FFFCCFF3", "Light Pink" to "#FFFCCFF3",
@ -212,7 +214,7 @@ val snackBarComponentsPatch = resourcePatch(
val darkThemeBackgroundColor = stringOption( val darkThemeBackgroundColor = stringOption(
key = "darkThemeBackgroundColor", key = "darkThemeBackgroundColor",
default = catppuccinMochaColor, default = ytBackgroundColorDark,
values = availableDarkTheme, values = availableDarkTheme,
title = "Dark theme background color", title = "Dark theme background color",
description = "Specify a background color for the snack bar. You can specify hex color (#AARRGGBB) or color resource reference.", description = "Specify a background color for the snack bar. You can specify hex color (#AARRGGBB) or color resource reference.",
@ -221,7 +223,7 @@ val snackBarComponentsPatch = resourcePatch(
val lightThemeBackgroundColor = stringOption( val lightThemeBackgroundColor = stringOption(
key = "lightThemeBackgroundColor", key = "lightThemeBackgroundColor",
default = catppuccinLatteColor, default = ytBackgroundColorLight,
values = availableLightTheme, values = availableLightTheme,
title = "Light theme background color", title = "Light theme background color",
description = "Specify a background color for the snack bar. You can specify hex color (#AARRGGBB) or color resource reference.", description = "Specify a background color for the snack bar. You can specify hex color (#AARRGGBB) or color resource reference.",