The default skins now benefits from relative positioning:
- main window centered
- playlist window centered with a 5% offset
- fullscreen controller centered at the bottom
of the screen with a 3% margin from the border
- other ancillary windows all centered
Fix two text controls overlapping by 1 pixel in length.
Though it's no real problem, that avoids unnecessary refresh for zilch.
(one control is the position that keeps being updated)
This patch implements art display in the default skin, in the same way as it is
implemented in qt4 interface, namely if no video is available, art is displayed in lieu of video.
* skins2/parser/builder.cpp: s/resize/resizeSE/ (SE as in South-East)
because in the future resizing will be allowed in all directions
* share/skins2/default/theme.xml: Updated the skin accordingly
The XML file must begin with:
<!DOCTYPE Theme PUBLIC "-//VideoLAN//DTD VLC Skins V2.0//EN" "skin.dtd">
(the "skin.dtd" is ignored but should be an URL on the website)
and the DTD is looked up at runtime in the directories of the resource
path (see previous commit), e.g /usr/local/share/vlc/skins2/skin.dtd
-> the DTD doesn't need any more to be shipped with the themes.
font for xmms/winamp2 skins is supported (the bitmap must have the
following layout: [0123456789 -] with letters of size 9x13).
Non-digit characters are just skipped, with a hardcoded advance of 6
(it allows correct display of time in xmms skins; the ':' are skipped)
Small example at http://people.via.ecp.fr/~asmax/chaos.vlt (uncomplete skin)
* vars/time.cpp: notify the observers also when the input is stopped
* controls/ctrl_text.cpp: do not reset the FSM state and timer when the
text is displayed (was causing bugs in time display)