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

[guilib] Drop back compatibility code and inconsistencies #4613

Merged
merged 10 commits into from May 23, 2014

Conversation

jmarshallnz
Copy link
Contributor

This drops some old backward compatibility code for skins. The aspect ratio change and label positioning changes are kept but are now switched based on the API version the skin requires, allowing a bit of time for skinners to adapt (the skins still work, but they look a bit odd in places).

I'm fairly sure no skin is using the old context menu stuff (context menu without a grouplist), so didn't bother with backward compatibility there.

@ronie, @BigNoid, @Black09, @JezzX please feel free to comment. Confluence will need updating for the label change (labels in lists now have <left> meaning left) and the aspect ratio change (all images default to stretch now - before infoimages in lists defaulted to keep).

Closer to release of Helix we can decide whether to drop the backward compatibility completely or not. e.g. if there's other, breaking changes made.

@BigNoid
Copy link
Member

BigNoid commented May 1, 2014

The label changes means a fix for the case where center align is used and the label gets cut off, right? Thats a bug every skinner has learned to live with and is used quite a lot. But I do think it should be fixed and if backwards compatibility is kept on API version, I have no problems with that. I can do the changes for confluence if this gets merged.

@jmarshallnz
Copy link
Contributor Author

Yup, exactly.

As it's a far-reaching change (not confined to one or two XMLs) I'd support backcompat staying on that for the entire cycle if skinners feel they need it. There'll be plenty of other things they'll need to change by the looks...

@jmarshallnz
Copy link
Contributor Author

Hmm, didn't make that obvious. It fixes the case where align center or right means that <left> specifies the center or right instead of the left edge inside a list.

Outside a list as far as I'm aware everything is working fine with <left> always meaning the left edge of the control.

@BigNoid
Copy link
Member

BigNoid commented May 1, 2014

yeah, I meant in a list. Currently you'd have to adjust the left position to the center to get a center aligned label inside a list.
Personally I wouldn't mind if backwards compatibility gets dropped completely, but it would take some work on every skin to be helix compatible, so thats something to consider.

@BigNoid
Copy link
Member

BigNoid commented May 1, 2014

Confluence has 12 lists across 5 xmls that use this workaround. So it's less of a problem then I thought and pretty easy to detect.

@MartijnKaijser MartijnKaijser modified the milestone: Pending for inclusion May 2, 2014
Jonathan Marshall added 10 commits May 21, 2014 09:03
Skins for 14.X should use a single background image (id 999) with border.
and must have a grouplist with id 996 for the context menu.
… buttons.

For v14 ensure the following controls are edit controls:

SmartPlaylistEditor.xml:
 id 12, name of smart playlist

SmartPlaylistRule.xml:
 id 17, value of rule

DialogMediaSource.xml:
 id 12, name of media source

DialogNetworkSetup.xml:
 id 11, server address
 id 13, port
 id 14, username
 id 15, password
 id 16, remote path
…ners. It previously defaulted to keep unless the image was constant (not infoimage) where it defaulted to stretch. It now defaults to stretch like all images.
@jmarshallnz
Copy link
Contributor Author

Rebased. jenkins build this please

@jmarshallnz
Copy link
Contributor Author

@BigNoid, @ronie: If good to merge, hit the button please :)

@ronie
Copy link
Member

ronie commented May 22, 2014

i'll try to finish the label/image fixes for Confluence soon-ish,
then we can merge the whole lot at once.

ronie added a commit that referenced this pull request May 23, 2014
[guilib] Drop back compatibility code and inconsistencies
@ronie ronie merged commit 6a5c4b2 into xbmc:master May 23, 2014
ronie added a commit that referenced this pull request May 23, 2014
[confluence] change buttons to edit controls (see #4613)
@MartijnKaijser MartijnKaijser modified the milestones: Helix 14.0-alpha1, Pending for inclusion May 24, 2014
jmarshallnz pushed a commit to jmarshallnz/xbmc that referenced this pull request Jun 8, 2014
jeroenpardon pushed a commit to jeroenpardon/skin.refocus that referenced this pull request Dec 28, 2014
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

Successfully merging this pull request may close these issues.

None yet

4 participants