[Android] Change TV Colors
Nicolas Pomepuy
git at videolan.org
Wed Jul 3 15:08:56 CEST 2019
vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Fri Jun 28 15:40:12 2019 +0200| [0b06b0038be7990bd4c16bee3e184540c8be49bc] | committer: Geoffrey Métais
Change TV Colors
> https://code.videolan.org/videolan/vlc-android/commit/0b06b0038be7990bd4c16bee3e184540c8be49bc
---
vlc-android/res/drawable/tv_card_background.xml | 2 +-
vlc-android/res/values/colors.xml | 11 +++++++----
vlc-android/res/values/styles.xml | 2 +-
vlc-android/src/org/videolan/vlc/gui/tv/MainTvFragment.kt | 12 ++++++------
4 files changed, 15 insertions(+), 12 deletions(-)
diff --git a/vlc-android/res/drawable/tv_card_background.xml b/vlc-android/res/drawable/tv_card_background.xml
index 0ec0a5d50..69dac6d78 100644
--- a/vlc-android/res/drawable/tv_card_background.xml
+++ b/vlc-android/res/drawable/tv_card_background.xml
@@ -2,6 +2,6 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
- <solid android:color="@color/tv_card_content" />
+ <solid android:color="@color/tv_card_content_dark"/>
<corners android:radius="3dp" />
</shape>
\ No newline at end of file
diff --git a/vlc-android/res/values/colors.xml b/vlc-android/res/values/colors.xml
index fdd27fd59..9b8069001 100644
--- a/vlc-android/res/values/colors.xml
+++ b/vlc-android/res/values/colors.xml
@@ -56,10 +56,13 @@
<color name="white_selection_transparent">#44ffffff</color>
- <color name="tv_bg">#235f69</color>
- <color name="tv_card_content">#0a6e96</color>
- <color name="tv_card_content_dark">#085878</color>
- <color name="tv_card_content_darker">#064159</color>
+ <color name="tv_bg">#376071</color>
+ <color name="tv_card_content">#376071</color>
+ <color name="tv_card_content_dark">#25424e</color>
+ <color name="tv_card_content_darker">#1c313a</color>
+
+ <color name="vlc_material_blue_grey_900">#ff263238</color>
+
<!--test with onboarding colors-->
<!--<color name="tv_bg">#1c313a</color>-->
<!--<color name="tv_card_content">#396375</color>-->
diff --git a/vlc-android/res/values/styles.xml b/vlc-android/res/values/styles.xml
index 77209da7c..bc782f1bc 100644
--- a/vlc-android/res/values/styles.xml
+++ b/vlc-android/res/values/styles.xml
@@ -248,7 +248,7 @@
</style>
<style name="VLCardViewInfoStyle" parent="Widget.Leanback.ImageCardView.InfoAreaStyle">
- <item name="android:background">@color/tv_card_content</item>
+ <item name="android:background">@color/tv_card_content_dark</item>
</style>
<style name="VLCGenericCardView" parent="Theme.Leanback">
diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/MainTvFragment.kt b/vlc-android/src/org/videolan/vlc/gui/tv/MainTvFragment.kt
index 1d201cd55..64dc6c7a1 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/MainTvFragment.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/MainTvFragment.kt
@@ -90,9 +90,9 @@ class MainTvFragment : BrowseSupportFragment(), OnItemViewSelectedListener, OnIt
if (AndroidDevices.hasPlayServices) {
setOnSearchClickedListener(this)
// set search icon color
- searchAffordanceColor = ContextCompat.getColor(requireContext(), R.color.orange500)
+ searchAffordanceColor = ContextCompat.getColor(requireContext(), R.color.orange600)
}
- brandColor = ContextCompat.getColor(requireContext(), R.color.orange800)
+ brandColor = ContextCompat.getColor(requireContext(), R.color.orange900)
backgroundManager = BackgroundManager.getInstance(requireActivity()).apply { attach(requireActivity().window) }
model = getMainTvModel()
}
@@ -133,10 +133,10 @@ class MainTvFragment : BrowseSupportFragment(), OnItemViewSelectedListener, OnIt
otherAdapter = ArrayObjectAdapter(GenericCardPresenter(ctx))
val miscHeader = HeaderItem(HEADER_MISC, getString(R.string.other))
- otherAdapter.add(GenericCardItem(ID_SETTINGS, getString(R.string.preferences), "", R.drawable.ic_menu_preferences_big, R.color.tv_card_content))
- otherAdapter.add(GenericCardItem(ID_REFRESH, getString(R.string.refresh), "", R.drawable.ic_menu_scan, R.color.tv_card_content))
- otherAdapter.add(GenericCardItem(ID_ABOUT_TV, getString(R.string.about), "${getString(R.string.app_name_full)} ${BuildConfig.VERSION_NAME}", R.drawable.ic_menu_info_big, R.color.tv_card_content))
- otherAdapter.add(GenericCardItem(ID_LICENCE, getString(R.string.licence), "", R.drawable.ic_menu_open_source, R.color.tv_card_content))
+ otherAdapter.add(GenericCardItem(ID_SETTINGS, getString(R.string.preferences), "", R.drawable.ic_menu_preferences_big, R.color.tv_card_content_dark))
+ otherAdapter.add(GenericCardItem(ID_REFRESH, getString(R.string.refresh), "", R.drawable.ic_menu_scan, R.color.tv_card_content_dark))
+ otherAdapter.add(GenericCardItem(ID_ABOUT_TV, getString(R.string.about), "${getString(R.string.app_name_full)} ${BuildConfig.VERSION_NAME}", R.drawable.ic_menu_info_big, R.color.tv_card_content_dark))
+ otherAdapter.add(GenericCardItem(ID_LICENCE, getString(R.string.licence), "", R.drawable.ic_menu_open_source, R.color.tv_card_content_dark))
miscRow = ListRow(miscHeader, otherAdapter)
rowsAdapter.add(miscRow)
More information about the Android
mailing list