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 @@
-
+
@@ -15,4 +15,5 @@
+
diff --git a/locale/en_US/translations.ts b/locale/en_US/translations.ts
index 504ae210..a0f8bcb0 100644
--- a/locale/en_US/translations.ts
+++ b/locale/en_US/translations.ts
@@ -493,6 +493,30 @@
Disabled
+
+
+ User Interface
+ Title for User Interface section in user setting screen.
+
+
+
+ Media Grid
+ UI -> Media Grid section in user setting screen.
+
+
+
+ Media Grid Options
+
+
+
+ Item Titles
+ UI -> Media Grid -> Item Title in user setting screen.
+
+
+
+ Always show the titles below the poster images. (If disabled, title will be shown under hilighted item only)
+ Description for option in Setting Screen
+
Set Favorite
diff --git a/settings/settings.json b/settings/settings.json
index c8b69fe4..6130a027 100644
--- a/settings/settings.json
+++ b/settings/settings.json
@@ -9,7 +9,26 @@
"settingName": "playback.mpeg2",
"type": "bool",
"default": "false"
- }
+ }
+ ]
+ },
+ {
+ "title": "User Interface",
+ "description": "Settings relating to how the how the applications looks",
+ "children": [
+ {
+ "title": "Media Grid",
+ "description": "Media Grid Options",
+ "children": [
+ {
+ "title": "Item Titles",
+ "description": "Always show the titles below the poster images. (If disabled, title will be shown under hilighted item only)",
+ "settingName": "itemgrid.alwaysShowTitles",
+ "type": "bool",
+ "default": "false"
+ }
+ ]
+ }
]
}
-]
+]
\ No newline at end of file