Quantcast
Channel: Kodi Community Forum - Skinning
Viewing all articles
Browse latest Browse all 1818

Borders applied only to diffuse textures

$
0
0
Previously, you could have an image element with a border specified. This was okay for buttons with featureless textures, but for thumbnails and similar assets. To have a good looking border, a fairly large diffuse texture would have to be made.

This pending PR (https://github.com/xbmc/xbmc/pull/21552) adds the option to slice only the diffuse texture, while leaving the primary texture intact.

Before the change:
Image

After:
Image

This was done by adding the "sliceonlydiffuse" attribute. Here is an example:
<control type="image">
  <left>4</left>
  <top>0</top>
  <aspectratio>keep</aspectratio>
  <width>400</width>
  <height>400</height>
  <texture border="40" sliceonlydiffuse="true" diffuse="buttons/dialogbutton-fo.png">DefaultAudioDSP.png</texture>
</control>

Test-Builds:
Win32 http://mirrors.kodi.tv/test-builds/windo...ng-x86.exe
Win64 http://mirrors.kodi.tv/test-builds/windo...ng-x64.exe

Viewing all articles
Browse latest Browse all 1818

Trending Articles