create a user setting to allow users to disable the new look

This commit is contained in:
Charles Ewert 2024-11-08 11:26:53 -05:00
parent e37cedc0ce
commit 786981fddc
3 changed files with 30 additions and 10 deletions

View File

@ -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]

View File

@ -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>

View File

@ -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.",