2022-06-14, 01:14
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:
After:
This was done by adding the "sliceonlydiffuse" attribute. Here is an example:
Test-Builds:
Win32 http://mirrors.kodi.tv/test-builds/windo...ng-x86.exe
Win64 http://mirrors.kodi.tv/test-builds/windo...ng-x64.exe
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:
After:
This was done by adding the "sliceonlydiffuse" attribute. Here is an example:
xml:<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