update settings page to create more space for long radio lists
This commit is contained in:
parent
fc3c7debc8
commit
439e81ce09
|
@ -4,7 +4,6 @@ import "pkg:/source/roku_modules/log/LogMixin.brs"
|
||||||
|
|
||||||
sub init()
|
sub init()
|
||||||
m.log = log.Logger("Settings")
|
m.log = log.Logger("Settings")
|
||||||
m.top.overhangTitle = tr("Settings")
|
|
||||||
m.top.optionsAvailable = false
|
m.top.optionsAvailable = false
|
||||||
|
|
||||||
m.userLocation = []
|
m.userLocation = []
|
||||||
|
@ -12,7 +11,6 @@ sub init()
|
||||||
m.settingsMenu = m.top.findNode("settingsMenu")
|
m.settingsMenu = m.top.findNode("settingsMenu")
|
||||||
m.settingDetail = m.top.findNode("settingDetail")
|
m.settingDetail = m.top.findNode("settingDetail")
|
||||||
m.settingDesc = m.top.findNode("settingDesc")
|
m.settingDesc = m.top.findNode("settingDesc")
|
||||||
m.settingTitle = m.top.findNode("settingTitle")
|
|
||||||
m.path = m.top.findNode("path")
|
m.path = m.top.findNode("path")
|
||||||
|
|
||||||
m.boolSetting = m.top.findNode("boolSetting")
|
m.boolSetting = m.top.findNode("boolSetting")
|
||||||
|
@ -72,7 +70,7 @@ sub LoadMenu(configSection)
|
||||||
end if
|
end if
|
||||||
|
|
||||||
' Set Path display
|
' Set Path display
|
||||||
m.path.text = ""
|
m.path.text = tr("Settings")
|
||||||
for each level in m.userLocation
|
for each level in m.userLocation
|
||||||
if level.title <> invalid then m.path.text += " / " + tr(level.title)
|
if level.title <> invalid then m.path.text += " / " + tr(level.title)
|
||||||
end for
|
end for
|
||||||
|
@ -82,7 +80,7 @@ sub settingFocused()
|
||||||
|
|
||||||
selectedSetting = m.userLocation.peek().children[m.settingsMenu.itemFocused]
|
selectedSetting = m.userLocation.peek().children[m.settingsMenu.itemFocused]
|
||||||
m.settingDesc.text = tr(selectedSetting.Description)
|
m.settingDesc.text = tr(selectedSetting.Description)
|
||||||
m.settingTitle.text = tr(selectedSetting.Title)
|
m.top.overhangTitle = tr(selectedSetting.Title)
|
||||||
|
|
||||||
' Hide Settings
|
' Hide Settings
|
||||||
m.boolSetting.visible = false
|
m.boolSetting.visible = false
|
||||||
|
|
|
@ -7,32 +7,35 @@
|
||||||
<LabelList
|
<LabelList
|
||||||
translation="[120,250]"
|
translation="[120,250]"
|
||||||
id="settingsMenu"
|
id="settingsMenu"
|
||||||
itemSize="[440,48]"
|
itemSize="[510,54]"
|
||||||
vertFocusAnimationStyle="floatingFocus"
|
vertFocusAnimationStyle="floatingFocus"
|
||||||
focusBitmapBlendColor="#006fab"
|
focusBitmapBlendColor="#006fab"
|
||||||
focusedColor="#ffffff"
|
focusedColor="#ffffff"
|
||||||
itemSpacing="[0,5]" />
|
itemSpacing="[0,9]"
|
||||||
|
textVertAlign="center" />
|
||||||
|
|
||||||
<Poster
|
<Poster
|
||||||
translation="[710,250]" id="testRectangle" width="880" height="700" uri="pkg:/images/white.9.png"
|
translation="[710,230]" id="testRectangle" width="1210" height="830" uri="pkg:/images/white.9.png"
|
||||||
blendColor="#3f3f3f" />
|
blendColor="#3f3f3f" />
|
||||||
|
|
||||||
<LayoutGroup translation="[1150,275]" id="settingDetail" vertAlignment="top" horizAlignment="center" itemSpacings="[50]">
|
<LayoutGroup translation="[1278,270]" id="settingDetail" vertAlignment="top" horizAlignment="center" itemSpacings="[50]">
|
||||||
|
<Label id="settingDesc"
|
||||||
|
width="1065"
|
||||||
|
wrap="true"
|
||||||
|
horizAlign="center"
|
||||||
|
translation="[750,270]" />
|
||||||
|
|
||||||
<ScrollingLabel font="font:LargeSystemFont" id="settingTitle" maxWidth="750" />
|
<RadioButtonList id="radioSetting" vertFocusAnimationStyle="floatingFocus" />
|
||||||
|
|
||||||
<Label id="settingDesc" width="750" wrap="true" />
|
|
||||||
|
|
||||||
<RadioButtonList id="boolSetting" vertFocusAnimationStyle="floatingFocus">
|
|
||||||
<ContentNode role="content">
|
|
||||||
<ContentNode title="Disabled" />
|
|
||||||
<ContentNode title="Enabled" />
|
|
||||||
</ContentNode>
|
|
||||||
</RadioButtonList>
|
|
||||||
</LayoutGroup>
|
</LayoutGroup>
|
||||||
|
|
||||||
<RadioButtonList id="radioSetting" translation="[900, 450]" inheritParentTransform="false" vertFocusAnimationStyle="floatingFocus" />
|
<RadioButtonList id="boolSetting" vertFocusAnimationStyle="floatingFocus" translation="[1034, 510]">
|
||||||
<intkeyboard_integerKeyboard translation="[900, 520]" id="integerSetting" maxLength="3" domain="numeric" visible="false" />
|
<ContentNode role="content">
|
||||||
|
<ContentNode title="Disabled" />
|
||||||
|
<ContentNode title="Enabled" />
|
||||||
|
</ContentNode>
|
||||||
|
</RadioButtonList>
|
||||||
|
|
||||||
|
<intkeyboard_integerKeyboard translation="[1034, 510]" id="integerSetting" maxLength="3" domain="numeric" visible="false" />
|
||||||
|
|
||||||
</children>
|
</children>
|
||||||
</component>
|
</component>
|
Loading…
Reference in New Issue
Block a user