Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix home image size bug. Update all home view sections - including those previously hidden #1530

Merged
merged 21 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
"docs/api/**": true
},
"brightscriptcomment.addExtraAtStartAndEnd": false
}
}
5 changes: 5 additions & 0 deletions components/ImageSizes.bs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
namespace imageSizes
1hitsong marked this conversation as resolved.
Show resolved Hide resolved
const WIDE_POSTER = [464, 331]
const MOVIE_POSTER = [188, 331]
const MUSIC_ALBUM = [261, 331]
end namespace
4 changes: 4 additions & 0 deletions components/home/HomeItem.bs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ sub itemContentChanged()

' Format the Data based on the type of Home Data
if itemData.type = "CollectionFolder" or itemData.type = "UserView" or itemData.type = "Channel"
m.itemText.font.size = 35
m.itemText.height = 64
m.itemText.horizAlign = "center"
m.itemText.vertAlign = "bottom"
m.itemText.text = itemData.name
m.itemPoster.uri = itemData.widePosterURL
return
Expand Down
Loading