Skip to content
Snippets Groups Projects
Commit 985fdf5d authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

TV: Change background & cards content color

parent 526c7ee3
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/grey850">
android:background="@color/tv_bg">
<fragment
android:name="android.support.v17.leanback.app.BrowseFragment"
android:id="@+id/browse_fragment"
......
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/grey850">
android:background="@color/tv_bg">
<FrameLayout
android:id="@+id/tv_fragment_placeholder"
android:layout_width="match_parent"
......
......@@ -42,4 +42,8 @@
<color name="blacktransparent">#b4000000</color>
<color name="whitetransparent">#dcffffff</color>
<color name="transparent">#00000000</color>
<color name="tv_bg">#235f69</color>
<color name="tv_card_content">#0a6e96</color>
</resources>
\ No newline at end of file
......@@ -172,17 +172,22 @@
<item name="ic_subtitledelay">@drawable/ic_subtitledelay_w</item>
</style>
<style name="Theme.VLC.TV" parent="Theme.Leanback">
<item name="imageCardViewStyle">@style/VLCardView</item>
<item name="imageCardViewTitleStyle">@style/VLCardViewTitleStyle</item>
<item name="imageCardViewInfoAreaStyle">@style/VLCardViewInfoStyle</item>
<item name="imageCardViewTitleStyle">@style/VLCardViewTitleStyle</item>
<item name="imageCardViewStyle">@style/VLCardView</item>
</style>
<style name="VLCardView" parent="Widget.Leanback.ImageCardViewStyle">
<item name="cardType">infoUnderWithExtra</item>
<item name="infoVisibility">always</item>
</style>
<style name="VLCardViewTitleStyle" parent="Widget.Leanback.ImageCardView.TitleStyle">
<item name="android:maxLines">2</item>
<item name="android:ellipsize">middle</item>
</style>
<style name="VLCardViewInfoStyle" parent="Widget.Leanback.ImageCardView.InfoAreaStyle">
<item name="android:background">@color/tv_card_content</item>
</style>
<style name="Theme.VLC.Leanback.Preferences" parent="Theme.Leanback">
<item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
......
......@@ -152,7 +152,6 @@ public class MainTvActivity extends BaseTvActivity implements OnItemViewSelected
}
mRootContainer = mBrowseFragment.getView();
mRootContainer.setBackgroundColor(ContextCompat.getColor(this, R.color.grey850));
mBrowseFragment.setBrandColor(ContextCompat.getColor(this, R.color.orange800));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment