add an empty pure black/white theme

This commit is contained in:
Bnyro 2022-11-27 17:16:14 +01:00
parent ea845479d7
commit 51b1b527ef
6 changed files with 128 additions and 0 deletions

View File

@ -47,6 +47,7 @@ object ThemeHelper {
"yellow" -> R.style.Theme_Yellow
"green" -> R.style.Theme_Green
"purple" -> R.style.Theme_Purple
"bw" -> R.style.Theme_BlackWhite
else -> R.style.Theme_Purple
}
activity.setTheme(theme)

View File

@ -180,6 +180,38 @@
</style>
<style name="Theme.BlackWhite" parent="BaseTheme">
<item name="colorPrimary">@color/black_white_theme_dark_primary</item>
<item name="colorOnPrimary">@color/black_white_theme_dark_onPrimary</item>
<item name="colorPrimaryContainer">@color/black_white_theme_dark_primaryContainer</item>
<item name="colorOnPrimaryContainer">@color/black_white_theme_dark_onPrimaryContainer</item>
<item name="colorSecondary">@color/black_white_theme_dark_secondary</item>
<item name="colorOnSecondary">@color/black_white_theme_dark_onSecondary</item>
<item name="colorSecondaryContainer">@color/black_white_theme_dark_secondaryContainer</item>
<item name="colorOnSecondaryContainer">@color/black_white_theme_dark_onSecondaryContainer
</item>
<item name="colorTertiary">@color/black_white_theme_dark_tertiary</item>
<item name="colorOnTertiary">@color/black_white_theme_dark_onTertiary</item>
<item name="colorTertiaryContainer">@color/black_white_theme_dark_tertiaryContainer</item>
<item name="colorOnTertiaryContainer">@color/black_white_theme_dark_onTertiaryContainer</item>
<item name="colorError">@color/black_white_theme_dark_error</item>
<item name="colorErrorContainer">@color/black_white_theme_dark_errorContainer</item>
<item name="colorOnError">@color/black_white_theme_dark_onError</item>
<item name="colorOnErrorContainer">@color/black_white_theme_dark_onErrorContainer</item>
<item name="android:colorBackground">@color/black_white_theme_dark_background</item>
<item name="colorOnBackground">@color/black_white_theme_dark_onBackground</item>
<item name="colorSurface">@color/black_white_theme_dark_surface</item>
<item name="colorOnSurface">@color/black_white_theme_dark_onSurface</item>
<item name="colorSurfaceVariant">@color/black_white_theme_dark_surfaceVariant</item>
<item name="colorOnSurfaceVariant">@color/black_white_theme_dark_onSurfaceVariant</item>
<item name="colorOutline">@color/black_white_theme_dark_outline</item>
<item name="colorOnSurfaceInverse">@color/black_white_theme_dark_inverseOnSurface</item>
<item name="colorSurfaceInverse">@color/black_white_theme_dark_inverseSurface</item>
<item name="colorPrimaryInverse">@color/black_white_theme_dark_inversePrimary</item>
</style>
<style name="Pure">
<item name="android:colorBackground">@android:color/black</item>

View File

@ -176,6 +176,7 @@
<item>@string/color_yellow</item>
<item>@string/color_green</item>
<item>@string/color_purple</item>
<item>@string/theme_black_white</item>
</string-array>
<string-array name="accentsValue">
@ -185,6 +186,7 @@
<item>yellow</item>
<item>green</item>
<item>purple</item>
<item>bw</item>
</string-array>
<string-array name="defres">

View File

@ -298,4 +298,63 @@
<color name="purple_md_theme_dark_surfaceTint">#FFACE7</color>
<color name="purple_md_theme_dark_surfaceTintColor">#FFACE7</color>
<color name="black_white_theme_light_primary">#9B3489</color>
<color name="black_white_theme_light_onPrimary">#FFFFFF</color>
<color name="black_white_theme_light_primaryContainer">#FFD7F0</color>
<color name="black_white_theme_light_onPrimaryContainer">#3A0032</color>
<color name="black_white_theme_light_secondary">#6F5767</color>
<color name="black_white_theme_light_onSecondary">#FFFFFF</color>
<color name="black_white_theme_light_secondaryContainer">#F9DAEC</color>
<color name="black_white_theme_light_onSecondaryContainer">#281623</color>
<color name="black_white_theme_light_tertiary">#815341</color>
<color name="black_white_theme_light_onTertiary">#FFFFFF</color>
<color name="black_white_theme_light_tertiaryContainer">#FFDBCE</color>
<color name="black_white_theme_light_onTertiaryContainer">#321205</color>
<color name="black_white_theme_light_error">#BA1A1A</color>
<color name="black_white_theme_light_errorContainer">#FFDAD6</color>
<color name="black_white_theme_light_onError">#FFFFFF</color>
<color name="black_white_theme_light_onErrorContainer">#410002</color>
<color name="black_white_theme_light_background">#FFFBFF</color>
<color name="black_white_theme_light_onBackground">#1F1A1D</color>
<color name="black_white_theme_light_surface">#FFFBFF</color>
<color name="black_white_theme_light_onSurface">#1F1A1D</color>
<color name="black_white_theme_light_surfaceVariant">#EFDEE6</color>
<color name="black_white_theme_light_onSurfaceVariant">#4F444A</color>
<color name="black_white_theme_light_outline">#81737B</color>
<color name="black_white_theme_light_inverseOnSurface">#F8EEF1</color>
<color name="black_white_theme_light_inverseSurface">#342F32</color>
<color name="black_white_theme_light_inversePrimary">#FFACE7</color>
<color name="black_white_theme_light_shadow">#000000</color>
<color name="black_white_theme_light_surfaceTint">#9B3489</color>
<color name="black_white_theme_light_surfaceTintColor">#9B3489</color>
<color name="black_white_theme_dark_primary">#FFACE7</color>
<color name="black_white_theme_dark_onPrimary">#5E0052</color>
<color name="black_white_theme_dark_primaryContainer">#7E186F</color>
<color name="black_white_theme_dark_onPrimaryContainer">#FFD7F0</color>
<color name="black_white_theme_dark_secondary">#DCBED0</color>
<color name="black_white_theme_dark_onSecondary">#3E2A38</color>
<color name="black_white_theme_dark_secondaryContainer">#56404F</color>
<color name="black_white_theme_dark_onSecondaryContainer">#F9DAEC</color>
<color name="black_white_theme_dark_tertiary">#F5B9A2</color>
<color name="black_white_theme_dark_onTertiary">#4B2617</color>
<color name="black_white_theme_dark_tertiaryContainer">#663C2B</color>
<color name="black_white_theme_dark_onTertiaryContainer">#FFDBCE</color>
<color name="black_white_theme_dark_error">#FFB4AB</color>
<color name="black_white_theme_dark_errorContainer">#93000A</color>
<color name="black_white_theme_dark_onError">#690005</color>
<color name="black_white_theme_dark_onErrorContainer">#FFDAD6</color>
<color name="black_white_theme_dark_background">#1F1A1D</color>
<color name="black_white_theme_dark_onBackground">#EAE0E3</color>
<color name="black_white_theme_dark_surface">#1F1A1D</color>
<color name="black_white_theme_dark_onSurface">#EAE0E3</color>
<color name="black_white_theme_dark_surfaceVariant">#4F444A</color>
<color name="black_white_theme_dark_onSurfaceVariant">#D2C2CA</color>
<color name="black_white_theme_dark_outline">#9B8D94</color>
<color name="black_white_theme_dark_inverseOnSurface">#1F1A1D</color>
<color name="black_white_theme_dark_inverseSurface">#EAE0E3</color>
<color name="black_white_theme_dark_inversePrimary">#9B3489</color>
<color name="black_white_theme_dark_shadow">#000000</color>
<color name="black_white_theme_dark_surfaceTint">#FFACE7</color>
<color name="black_white_theme_dark_surfaceTintColor">#FFACE7</color>
</resources>

View File

@ -398,6 +398,7 @@
<string name="pop_up">Pop-Up</string>
<string name="comments_disabled">Comments are disabled by the uploader.</string>
<string name="no_comments_available">This video has no comments available.</string>
<string name="theme_black_white">Black &amp; White</string>
<!-- Notification channel strings -->
<string name="download_channel_name">Download Service</string>

View File

@ -183,6 +183,39 @@
</style>
<style name="Theme.BlackWhite" parent="BaseTheme">
<item name="colorPrimary">@color/black_white_theme_light_primary</item>
<item name="colorOnPrimary">@color/black_white_theme_light_onPrimary</item>
<item name="colorPrimaryContainer">@color/black_white_theme_light_primaryContainer</item>
<item name="colorOnPrimaryContainer">@color/black_white_theme_light_onPrimaryContainer</item>
<item name="colorSecondary">@color/black_white_theme_light_secondary</item>
<item name="colorOnSecondary">@color/black_white_theme_light_onSecondary</item>
<item name="colorSecondaryContainer">@color/black_white_theme_light_secondaryContainer</item>
<item name="colorOnSecondaryContainer">@color/black_white_theme_light_onSecondaryContainer
</item>
<item name="colorTertiary">@color/black_white_theme_light_tertiary</item>
<item name="colorOnTertiary">@color/black_white_theme_light_onTertiary</item>
<item name="colorTertiaryContainer">@color/black_white_theme_light_tertiaryContainer</item>
<item name="colorOnTertiaryContainer">@color/black_white_theme_light_onTertiaryContainer
</item>
<item name="colorError">@color/black_white_theme_light_error</item>
<item name="colorErrorContainer">@color/black_white_theme_light_errorContainer</item>
<item name="colorOnError">@color/black_white_theme_light_onError</item>
<item name="colorOnErrorContainer">@color/black_white_theme_light_onErrorContainer</item>
<item name="android:colorBackground">@color/black_white_theme_light_background</item>
<item name="colorOnBackground">@color/black_white_theme_light_onBackground</item>
<item name="colorSurface">@color/black_white_theme_light_surface</item>
<item name="colorOnSurface">@color/black_white_theme_light_onSurface</item>
<item name="colorSurfaceVariant">@color/black_white_theme_light_surfaceVariant</item>
<item name="colorOnSurfaceVariant">@color/black_white_theme_light_onSurfaceVariant</item>
<item name="colorOutline">@color/black_white_theme_light_outline</item>
<item name="colorOnSurfaceInverse">@color/black_white_theme_light_inverseOnSurface</item>
<item name="colorSurfaceInverse">@color/black_white_theme_light_inverseSurface</item>
<item name="colorPrimaryInverse">@color/black_white_theme_light_inversePrimary</item>
</style>
<style name="Pure">
<item name="android:colorBackground">@android:color/white</item>