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

[Request] Different Views on Each Widget Row #12

Open
IlyaTaidi opened this issue Dec 10, 2024 · 8 comments
Open

[Request] Different Views on Each Widget Row #12

IlyaTaidi opened this issue Dec 10, 2024 · 8 comments

Comments

@IlyaTaidi
Copy link

Hi!
Absolutely love the skin. But theres really only 1 thing keeping me from transitioning to it from Arctic Horizon and thats the widget views. Would it be possible to assign a different view to each widget row? ie. Have one row be landscape and the other to be portrait?

The main reason I asked is I noticed on the youtube that during the demo
https://youtu.be/xEQPzxfTcPg?si=juaASqYuwwv9Hp_y&t=64
One of the rows was this landscape widget card that folded out and started playing the trailer within the widget. I for the love of me cant figure out how this was done and would really love to re-create that.
Let me know if its something that can be done, and if not, how the demo video got the auto expanding widget?

@AchillesPunks
Copy link
Owner

Ohh you are talking about The Highlight Widgets. Yes it's a option for the 3rd widget on the home screen. Like I said I am waiting on my water cooler parts for my PC that arrive tomorrow and I bought another PC also arriving tomorrow.

I'll be able to show you how when I get my PC

@IlyaTaidi
Copy link
Author

IlyaTaidi commented Dec 10, 2024

Thanks for responding,
Once your pc comes in, would you be able to add that option for all widgets? Honestly in the video it's really cool, if we could have a banner and poster that auto folds out into a card/trailer on every row that would be incredible

@AchillesPunks
Copy link
Owner

That would be to much work.

@AchillesPunks
Copy link
Owner

Other views on the home were removed a long time ago. I would like to keep it like Netflix

@IlyaTaidi
Copy link
Author

What about other views in custom hubs? Or just having the highlight widget be the other view option so we can have it in more than 1 place?

@IlyaTaidi
Copy link
Author

If you don't have the bandwidth to make such a change, could you tell me what the code references are for widgets and view types and that highlight view type? I'll fork it and make the changes

@IlyaTaidi
Copy link
Author

I figured out the highlight widget part, but still can't figure out how to make each widget a independent view. If you could let me know how your code is laid out it would be a lot of help

@IlyaTaidi
Copy link
Author

It looks like the existing widget selection in the skinshortcuts-widgetselect includes properties Widget content, Widget label, Limit, Sort by, Sort order, Tags.
I can update this with a new control like

<control type="button" id="900$PARAM[widgetpos]14"> <description>widget view type</description> <width>500</width> <height>45</height> <align>left</align> <font>Reg22</font> <label>$LOCALIZE[31090]:</label> <label2>$VAR[widget_viewtype_label$PARAM[widgetpos]]</label2> <textoffsetx>10</textoffsetx> <onclick> RunScript(script.skin.helper.service,action=setskinshortcutsproperty,setting=widgetviewtype,header=$LOCALIZE[31090],property=widgetViewType$PARAM[widgetprop])</onclick> <visible>!String.IsEmpty(Container(211).ListItem.Property(widget$PARAM[widgetprop]))</visible> </control>

and the corresponding

<variable name="widget_viewtype_label1"> <value condition="!String.IsEmpty(Container(211).ListItem.Property(widgetViewType))"> $INFO[Container(211).ListItem.Property(widgetViewType)]</value> <value>$LOCALIZE[31641]</value> </variable>

But i don't see where the skin's widget rendering logic is defined to actually use the new control/variable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants