Solved Custom XML window background is not solid color.
#1
Hello,

I created Custom WindowXML for my script. It is plain window.
The issue that I have is that when I use color (white) or texture (also white) I have that gradient like effect - which I think comes from Kodi itself.
Is there a way to disable that gradient ?

The Window XML looks like this:
xml:

<?xml version="1.0" encoding="UTF-8"?>
<window id="999">
   <defaultcontrol always="true">901</defaultcontrol>
   <backgroundcolor>0x00000000</backgroundcolor>
   <zorder>1</zorder>
   <coordinates>
      <posx>0</posx>
      <posy>0</posy>
   </coordinates>
   <controls>
      <control type="image">
         <description></description>
         <posx>0</posx>
         <posy>0</posy>
         <width>1920</width>
         <height>1080</height>
         <texture>common/ac-bg.png</texture>
      </control>
   </controls>
</window>

Image
Proud developer for Shoko and Nakamori. Long time xbmc/kodi user. IT Freak at Monogatari.
Reply
#2
<backgroundcolor>0x00000000</backgroundcolor>

This is black with 0 alpha, meaning completely transparent, try 0xff000000 or if you want white then 0xffffffff
Reply
#3
(2019-08-22, 11:31)roidy Wrote: <backgroundcolor>0x00000000</backgroundcolor>

This is black with 0 alpha, meaning completely transparent, try 0xff000000 or if you want white then 0xffffffff

Sadly that does not help.
Changing or removing it completely had no effect.
The white background is from texture png that is 1 single pixel wide white image.

Anything that is added onto this image is white as it should, but the background - made with texture is not.

Edit: when I move the image to the right the "gradiant" is also moving, so there is something that put a gradiant on that image.... Default.xml have only this

<default type="image">
        <texture></texture>
        <aspectratio>stretch</aspectratio>
    </default>

So its not that

Edit2:
The issue is not present when background is not stretch out.
Proud developer for Shoko and Nakamori. Long time xbmc/kodi user. IT Freak at Monogatari.
Reply
#4
(2019-08-22, 12:37)bigretromike Wrote: The white background is from texture png that is 1 single pixel wide white image. 
Try with a larger white image, ie 16x16 or 32x32
Reply
#5
(2019-08-22, 13:00)roidy Wrote:
(2019-08-22, 12:37)bigretromike Wrote: The white background is from texture png that is 1 single pixel wide white image. 
Try with a larger white image, ie 16x16 or 32x32 
The image is 1x1080

When changing it to 10x1080 or 30x1080 this is the results:

Image

@ronie could this be a bug in streaching images ?
Proud developer for Shoko and Nakamori. Long time xbmc/kodi user. IT Freak at Monogatari.
Reply
#6
I had to resize it to 108x1080, and enlarge the background area so the "shadow" effect is outside the view, that or making background 1920x1080.
Proud developer for Shoko and Nakamori. Long time xbmc/kodi user. IT Freak at Monogatari.
Reply
#7
The reason I suggested 16x16 or 32x32 is because slim tall images like that need to be a power of 2.

30x1080 fails for me as well, but 32x1080 works fine.

The smallest width I can get to work is 16px, anything lower than that causes blurring as the texture is stretched.
Reply
#8
(2019-08-22, 13:41)roidy Wrote: The reason I suggested 16x16 or 32x32 is because slim tall images like that need to be a power of 2.

30x1080 fails for me as well, but 32x1080 works fine.

The smallest width I can get to work is 16px, anything lower than that causes blurring as the texture is stretched.

32x1080 sadly did not  worked
Looks like I have to reload kodi each time I resize image

edit. here you go my good men. Thanks
Proud developer for Shoko and Nakamori. Long time xbmc/kodi user. IT Freak at Monogatari.
Reply

Logout Mark Read Team Forum Stats Members Help
Custom XML window background is not solid color.0