Changes to the skinning engine for XBMC Frodo

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
ronie Offline
Team-Kodi Member
Posts: 9,326
Joined: Jan 2009
Reputation: 162
Post: #16
2012-05-05 New Infolabel

ListItem.DateAdded

Skins can now display the date a certain item was added to the library.

git commit: https://github.com/xbmc/xbmc/commit/cd2e...d23e7778d6
pull-request: https://github.com/xbmc/xbmc/pull/936
trac ticket: http://trac.xbmc.org/ticket/12965

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,219
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #17
2012-06-01 Change of system.platform.osx behaviour

This changes the behaviour of the condition system.platform.osx.

Before it was true whenever it was one of ios or osx. Now its only true on osx anymore. For getting the old behaviour system.platform.darwin has to be used after this PR.

So basically we have:

system.platform.darwin - true on ios and osx
system.platform.osx - true on osx
system.platform.ios - true on ios

pull-request: https://github.com/xbmc/xbmc/pull/970
git commit: https://github.com/xbmc/xbmc/commit/cb4a...5549b1b33c

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
(This post was last modified: 2012-06-01 18:42 by ronie.)
find quote
ronie Offline
Team-Kodi Member
Posts: 9,326
Joined: Jan 2009
Reputation: 162
Post: #18
2012-06-01 Changed Infolabels

Skin.CurrentTheme
Skin.CurrentColourTheme

both labels are not localized anymore.

git commit: https://github.com/xbmc/xbmc/commit/d895...5e8eeed5fe
pull-request: https://github.com/xbmc/xbmc/pull/990
forum post: http://forum.xbmc.org/showthread.php?tid=131363

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2012-06-01 00:15 by ronie.)
find quote
Jezz_X Offline
Team-XBMC Skinner
Posts: 5,289
Joined: Jun 2006
Reputation: 57
Location: Earth
Post: #19
heh ronie is too quick for me I was just about to post this I actually think xbmc.gui is due for a version bump as well so setting your skin to the next version we make it "should" stop older xbmc from running versions that need this (not good for the eden repo obviously)

Also please not this will be case sensitive on everything but windows if you use it in the way the forum posts says so you will need to name your files or folders in uppercase like SKINDEFAULT because thats how it gets stored in guisettings.xml and is used internally
PHP Code:
<lookandfeel>
        <
enablerssfeeds>false</enablerssfeeds>
        <
font>Default</font>
        <
rssedit></rssedit>
        <
skin>skin.confluence</skin>
        <
skincolors>SKINDEFAULT.xml</skincolors>
        <
skintheme>SKINDEFAULT</skintheme>
        <
skinzoom>0</skinzoom>
        <
soundskin>SKINDEFAULT</soundskin>
        <
startupwindow>10000</startupwindow>
    </
lookandfeel
(This post was last modified: 2012-06-01 00:55 by Jezz_X.)
find quote
Hitcher Offline
Skilled Skinner
Posts: 10,875
Joined: Aug 2007
Reputation: 101
Location: Eastleigh, UK
Post: #20
Here's another one -

http://forum.xbmc.org/showthread.php?tid...pid1110513
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,221
Joined: Oct 2003
Reputation: 178
Post: #21
That one is in now.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
ronie Offline
Team-Kodi Member
Posts: 9,326
Joined: Jan 2009
Reputation: 162
Post: #22
2012-06-02 Font.xml additions

Added support for uppercase / lowercase to be used in the <style> tag of Font.xml
Also allows more than one style to be set using a space separated list.

git commit: https://github.com/xbmc/xbmc/commit/0d2c...c8ef4bb9ee
pull-request: https://github.com/xbmc/xbmc/pull/966

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2012-06-02 15:31 by ronie.)
find quote
ronie Offline
Team-Kodi Member
Posts: 9,326
Joined: Jan 2009
Reputation: 162
Post: #23
2012-06-02 New Infolabel

ListItem.DBID

ListItem.DBID provides the database ID for the selected item in a list or thumb control.
Mostly useful for skin/script interaction.

git commit: https://github.com/xbmc/xbmc/commit/8e8e...79d22e977f
pull-request: https://github.com/xbmc/xbmc/pull/1017
forum post: http://forum.xbmc.org/showthread.php?tid=131145

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2012-06-02 15:44 by ronie.)
find quote
ronie Offline
Team-Kodi Member
Posts: 9,326
Joined: Jan 2009
Reputation: 162
Post: #24
2012-08-06 New Infolabel

ListItem.PictureDate

ListItem.PictureDate shows the localized date of the selected picture.

git commit: https://github.com/xbmc/xbmc/commit/d9ce...75b38d1afe

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
ronie Offline
Team-Kodi Member
Posts: 9,326
Joined: Jan 2009
Reputation: 162
Post: #25
2012-09-05 PVR support

new dialogs:
DialogExtendedProgressBar.xml
DialogPVRChannelManager.xml
DialogPVRChannelsOSD.xml
DialogPVRGroupManager.xml
DialogPVRGuideInfo.xml
DialogPVRGuideOSD.xml
DialogPVRGuideSearch.xml
DialogPVRRecordingInfo.xml
DialogPVRTimerSettings.xml

new window:
MyPVR.xml

new control:
EpgGrid

new built-in commands:
ActivateWindowAndFocus(id,id)
InhibitIdleShutdown
AllowIdleShutdown

new boolean conditions:
ListItem.HasEpg
ListItem.HasTimer
ListItem.IsRecording
ListItem.IsEncrypted
Pvr.HasTimer
Pvr.HasNonRecordingTimer
Pvr.HasEpg
Pvr.HasTxt
Pvr.HasDirector
Pvr.ActStreamIsEncrypted
Pvr.IsPlayingTv
Pvr.IsPlayingRadio
Pvr.IsRecording
Pvr.IsPlayingRecording
System.IsInhibit
System.HasShutdown
VideoPlayer.HasEpg

new infolabels:
ListItem.StartTime
ListItem.EndTime
ListItem.StartDate
ListItem.EndDate
ListItem.NextTitle
ListItem.NextGenre
ListItem.NextPlot
ListItem.NextPlotOutline
ListItem.NextStartTime
ListItem.NextEndTime
ListItem.NextStartDate
ListItem.NextEndDate
ListItem.ChannelName
ListItem.ChannelNumber
ListItem.ChannelGroup
ListItem.Progress
MusicPlayer.ChannelName
MusicPlayer.ChannelNumber
MusicPlayer.ChannelGroup
VideoPlayer.EndTime
VideoPlayer.NextTitle
VideoPlayer.NextGenre
VideoPlayer.NextPlot
VideoPlayer.NextPlotOutline
VideoPlayer.NextStartTime
VideoPlayer.NextEndTime
VideoPlayer.NextDuration
VideoPlayer.ChannelName
VideoPlayer.ChannelNumber
VideoPlayer.ChannelGroup
VideoPlayer.ParentalRating
Pvr.NowRecordingTitle
Pvr.NowRecordingDateTime
Pvr.NowRecordingChannel
Pvr.NowRecordingChannelIcon
Pvr.NextRecordingTitle
Pvr.NextRecordingDateTime
Pvr.NextRecordingChannel
Pvr.NextRecordingChannelIcon
Pvr.BackendName
Pvr.BackendVersion
Pvr.BackendHost
Pvr.BackendDiskSpace
Pvr.BackendChannels
Pvr.BackendTimers
Pvr.BackendRecordings
Pvr.BackendNumber
Pvr.TotalDiscSpace
Pvr.NextTimer
Pvr.Duration
Pvr.Time
Pvr.Progress
Pvr.ActStreamClient
Pvr.ActStreamDevice
Pvr.ActStreamStatus
Pvr.ActStreamSignal
Pvr.ActStreamSnr
Pvr.ActStreamBer
Pvr.ActStreamUnc
Pvr.ActStreamVideoBitRate
Pvr.ActStreamAudioBitRate
Pvr.ActStreamDolbyBitRate
Pvr.ActStreamProgrSignal
Pvr.ActStreamProgrSnr
Pvr.ActStreamEncryptionName

new control in SettingsSystemInfo.xml:
Button Control id="99"


git commit: https://github.com/xbmc/xbmc/commit/d9d3...dbb906eecb
pull request: https://github.com/xbmc/xbmc/issues/1357
forum: http://forum.xbmc.org/forumdisplay.php?fid=136

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2012-12-05 00:10 by ronie.)
find quote
Hitcher Offline
Skilled Skinner
Posts: 10,875
Joined: Aug 2007
Reputation: 101
Location: Eastleigh, UK
Post: #26
ActivateWindow(id)AndFocus(id) - was this PVR related and how does it differ from defaultcontrol/onload?

Thanks.
find quote
ronie Offline
Team-Kodi Member
Posts: 9,326
Joined: Jan 2009
Reputation: 162
Post: #27
(2012-09-05 08:19)Hitcher Wrote:  ActivateWindow(id)AndFocus(id) - was this PVR related and how does it differ from defaultcontrol/onload?

yes it was part of the pvr merge.
looking at it again, i think the correct syntax is ActivateWindowAndFocus(id,id)

i have no info on how/why/when to use or what it's supposed to do.

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
ronie Offline
Team-Kodi Member
Posts: 9,326
Joined: Jan 2009
Reputation: 162
Post: #28
2012-09-08 New Infolabel

Skin.AspectRatio

Skin.AspectRatio returns the closest aspect ratio match using the resolution info from the skin's addon.xml file.


git commit: https://github.com/xbmc/xbmc/commit/96ce...62b275540d
pull-request: https://github.com/xbmc/xbmc/issues/1206

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
ronie Offline
Team-Kodi Member
Posts: 9,326
Joined: Jan 2009
Reputation: 162
Post: #29
2012-09-08 New Image

DefaultInProgressShows.png

This commit adds a new 'In progress TV shows' node to the TV Show library.
DefaultInProgressShows.png will be used to represent this node in the gui.

git commit: https://github.com/xbmc/xbmc/commit/d691...743e2afb5a
pull-request: https://github.com/xbmc/xbmc/issues/1349

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
pieh Offline
Team-Kodi Member
Posts: 672
Joined: Aug 2010
Reputation: 13
Location: Poland
Post: #30
2012-09-08 Changes to windows .xml loading mechanism - added KEEP_IN_MEMORY load type

Now xbmc can store window structure after window is closed. This speeds up loading windows as xbmc no longer have to load .xml file and parse it if window structure is already stored. In addition to storing window structure xbmc will also store xml file (to speed up loading windows that aren't KEEP_IN_MEMORY and to avoid loading xml file in case any condition used in conditional includes changed its value). Load type of window is controlled by xbmc, not skin files, so skins don't need any changes.

You can check if window is using new mechanism by checking log, as we now log type of load window is using:
Code:
Load types:
KEEP_IN_MEMORY - This mean that after first load of xml, structure of window will be stored, so next load will be faster.
LOAD_EVERY_TIME - This mean that we do NOT keep window structure (old behaviour).
LOAD_ON_GUI_INIT - Some dialogs we load and keep in memory on xbmc startup (DialogBusy.xml, DialogKaiToast.xml, DialogMuteBug.xml, DialogSeekBar.xml, DialogVolumeBar.xml and newly added with pvr DialogExtendedProgressBar.xml). We did it earlier so this is nothing new.

Log lines examples:
Loading skin file: Home.xml, load type: KEEP_IN_MEMORY
Loading skin file: Startup.xml, load type: LOAD_EVERY_TIME
Loading skin file: DialogBusy.xml, load type: LOAD_ON_GUI_INIT
Generally KEEP_IN_MEMORY is used in most of windows, except karaoke windows and newly added pvr windows (for full list of excluded windows see pull request description from link below).

Note: using ReloadSkin() will be needed when developing skin to force reload of xml file. If not used xbmc will use stored window structure or stored xml.

git commit: https://github.com/xbmc/xbmc/commit/2cc5...f881e3106d
pull-request: https://github.com/xbmc/xbmc/pull/1283

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

My previous forum/trac nickname: grajen3
find quote
Post Reply