Quantcast
Channel: Kodi Community Forum - Skinning
Viewing all 1810 articles
Browse latest View live

Skin Development

$
0
0
Hi,

I am trying to develop my own theme with personal background image. I am new to Kodi Raspberry pi. I got this skin development introduction but it doesn't specify where I would get the folders/file hierarchy to copy the files intended for Confluence theme. If anyone can suggest me some basic step by step guide for this then it would be great.

Here's the link to skin development introduction:
Skin_development_introduction (wiki)

Thanks,
Tejas

Transition between main menu and addons

$
0
0
I'm trying to make a transition between main menu to the addon location. But not sure how to go about it. Do i create a animation on the fixedlist on home.xml or the myvideonav.xml
Any help on this would be great thanks.

A few thoughts on lists..

$
0
0
Hi friends,

Suggestion for a Staticlayout tag:
With listcontrols we have <itemlayout> and <focusedlayout>. But more than often, there are no need for the highlights as the list are simply used for dumping static data. So..
Maybe we could have a single <staticlayout> to tell the Kodi-render-system to just keep the layout as it is?

(Listcontrol are a nice way to show formatted static content from python, so using a label/labels wont really suffice as an un-animated alternative.. even though it probably is the only alternative)

Focusedlayout that doesn't erase the itemlayout?
As you know, all lists have to load and render each control used in an item.. at least twice.. Once for the <itemlayout>, and once more for the <focusedlayout>.
Even if all you want is a border around a thumbnail in a panel, the image itself needs to load and render twice. Surely this can be improved?

Any thoughts on this, or suggestions for a better design practise for static lists?

I guess the Thread Subject postfix should be [Discuss], but I didn't find it Smile

XML formatting "error".. and even a bug?

$
0
0
Hi all

This works:
Code:
<item>
<label>foo</label>
</item>

This doesn't (on some tags anyways):
Code:
<item label="foo"/>

Luckily this does, but it is ugly:
Code:
<item label="foo"> random unused text here or the syntax reader will ignore this item </item>

Reason for bitching is I am making a rather long fixed list of items and having oneliners improves readability by miles.

I think it should work with the "quick" tag ending all over?

Edit: SIGH.. Seems a label such as "$INFO[Window(Home).Property(PARAMNAME)]" is only updated ONCE if passed "on the inside".. So, back to even more fuglyness:
Code:
<item..
<label...
</item>

Goodbye readablity..

? Non hilighted item when panel has no focus

$
0
0
I noticed that all containers are keeping <focusedlayout> active when leaving the container focus area, excepted panel container ?

Is this a bug or normal behavior ?
While I'm building a panel customization preview, it's impossible to see the <focusedlayout> rendered if the focus is on another container than the panel itself.
However, the current item seems to have focus since infolabels outside the container display correctly ...

Cheers.

[Krypton] [Solved] New settings changes

$
0
0
I think the new and improved settings are a really good idea and much more user friendly.

I used to have a button in the menubar of MyVideoNav.xml to access VideosSettings, a button in MyMusicNav.xml to access MusicSettings and a button in MyPics.xml to access PicturesSettings.

Is it possible to access the sub sections of the settings categories? Something like ActivateWindow(LibrarySettings,Videos)?

There's a built in button in AddonBrowser.xml (id=5) to access the Add-ons section in SystemSettings, which is exactly what I was thinking of.

Did I miss something obvious?

Does IsEmpty work for $VAR

$
0
0
Hi,

Just wondering if anyone knows if IsEmpty works for $VAR or if there is another way to check a VAR?

I have an on-going issue in Madnox that after a random amount of time VARs just start losing their value. A ticket (16634) has been opened a whlle ago on the issue. Basically the var used in a colordiffuse becomes blank / empty so panel backgrounds become transparent and windows then are unreadable as no background exists. Can be any window at any time!

So I was wondering if I can build in checks / work arounds just in case the issue can't or isn't resolved? i.e. display different background on !IsEmpty or IsEmpty?

Krypton InfoDialog change: broken in some cases

$
0
0
Krypton change:
(2016-04-22 18:53)phil65 Wrote:  One general comment:
Recent changes make it neccessary that all conditions used inside InfoDialogs (DialogVideoInfo.xml etc...) do not depend on the "main" container anymore, otherwise all kind of weird stuff can happen (even if it´s not that obvious).

In other words: Don´t use Container.Content(xx), Container.Art(xxx) etc inside those dialogs, but only Listitem.DBType, ListItem.Art(), etc.
These changes are neccessary because The InfoDialog can now get opened from every window, and not just mediawindows.

This breaks the <oninfo> action in some cases.

Example:
I have added an custom fake context menu for the skinshortcuts main menu with "<oninfo>SetFocus(333)</oninfo>". It worked great in the past, but now the action will be ignored and nothing is happen.

Adding Background To Button On Home.xml

$
0
0
Hi All

Please could someone help me with adding a background to the buttons that I have added to Home.xml

I have added <thumb> like below but it doesn't work.
Code:
<thumb>special://skin/backgrounds/Quit.jpg</thumb>


I would like it that when you focus on the Power button it should also show quit background.

Below is my full code for the Power and Settings buttons.

Code:
<control type="group" id="10">
    <control type="button" id="997">
        <description>Power button</description>
        <left>55</left>
        <bottom>30</bottom>
        <width>75</width>
        <height>75</height>
        <label>31003</label>
        <font>-</font>
        <onclick>Quit()</onclick>
        <texturefocus border="5">floor_buttonFO.png</texturefocus>
        <texturenofocus border="5">floor_button.png</texturenofocus>
        <onleft>100</onleft>
        <onright>998</onright>
        <onup>300</onup>
        <ondown>100</ondown>
        <thumb>special://skin/backgrounds/Quit.jpg</thumb>
    </control>
    <control type="image">
        <description>Power Icon</description>
        <left>60</left>
        <bottom>35</bottom>
        <width>65</width>
        <height>65</height>
        <aspectratio>keep</aspectratio>
        <texture>icon_power.png</texture>
    </control>
        <control type="label">
        <description>Quit Kodi</description>
        <left>150</left>
        <bottom>-40</bottom>
        <width>200</width>
        <height>200</height>
        <align>left</align>
        <font>font10</font>
        <label>Quit Kodi</label>
        </control>
    <control type="button" id="998">
        <description>Settings button</description>
        <right>75</right>
        <bottom>30</bottom>
        <width>75</width>
        <height>75</height>
        <label>31003</label>
        <font>-</font>
        <onclick>ActivateWindow(Settings)</onclick>
        <texturefocus border="5">floor_buttonFO.png</texturefocus>
        <texturenofocus border="5">floor_button.png</texturenofocus>
        <onleft>997</onleft>
        <onright>100</onright>
        <onup>300</onup>
        <ondown>100</ondown>
        <thumb>special://skin/backgrounds/Settings.jpg</thumb>
    </control>
    <control type="image">
        <description>Settings Icon</description>
        <right>80</right>
        <bottom>35</bottom>
        <width>65</width>
        <height>65</height>
        <aspectratio>keep</aspectratio>
        <texture>icon_system.png</texture>
    </control>
        <control type="label">
        <description>Settings</description>
        <right>70</right>
        <bottom>-40</bottom>
        <width>200</width>
        <height>200</height>
        <align>left</align>
        <font>font10</font>
        <label>Settings</label>
        </control>
    </control>

Hope to hear from anyone.

Many Thanks!

Sanjay

need help with textcolor

$
0
0
how can i get this to work as it doesn't seem too.

Code:
<textcolor Condition="Container(9000).HasFocus(998)">white</textcolor>

trying to change the text color when focus on a content

Changing the MAIN Full screen layout - Adding panel at the bottom

Icon resource for default icons

$
0
0
Maybe this has been requested before, but I couldn't find it.

I would love to have the default icons removed from the skins and have them moved to a separate resource (just like the GUI sounds).
Skinners have do to less work to maintain a skin, they don't have to add the new default icons for each new Kodi release.
And users can choose their preferred default icon set.

Any thoughts on this?

Krypton forbidden oninfo?

$
0
0
Hey,

Is there a way in krypton to "forbidden" the oninfo?
For example, in a extendedinfo content like a youtube search or trending movies
a <oninfo>noop</oninfo> was usefull.

A visible in the dialogvideoinfo works in some cases with an close in the onload but it breaks the windowopen animations
and flickers on the screen..

Regards

[RESOLVED] Problem with extrafanart

$
0
0
Hi,

I want to enable extrafanart with skin settings.

I have this :

Code:
<control type="image">
                    <depth>DepthBackground</depth>
                    <include>FullScreenDimensions</include>
                    <aspectratio>scale</aspectratio>
                    <fadetime>400</fadetime>
                    <animation effect="fade" start="0" end="100" time="400">WindowOpen</animation>
                    <animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
                    <animation effect="fade" time="400">VisibleChange</animation>
                    <texture background="true" colordiffuse="$VAR[Background_Opacity]">$VAR[MediaFanartVar]</texture>
                    <visible>!Player.HasMedia | !String.IsEmpty(Window(videolibrary).Property(PlayingBackgroundMedia))</visible>
                    <visible>String.IsEmpty(ListItem.Path,,extrafanart)</visible>
                </control>
                    <control type="multiimage">
                            <depth>DepthBackground</depth>
                    <include>FullScreenDimensions</include>
                    <aspectratio>scale</aspectratio>
                    <fadetime>400</fadetime>
                    <animation effect="fade" start="0" end="100" time="400">WindowOpen</animation>
                    <animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
                    <animation effect="fade" time="400">VisibleChange</animation>
                            <imagepath background="true" colordiffuse="$VAR[Background_Opacity]">$INFO[ListItem.Path]extrafanart/</imagepath>
                            <timeperimage>5000</timeperimage>
                            <randomize>true</randomize>
                            <visible>Skin.HasSetting(enable_extrafanarts) + !String.IsEmpty(ListItem.Path,,extrafanart)</visible>
                        </control>

And my variable :

Code:
<variable name="MediaFanartVar">
        <value condition="Skin.HasSetting(no_fanart)">$VAR[GlobalFanartVar]</value>
        <value condition="Window.IsActive(musicinformation) | Window.IsActive(movieinformation) | Window.IsActive(addoninformation) | Window.IsActive(pvrguideinfo) | Window.IsActive(pvrrecordinginfo) | Window.IsActive(pictureinfo) | Window.IsVisible(script-ExtendedInfo Script-DialogVideoInfo.xml) | Window.IsVisible(script-ExtendedInfo Script-DialogInfo.xml) | Window.IsVisible(script-ExtendedInfo Script-VideoList.xml)">$INFO[Window(home).Property(infobackground)]</value>
        <value condition="!String.IsEmpty(Window(home).Property(infobackground))">$INFO[Window(home).Property(infobackground)]</value>
        <value condition="Window.IsActive(pictures) + IsEmpty(ListItem.Art(fanart))">$INFO[ListItem.FolderPath]</value>
        <value condition="!String.IsEmpty(Container.Art(tvshow.fanart))">$INFO[Container.Art(tvshow.fanart)]</value>
        <value condition="!String.IsEmpty(Container.Art(artist.fanart))">$INFO[Container.Art(artist.fanart)]</value>
        <value condition="!String.IsEmpty(Container.Art(fanart))">$INFO[Container.Art(fanart)]</value>
        <value>$INFO[ListItem.Art(fanart)]</value>
    </variable>

Extrafanarts working when I enable my setting but when there is no extrafanart for a media, there is no fanart.

I want (when my setting is enable) show extrafanarts when are available and show classic fanart when no extrafanart is available.

Any idea what's wrong ?

Multi Fanart - Remote Imgur album

$
0
0
Hey friends!
Is it possible to make Kodi work like that with imgur?


Sent from my iPhone using Tapatalk

Visualization control?

$
0
0
Hia.

Toyed with the idea of adding a visualization to my skin, but I have no idea how to control it.

I added the proper control, but how do I force it to always use - say - a 2D "Spectrum" (old school equalizer bars style) as the visualization in this visualisation control ?

Code:
<control type="visualisation">
      <left>0</left>
      <top>0</top>
      <width>300</width>
      <height>64</height>
</control>

- As you can see this is a tiny control, and it is simply to be used as a hint that music is playing.

Rename Addon Browser folder name in core

$
0
0
Not sure where the folder names are defined in core, but wouldn't it make more sense for this folder name to be "Addon Browser" or something similar? Instead of "Install from repository", which is just one of the items. Thanks for considering.

[Image: 01j5cb3.jpg]

Edit: Also noticed that the window name "musicinformation" still seems to point to DialogAlbumInfo.xml, which no longer exists. Should point to DialogMusicInfo.xml.

Difficulties using String.IsEqual()

$
0
0
Hi,

Under Kodi 16.1 , I have modified DialogButtonMenu.xml on Confluence skin to show the Exit button only when a certain profile is logged on.

I could make it work by using deprecated StringCompare function but not the String.IsEqual.

Working tag

Code:
<visible>StringCompare(System.ProfileName,myprofilename)</visible>

Non working tag

Code:
<visible>String.IsEqual(System.ProfileName,myprofilename)</visible>

Is this normal behaviour ?

Many thanks,
--
Issa

Current List Item Number

$
0
0
Hi,

I need to show the current/selected list item number in a list of items of a container. I am using the following element but it doesn't show-up. Kindly help.

<control type="label">
<posx>760</posx>
<posy>0</posy>
<width>30</width>
<height>30</height>
<font>font13</font>
<textcolor>white</textcolor>
<align>left</align>
<aligny>center</aligny>
<label>$INFO[Container(13).CurrentItem]</label>
</control>

repo submission

$
0
0
Hi,

I submitted a new release of reFocus a week ago (and a new update just now) but haven't heard anything back, and I am not seeing a lot of activity in the mailing list.

I don't mean to nag but I would like to know if anything is up that I need to take care of.

Cheers,
Jeroen
Viewing all 1810 articles
Browse latest View live