New features added in the dev branch
Posted: 28 Nov 2010 16:03
Hello,
Here is a review of what has just been added in the dev branch regarding skins2 :
- fullscreen controller:
- it can now also be activated by mouse move
- transparency and fading out are supported when the Window Manager supports it.
- qt-opacity and qt-fs-opacity parameters are now recognized by skins2
- Relative placement
Up to now, all x, y, width or height could only be given in pixels, and it was impossible to take the size of the screen into account for placement.
The skin dtd has been enhanced in the following way :
- x, y, width and height will now be given either in pixels (default) or in percentage of their container. For a window/layout, the container will be the entire screen (whatever its size). For other widgets, it will be their upper container (layout or panel).
- In addition, five new tags are added to 'geographically' place a window or a widget within its container :
position : takes the value of "Center", "North", "NorthWest", ... to refer to a specific area of a container (divided into 9 subareas)
x-margin/y-margin: allow for an horizontal/vertical margin with respect to the borders of the container
x-offset/y-offset: additional parameters to offset the window/widget from the position computed from the (position, x-margin, y-margin) parameters.
Both x-margin, y-margin, x-offset, y-offset are also given either in pixels or % of their upper container.
- The image control can now accept an width and a height parameters to ease placement.
Default skin
I updated the default skin to showcase how these new features can be used :
- the main window is now centered in the screen (whatever the screen resolution)
- the playlist window is also centered with a 5% offset to avoid covering the main window
- all ancillary windows are all centered
- the fullscreen controller is centered at the bottom of the screen with vertical margin worth 3% of the height of the screen
These new features have been tested extensively on Linux (both with and without composite window managers), a bit on WinNT (though there is currently a bug that prevents fullscreen to be fully usable). Volunteers are welcome to test it on Vista and Win7.
For Vista/Win7, the refresh artefacts when moving the fullscreen controller should also be fixed (please, test and report ...)
Erwan10
Here is a review of what has just been added in the dev branch regarding skins2 :
- fullscreen controller:
- it can now also be activated by mouse move
- transparency and fading out are supported when the Window Manager supports it.
- qt-opacity and qt-fs-opacity parameters are now recognized by skins2
- Relative placement
Up to now, all x, y, width or height could only be given in pixels, and it was impossible to take the size of the screen into account for placement.
The skin dtd has been enhanced in the following way :
- x, y, width and height will now be given either in pixels (default) or in percentage of their container. For a window/layout, the container will be the entire screen (whatever its size). For other widgets, it will be their upper container (layout or panel).
- In addition, five new tags are added to 'geographically' place a window or a widget within its container :
position : takes the value of "Center", "North", "NorthWest", ... to refer to a specific area of a container (divided into 9 subareas)
x-margin/y-margin: allow for an horizontal/vertical margin with respect to the borders of the container
x-offset/y-offset: additional parameters to offset the window/widget from the position computed from the (position, x-margin, y-margin) parameters.
Both x-margin, y-margin, x-offset, y-offset are also given either in pixels or % of their upper container.
- The image control can now accept an width and a height parameters to ease placement.
Default skin
I updated the default skin to showcase how these new features can be used :
- the main window is now centered in the screen (whatever the screen resolution)
- the playlist window is also centered with a 5% offset to avoid covering the main window
- all ancillary windows are all centered
- the fullscreen controller is centered at the bottom of the screen with vertical margin worth 3% of the height of the screen
These new features have been tested extensively on Linux (both with and without composite window managers), a bit on WinNT (though there is currently a bug that prevents fullscreen to be fully usable). Volunteers are welcome to test it on Vista and Win7.
For Vista/Win7, the refresh artefacts when moving the fullscreen controller should also be fixed (please, test and report ...)
Erwan10