mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-11-23 06:09:41 +00:00
create a user setting to allow users to disable the new look
This commit is contained in:
parent
e37cedc0ce
commit
786981fddc
@ -51,18 +51,21 @@ sub loadLibraries()
|
||||
end sub
|
||||
|
||||
sub updateSize()
|
||||
m.top.translation = [0, 180]
|
||||
|
||||
' rows take up full width of the screen
|
||||
m.top.itemSize = [1920, 330]
|
||||
|
||||
' align with edge of "action" safe zone
|
||||
m.top.focusXOffset = [96]
|
||||
m.top.rowLabelOffset = [96, 20]
|
||||
isHomeLayoutv2 = m.global.session.user.settings["ui.home.layoutv2"]
|
||||
if isValid(isHomeLayoutv2) and isHomeLayoutv2
|
||||
m.top.translation = [0, 180]
|
||||
' rows take up full width of the screen
|
||||
m.top.itemSize = [1920, 330]
|
||||
' align with edge of "action" safe zone
|
||||
m.top.focusXOffset = [96]
|
||||
m.top.rowLabelOffset = [96, 20]
|
||||
else
|
||||
m.top.translation = [111, 180]
|
||||
m.top.itemSize = [1703, 330]
|
||||
end if
|
||||
|
||||
' spacing between rows
|
||||
m.top.itemSpacing = [0, 105]
|
||||
|
||||
' spacing between items in a row
|
||||
m.top.rowItemSpacing = [33, 0]
|
||||
|
||||
|
@ -1311,5 +1311,15 @@
|
||||
<translation>Use Show Image</translation>
|
||||
<extracomment>User Setting - Setting option title</extracomment>
|
||||
</message>
|
||||
<message>
|
||||
<source>Home Screen Layout v2</source>
|
||||
<translation>Home Screen Layout v2</translation>
|
||||
<extracomment>User Setting - Setting title</extracomment>
|
||||
</message>
|
||||
<message>
|
||||
<source>Use the full display width for all rows displayed on the home screen. Jellyfin will need to be closed and reopened for changes to take effect.</source>
|
||||
<translation>Use the full display width for all rows displayed on the home screen. Jellyfin will need to be closed and reopened for changes to take effect.</translation>
|
||||
<extracomment>User Setting - Setting description</extracomment>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
</TS>
|
@ -248,6 +248,13 @@
|
||||
"type": "bool",
|
||||
"default": "false"
|
||||
},
|
||||
{
|
||||
"title": "Home Screen Layout v2",
|
||||
"description": "Use the full display width for all rows displayed on the home screen. Jellyfin will need to be closed and reopened for changes to take effect.",
|
||||
"settingName": "ui.home.layoutv2",
|
||||
"type": "bool",
|
||||
"default": "true"
|
||||
},
|
||||
{
|
||||
"title": "Max Days Next Up",
|
||||
"description": "Set the maximum amount of days a show should stay in the 'Next Up' list without watching it.",
|
||||
|
Loading…
Reference in New Issue
Block a user