mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
Merge pull request #2178 from libre-tube/themes
Monochrome theme (merged from the `themes` branch)
This commit is contained in:
commit
7923347d91
@ -47,6 +47,7 @@ object ThemeHelper {
|
|||||||
"yellow" -> R.style.Theme_Yellow
|
"yellow" -> R.style.Theme_Yellow
|
||||||
"green" -> R.style.Theme_Green
|
"green" -> R.style.Theme_Green
|
||||||
"purple" -> R.style.Theme_Purple
|
"purple" -> R.style.Theme_Purple
|
||||||
|
"monochrome" -> R.style.Theme_Monochrome
|
||||||
else -> R.style.Theme_Purple
|
else -> R.style.Theme_Purple
|
||||||
}
|
}
|
||||||
activity.setTheme(theme)
|
activity.setTheme(theme)
|
||||||
|
@ -180,6 +180,38 @@
|
|||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="Theme.Monochrome" parent="BaseTheme">
|
||||||
|
|
||||||
|
<item name="colorPrimary">@color/monochrome_theme_dark_primary</item>
|
||||||
|
<item name="colorOnPrimary">@color/monochrome_theme_dark_onPrimary</item>
|
||||||
|
<item name="colorPrimaryContainer">@color/monochrome_theme_dark_primaryContainer</item>
|
||||||
|
<item name="colorOnPrimaryContainer">@color/monochrome_theme_dark_onPrimaryContainer</item>
|
||||||
|
<item name="colorSecondary">@color/monochrome_theme_dark_secondary</item>
|
||||||
|
<item name="colorOnSecondary">@color/monochrome_theme_dark_onSecondary</item>
|
||||||
|
<item name="colorSecondaryContainer">@color/monochrome_theme_dark_secondaryContainer</item>
|
||||||
|
<item name="colorOnSecondaryContainer">@color/monochrome_theme_dark_onSecondaryContainer
|
||||||
|
</item>
|
||||||
|
<item name="colorTertiary">@color/monochrome_theme_dark_tertiary</item>
|
||||||
|
<item name="colorOnTertiary">@color/monochrome_theme_dark_onTertiary</item>
|
||||||
|
<item name="colorTertiaryContainer">@color/monochrome_theme_dark_tertiaryContainer</item>
|
||||||
|
<item name="colorOnTertiaryContainer">@color/monochrome_theme_dark_onTertiaryContainer</item>
|
||||||
|
<item name="colorError">@color/monochrome_theme_dark_error</item>
|
||||||
|
<item name="colorErrorContainer">@color/monochrome_theme_dark_errorContainer</item>
|
||||||
|
<item name="colorOnError">@color/monochrome_theme_dark_onError</item>
|
||||||
|
<item name="colorOnErrorContainer">@color/monochrome_theme_dark_onErrorContainer</item>
|
||||||
|
<item name="android:colorBackground">@color/monochrome_theme_dark_background</item>
|
||||||
|
<item name="colorOnBackground">@color/monochrome_theme_dark_onBackground</item>
|
||||||
|
<item name="colorSurface">@color/monochrome_theme_dark_surface</item>
|
||||||
|
<item name="colorOnSurface">@color/monochrome_theme_dark_onSurface</item>
|
||||||
|
<item name="colorSurfaceVariant">@color/monochrome_theme_dark_surfaceVariant</item>
|
||||||
|
<item name="colorOnSurfaceVariant">@color/monochrome_theme_dark_onSurfaceVariant</item>
|
||||||
|
<item name="colorOutline">@color/monochrome_theme_dark_outline</item>
|
||||||
|
<item name="colorOnSurfaceInverse">@color/monochrome_theme_dark_inverseOnSurface</item>
|
||||||
|
<item name="colorSurfaceInverse">@color/monochrome_theme_dark_inverseSurface</item>
|
||||||
|
<item name="colorPrimaryInverse">@color/monochrome_theme_dark_inversePrimary</item>
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
<style name="Pure">
|
<style name="Pure">
|
||||||
|
|
||||||
<item name="android:colorBackground">@android:color/black</item>
|
<item name="android:colorBackground">@android:color/black</item>
|
||||||
|
@ -176,6 +176,7 @@
|
|||||||
<item>@string/color_yellow</item>
|
<item>@string/color_yellow</item>
|
||||||
<item>@string/color_green</item>
|
<item>@string/color_green</item>
|
||||||
<item>@string/color_purple</item>
|
<item>@string/color_purple</item>
|
||||||
|
<item>@string/theme_monochrome</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
<string-array name="accentsValue">
|
<string-array name="accentsValue">
|
||||||
@ -185,6 +186,7 @@
|
|||||||
<item>yellow</item>
|
<item>yellow</item>
|
||||||
<item>green</item>
|
<item>green</item>
|
||||||
<item>purple</item>
|
<item>purple</item>
|
||||||
|
<item>monochrome</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
<string-array name="defres">
|
<string-array name="defres">
|
||||||
|
@ -297,5 +297,64 @@
|
|||||||
<color name="purple_md_theme_dark_shadow">#000000</color>
|
<color name="purple_md_theme_dark_shadow">#000000</color>
|
||||||
<color name="purple_md_theme_dark_surfaceTint">#FFACE7</color>
|
<color name="purple_md_theme_dark_surfaceTint">#FFACE7</color>
|
||||||
<color name="purple_md_theme_dark_surfaceTintColor">#FFACE7</color>
|
<color name="purple_md_theme_dark_surfaceTintColor">#FFACE7</color>
|
||||||
|
// Colors without comments seem to be not used
|
||||||
|
<color name="monochrome_theme_light_primary">#616161</color> // LibreTube Logo, Hyperlinks and on-off switch (on status: filling) (also influence on the navbar colour)
|
||||||
|
<color name="monochrome_theme_light_onPrimary">#FFFFFF</color> // on-off switch (on status: circle)
|
||||||
|
<color name="monochrome_theme_light_primaryContainer">#DCDCDC</color>
|
||||||
|
<color name="monochrome_theme_light_onPrimaryContainer">#272727</color>
|
||||||
|
<color name="monochrome_theme_light_secondary">#797979</color> // Headline Text
|
||||||
|
<color name="monochrome_theme_light_onSecondary">#B39494</color> // SponsorBlock marker
|
||||||
|
<color name="monochrome_theme_light_secondaryContainer">#DCDCDC</color> // NavBar Icon Container (selected)
|
||||||
|
<color name="monochrome_theme_light_onSecondaryContainer">#272727</color> // Navbar Icon (selected)
|
||||||
|
<color name="monochrome_theme_light_tertiary">#DCDCDC</color>
|
||||||
|
<color name="monochrome_theme_light_onTertiary">#272727</color>
|
||||||
|
<color name="monochrome_theme_light_tertiaryContainer">#DCDCDC</color>
|
||||||
|
<color name="monochrome_theme_light_onTertiaryContainer">#272727</color>
|
||||||
|
<color name="monochrome_theme_light_error">#DCDCDC</color>
|
||||||
|
<color name="monochrome_theme_light_errorContainer">#DCDCDC</color>
|
||||||
|
<color name="monochrome_theme_light_onError">#272727</color>
|
||||||
|
<color name="monochrome_theme_light_onErrorContainer">#272727</color>
|
||||||
|
<color name="monochrome_theme_light_background">#FFFFFF</color> // Background (Settings and home)
|
||||||
|
<color name="monochrome_theme_light_onBackground">#272727</color>
|
||||||
|
<color name="monochrome_theme_light_surface">#FFFFFF</color> // Navbar and Flyouts (uses also the "primary" color)
|
||||||
|
<color name="monochrome_theme_light_onSurface">#272727</color> // NavBar Text (selected) and some Flyout Headlines
|
||||||
|
<color name="monochrome_theme_light_surfaceVariant">#DCDCDC</color> // on-off switch (off status: filling)
|
||||||
|
<color name="monochrome_theme_light_onSurfaceVariant">#353535</color> // text in Flyouts, Animation color (subscription button)
|
||||||
|
<color name="monochrome_theme_light_outline">#797979</color> // on-off switch (off status: border)
|
||||||
|
<color name="monochrome_theme_light_inverseOnSurface">#DCDCDC</color>
|
||||||
|
<color name="monochrome_theme_light_inverseSurface">#606060</color>
|
||||||
|
<color name="monochrome_theme_light_inversePrimary">#C1C1C1</color>
|
||||||
|
<color name="monochrome_theme_light_shadow">#000000</color>
|
||||||
|
<color name="monochrome_theme_light_surfaceTint">#717171</color>
|
||||||
|
<color name="monochrome_theme_light_surfaceTintColor">#717171</color>
|
||||||
|
<color name="monochrome_theme_dark_primary">#AAAAAA</color> // LibreTube Logo, Hyperlinks and on-off switch (on status: filling) (also influence on the navbar colour)
|
||||||
|
<color name="monochrome_theme_dark_onPrimary">#1C1C1C</color> // on-off switch (on status: circle)
|
||||||
|
<color name="monochrome_theme_dark_primaryContainer">#4D4D4D</color>
|
||||||
|
<color name="monochrome_theme_dark_onPrimaryContainer">#A3A3A3</color>
|
||||||
|
<color name="monochrome_theme_dark_secondary">#A3A3A3</color> // Headline Text
|
||||||
|
<color name="monochrome_theme_dark_onSecondary">#886A6A</color> // SponsorBlock marker
|
||||||
|
<color name="monochrome_theme_dark_secondaryContainer">#4D4D4D</color> // NavBar Icon Container (selected)
|
||||||
|
<color name="monochrome_theme_dark_onSecondaryContainer">#A3A3A3</color> // Navbar Icon Color (selected)
|
||||||
|
<color name="monochrome_theme_dark_tertiary">#4D4D4D</color>
|
||||||
|
<color name="monochrome_theme_dark_onTertiary">#A3A3A3</color>
|
||||||
|
<color name="monochrome_theme_dark_tertiaryContainer">#4D4D4D</color>
|
||||||
|
<color name="monochrome_theme_dark_onTertiaryContainer">#A3A3A3</color>
|
||||||
|
<color name="monochrome_theme_dark_error">#4D4D4D</color>
|
||||||
|
<color name="monochrome_theme_dark_errorContainer">#4D4D4D</color>
|
||||||
|
<color name="monochrome_theme_dark_onError">#A3A3A3</color>
|
||||||
|
<color name="monochrome_theme_dark_onErrorContainer">#A3A3A3</color>
|
||||||
|
<color name="monochrome_theme_dark_background">#1C1C1C</color> // Background (Settings and home)
|
||||||
|
<color name="monochrome_theme_dark_onBackground">#A3A3A3</color>
|
||||||
|
<color name="monochrome_theme_dark_surface">#1C1C1C</color> // Navbar and Flyouts (uses also the "primary" color) 252525
|
||||||
|
<color name="monochrome_theme_dark_onSurface">#A3A3A3</color> // NavBar Text (selected) and some Flyout Headlines
|
||||||
|
<color name="monochrome_theme_dark_surfaceVariant">#4D4D4D</color> // on-off switch (off status: filling)
|
||||||
|
<color name="monochrome_theme_dark_onSurfaceVariant">#A3A3A3</color> // text in Flyouts, Animation color (subscription button)
|
||||||
|
<color name="monochrome_theme_dark_outline">#A3A3A3</color> // on-off switch (off status: border)
|
||||||
|
<color name="monochrome_theme_dark_inverseOnSurface">#404040</color>
|
||||||
|
<color name="monochrome_theme_dark_inverseSurface">#C3C3C3</color>
|
||||||
|
<color name="monochrome_theme_dark_inversePrimary">#707070</color>
|
||||||
|
<color name="monochrome_theme_dark_shadow">#000000</color>
|
||||||
|
<color name="monochrome_theme_dark_surfaceTint">#C3C3C3</color>
|
||||||
|
<color name="monochrome_theme_dark_surfaceTintColor">#C3C3C3</color>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
@ -400,6 +400,7 @@
|
|||||||
<string name="pop_up">Pop-Up</string>
|
<string name="pop_up">Pop-Up</string>
|
||||||
<string name="comments_disabled">Comments are disabled by the uploader.</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="no_comments_available">This video has no comments available.</string>
|
||||||
|
<string name="theme_monochrome">Minimalistic Monochrome</string>
|
||||||
<string name="captions_size">Captions size</string>
|
<string name="captions_size">Captions size</string>
|
||||||
<string name="double_tap_seek">Double tap to seek</string>
|
<string name="double_tap_seek">Double tap to seek</string>
|
||||||
<string name="double_tap_seek_summary">Tap twice at the left or right to rewind or forward the player position.</string>
|
<string name="double_tap_seek_summary">Tap twice at the left or right to rewind or forward the player position.</string>
|
||||||
@ -413,6 +414,7 @@
|
|||||||
<string name="privacy_alert">Privacy alert</string>
|
<string name="privacy_alert">Privacy alert</string>
|
||||||
<string name="username_email">Proceed with an e-mail address that isn\'t recommended\?</string>
|
<string name="username_email">Proceed with an e-mail address that isn\'t recommended\?</string>
|
||||||
<string name="proceed">Proceed</string>
|
<string name="proceed">Proceed</string>
|
||||||
|
|
||||||
<!-- Notification channel strings -->
|
<!-- Notification channel strings -->
|
||||||
<string name="download_channel_name">Download Service</string>
|
<string name="download_channel_name">Download Service</string>
|
||||||
<string name="download_channel_description">Shows a notification when downloading media.</string>
|
<string name="download_channel_description">Shows a notification when downloading media.</string>
|
||||||
|
@ -183,6 +183,39 @@
|
|||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="Theme.Monochrome" parent="BaseTheme">
|
||||||
|
|
||||||
|
<item name="colorPrimary">@color/monochrome_theme_light_primary</item>
|
||||||
|
<item name="colorOnPrimary">@color/monochrome_theme_light_onPrimary</item>
|
||||||
|
<item name="colorPrimaryContainer">@color/monochrome_theme_light_primaryContainer</item>
|
||||||
|
<item name="colorOnPrimaryContainer">@color/monochrome_theme_light_onPrimaryContainer</item>
|
||||||
|
<item name="colorSecondary">@color/monochrome_theme_light_secondary</item>
|
||||||
|
<item name="colorOnSecondary">@color/monochrome_theme_light_onSecondary</item>
|
||||||
|
<item name="colorSecondaryContainer">@color/monochrome_theme_light_secondaryContainer</item>
|
||||||
|
<item name="colorOnSecondaryContainer">@color/monochrome_theme_light_onSecondaryContainer
|
||||||
|
</item>
|
||||||
|
<item name="colorTertiary">@color/monochrome_theme_light_tertiary</item>
|
||||||
|
<item name="colorOnTertiary">@color/monochrome_theme_light_onTertiary</item>
|
||||||
|
<item name="colorTertiaryContainer">@color/monochrome_theme_light_tertiaryContainer</item>
|
||||||
|
<item name="colorOnTertiaryContainer">@color/monochrome_theme_light_onTertiaryContainer
|
||||||
|
</item>
|
||||||
|
<item name="colorError">@color/monochrome_theme_light_error</item>
|
||||||
|
<item name="colorErrorContainer">@color/monochrome_theme_light_errorContainer</item>
|
||||||
|
<item name="colorOnError">@color/monochrome_theme_light_onError</item>
|
||||||
|
<item name="colorOnErrorContainer">@color/monochrome_theme_light_onErrorContainer</item>
|
||||||
|
<item name="android:colorBackground">@color/monochrome_theme_light_background</item>
|
||||||
|
<item name="colorOnBackground">@color/monochrome_theme_light_onBackground</item>
|
||||||
|
<item name="colorSurface">@color/monochrome_theme_light_surface</item>
|
||||||
|
<item name="colorOnSurface">@color/monochrome_theme_light_onSurface</item>
|
||||||
|
<item name="colorSurfaceVariant">@color/monochrome_theme_light_surfaceVariant</item>
|
||||||
|
<item name="colorOnSurfaceVariant">@color/monochrome_theme_light_onSurfaceVariant</item>
|
||||||
|
<item name="colorOutline">@color/monochrome_theme_light_outline</item>
|
||||||
|
<item name="colorOnSurfaceInverse">@color/monochrome_theme_light_inverseOnSurface</item>
|
||||||
|
<item name="colorSurfaceInverse">@color/monochrome_theme_light_inverseSurface</item>
|
||||||
|
<item name="colorPrimaryInverse">@color/monochrome_theme_light_inversePrimary</item>
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
<style name="Pure">
|
<style name="Pure">
|
||||||
|
|
||||||
<item name="android:colorBackground">@android:color/white</item>
|
<item name="android:colorBackground">@android:color/white</item>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user