Enabled all titles to show under poster images (#570)
This commit is contained in:
parent
c37999fb30
commit
e14bd096b4
|
@ -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
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<Poster id="itemIcon" width="50" height="50" translation="[230,10]" />
|
||||
<Label id="posterText" width="280" height="415" translation="[5,5]" horizAlign="center" vertAlign="center" ellipsizeOnBoundary="true" wrap="true" />
|
||||
</maskGroup>
|
||||
<ScrollingLabel id="itemText" horizAlign="center" font="font:SmallSystemFont" maxWidth="290" repeatCount="-1" visible="false" />
|
||||
<ScrollingLabel id="itemText" horizAlign="center" font="font:SmallSystemFont" maxWidth="290" repeatCount="0" visible="false" />
|
||||
</children>
|
||||
<interface>
|
||||
<field id="itemContent" type="node" onChange="itemContentChanged" />
|
||||
|
@ -15,4 +15,5 @@
|
|||
<field id="focusPercent" type="float" onChange="focusChanging" />
|
||||
</interface>
|
||||
<script type="text/brightscript" uri="GridItem.brs" />
|
||||
<script type="text/brightscript" uri="pkg:/source/utils/config.brs" />
|
||||
</component>
|
||||
|
|
|
@ -493,6 +493,30 @@
|
|||
<source>Disabled</source>
|
||||
<translation>Disabled</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>User Interface</source>
|
||||
<translation>User Interface</translation>
|
||||
<extracomment>Title for User Interface section in user setting screen.</extracomment>
|
||||
</message>
|
||||
<message>
|
||||
<source>Media Grid</source>
|
||||
<translation>Media Grid</translation>
|
||||
<extracomment>UI -> Media Grid section in user setting screen.</extracomment>
|
||||
</message>
|
||||
<message>
|
||||
<source>Media Grid Options</source>
|
||||
<translation>Media Grid Options</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Item Titles</source>
|
||||
<translation>Item Titles</translation>
|
||||
<extracomment>UI -> Media Grid -> Item Title in user setting screen.</extracomment>
|
||||
</message>
|
||||
<message>
|
||||
<source>Always show the titles below the poster images. (If disabled, title will be shown under hilighted item only)</source>
|
||||
<translation>Always show the titles below the poster images. (If disabled, title will be shown under hilighted item only)</translation>
|
||||
<extracomment>Description for option in Setting Screen</extracomment>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set Favorite</source>
|
||||
<translation>Set Favorite</translation>
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
Loading…
Reference in New Issue
Block a user