From e14bd096b421440923ad6d7f7f8b099c3cb0fc34 Mon Sep 17 00:00:00 2001 From: candry7731 <83685828+candry7731@users.noreply.github.com> Date: Sat, 14 May 2022 03:52:01 -0500 Subject: [PATCH] Enabled all titles to show under poster images (#570) --- components/ItemGrid/GridItem.brs | 8 +++++++- components/ItemGrid/GridItem.xml | 3 ++- locale/en_US/translations.ts | 24 ++++++++++++++++++++++++ settings/settings.json | 23 +++++++++++++++++++++-- 4 files changed, 54 insertions(+), 4 deletions(-) diff --git a/components/ItemGrid/GridItem.brs b/components/ItemGrid/GridItem.brs index 2960b6f4..e9a9e642 100644 --- a/components/ItemGrid/GridItem.brs +++ b/components/ItemGrid/GridItem.brs @@ -10,6 +10,12 @@ sub init() m.itemText.translation = [0, m.itemPoster.height + 7] + m.alwaysShowTitles = get_user_setting("itemgrid.alwaysShowTitles") = "true" + m.itemText.visible = m.alwaysShowTitles + + ' Add some padding space when Item Titles are always showing + if m.alwaysShowTitles then m.itemText.maxWidth = 250 + 'Parent is MarkupGrid and it's parent is the ItemGrid topParent = m.top.GetParent().GetParent() 'Get the imageDisplayMode for these grid items @@ -80,7 +86,7 @@ sub focusChanged() m.itemText.visible = true m.itemText.repeatCount = -1 else - m.itemText.visible = false + m.itemText.visible = m.alwaysShowTitles m.itemText.repeatCount = 0 end if diff --git a/components/ItemGrid/GridItem.xml b/components/ItemGrid/GridItem.xml index 64cbe69c..c9c419e0 100644 --- a/components/ItemGrid/GridItem.xml +++ b/components/ItemGrid/GridItem.xml @@ -7,7 +7,7 @@