jf-roku/components/config/SetServerScreen.xml

43 lines
2.3 KiB
XML
Raw Normal View History

2021-07-09 10:12:19 +00:00
<?xml version="1.0" encoding="utf-8"?>
<component name="SetServerScreen" extends="JFGroup">
<interface>
2021-07-09 10:21:24 +00:00
<field id="serverUrl" type="string" alias="serverUrlTextbox.text" />
<field id="serverWidth" alias="serverUrlOutline.width,serverUrlTextbox.width,serverUrlContainer.width" value="1570" />
<field id="serverHeight" alias="serverUrlOutline.height,serverUrlTextbox.height,serverUrlContainer.height" value="60" />
2021-07-09 10:12:19 +00:00
</interface>
<children>
<Group translation="[150,0]">
<label text="Connect to Server" id="prompt" font="font:LargeBoldSystemFont" translation="[0, 150]" />
<label text="Pick a Jellyfin server from the local network" translation="[0, 200]" />
<!--background for server picker-->
<Rectangle color="0x00000020" width="1690" height="400" translation="[0, 250]">
<Spinner id="spinner" translation="[717, 136]" />
<MarkupList id="serverPicker" translation="[50, 20]" itemComponentName="JFServer" itemSpacing="[0, 10]" itemSize="[1590, 100]" numRows="3" vertFocusAnimationStyle="fixedFocus" />
</Rectangle>
2021-07-09 10:21:24 +00:00
<label text="...or enter server URL manually" translation="[0, 690]" />
2021-07-09 10:12:19 +00:00
2021-07-09 10:21:24 +00:00
<Group width="1690" height="140" translation="[0, 730]">
<LayoutGroup layoutDirection="horiz" vertAlignment="center" translation="[10, 70]">
2021-07-09 10:12:19 +00:00
<Label text="URL: " font="font:MediumSystemFont" translation="[0, 25]" />
<Rectangle id="serverUrlContainer" color="0x00000000">
2021-07-09 10:21:24 +00:00
<TextEditBox id="serverUrlTextbox" hintText="e.g. 192.168.1.100:8096 or https://example.com/jellyfin"></TextEditBox>
2021-07-09 10:12:19 +00:00
<Poster id="serverUrlOutline" visible="false" uri="pkg:/images/hd_focus.9.png" />
</Rectangle>
</LayoutGroup>
2021-07-09 10:21:24 +00:00
</Group>
2021-07-09 10:12:19 +00:00
<label text="" id="alert" font="font:MediumSystemFont" translation="[0, 555]" />
</Group>
2021-07-09 10:21:24 +00:00
<LayoutGroup layoutDirection="vert" horizAlignment="center" vertAlignment="top" translation="[960, 930]">
<JFButton id="submit" minChars="30" text="Submit" translation="[120, 930]"></JFButton>
<!--add a known width invisibile element to allow the button to be centered-->
<Rectangle width="1920" height="12" color="#00000000" />
</LayoutGroup>
2021-07-09 10:12:19 +00:00
</children>
<script type="text/brightscript" uri="SetServerScreen.brs" />
</component>