Support for ultrawide resolutions in addon skins
#1
Hi,

I would like to know how to add support for different aspect ratio and ultrawide resolutions in addon skins, is this possible without rewriting the width structure in all files creating another folder ex. 21x9?

BR
Mariusz
Reply
#2
Yes, have a look at Estuary addon.xml as it already does this


<extension point="xbmc.gui.skin" debugging="false">
<res width="1920" height="1440" aspect="4:3" default="false" folder="xml" />
<res width="1920" height="1280" aspect="3:2" default="false" folder="xml" />
<res width="1920" height="1200" aspect="16:10" default="false" folder="xml" />
<res width="2040" height="1080" aspect="17:9" default="false" folder="xml" />
<res width="1920" height="1080" aspect="16:9" default="true" folder="xml" />
<res width="2560" height="1080" aspect="21:9" default="false" folder="xml" />
<res width="2338" height="1080" aspect="19.5:9" default="false" folder="xml" />
<res width="2160" height="1080" aspect="18:9" default="false" folder="xml" />
</extension>

The skin needs to be written in a way that is responsive to aspect ratio changes though -- other than Estuary, most skins will break if you change the aspect ratio.
Reply
#3
In addition,
i would tend to avoid posx, posy tags, and use left,right,bottom,top values if possible instead.
Also use percentage values, instead of 'fixed' if possible.
e.g. instaed of
<height>270</height> , use
<height>25%</height>



I case some finetuning needed, you also can work with some booleans

like
String.IsEqual(Skin.AspectRatio,**)
String.IsEqual(System.ScreenWidth,**)
String.IsEqual(System.ScreenHeight,**)
Skins                                                                                        
Reply
#4
(2020-05-12, 14:44)jurialmunkey Wrote: Yes, have a look at Estuary addon.xml as it already does this


<extension point="xbmc.gui.skin" debugging="false">
<res width="1920" height="1440" aspect="4:3" default="false" folder="xml" />
<res width="1920" height="1280" aspect="3:2" default="false" folder="xml" />
<res width="1920" height="1200" aspect="16:10" default="false" folder="xml" />
<res width="2040" height="1080" aspect="17:9" default="false" folder="xml" />
<res width="1920" height="1080" aspect="16:9" default="true" folder="xml" />
<res width="2560" height="1080" aspect="21:9" default="false" folder="xml" />
<res width="2338" height="1080" aspect="19.5:9" default="false" folder="xml" />
<res width="2160" height="1080" aspect="18:9" default="false" folder="xml" />
</extension>

The skin needs to be written in a way that is responsive to aspect ratio changes though -- other than Estuary, most skins will break if you change the aspect ratio.

Looking for a LIGHT / Minimalist SKIN (I use Music Bee or Foobar on Windows) that works & LEVERAGES High Res Screen - 1080p and/ or 4K to SHOW more Data i.e. Smaller Font/ Text and more Items in the List at any given time.

Is Estuary a Skin or Add one or more? 
Reply
#5
Thank you for your answers. I`m looking at the estuary skin solution but is it applicable for custom skins within my addon script?
Reply
#6
(2020-05-14, 14:04)crashnburn Wrote: Looking for a LIGHT / Minimalist SKIN

There is no need to post your text in all bold letters.
We can read the normal font just fine.

Also, the linked thread in your signature is quite outdated (2016).
Got a Kodi problem? Provide us with a full Debug log (wiki) || Usefull pages: First time user (wiki) || Troubleshooting (wiki) || Free content (wiki) || Forum rules (wiki) || VPN policy (wiki)
Reply
#7
(2020-05-19, 19:20)Klojum Wrote:
(2020-05-14, 14:04)crashnburn Wrote: Looking for a LIGHT / Minimalist SKIN

There is no need to post your text in all bold letters.
We can read the normal font just fine.

Also, the linked thread in your signature is quite outdated (2016). 

My bad.. I should've bolded whats key. Sig will have to check.

- Looking for a LIGHT / Minimalist SKIN
(I use Music Bee or Foobar on Windows) that
- Works & LEVERAGES High Res Screen - 1080p and/ or 4K
- To SHOW more Data i.e. Smaller Font/ Text and more Items in the List VIEW at any given time.
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Support for ultrawide resolutions in addon skins00
This forum uses Lukasz Tkacz MyBB addons.