I just checked in the latest and greatest theme stuff:

-- TransIndex now works properly, and is not mandatory
-- a new <Font> tag has been added to define font typefaces
-- a new <Style> tag bas been added as part of TextControl to give Theme
writers greater control over a font. Color, alignment, bold, italic and
underline can now all be specified. (the last three don't actually work yet,
that's for tomorrow)
-- A new <Info> tag has been added for all controls. The attribute "Desc"
will allow the theme writer to give a short description to a control that
can be displayed in the "Info" field when the mouse moves over the control.
Also it has a "Tip" attribute for displaying a tool-tip. However, the actual
implementation of the tooltips is left as an excercise for Valters. :-)

I added the <Font> tag, to give us more control over fonts. In the face
field, the theme writer can specifiy a number of font type faces seperated
by commas. The system will (once its completely implemented) search this
list until it finds a matching font. So, saying

<Font Name="San Serif" Face="Arial,Helvetica">

should hopefully get a san serif font on both Linux and Windows. For the
next release I would like to add a "Link" attribute that allows a theme
writer to enter a URL where the particular font can be downloaded from. If
the system finds that the specified font is not available, the font can be
downloaded from the net. Once the download is complete, the Theme ui would
then refresh and use the downloaded font. However, I don't have the time to
implenment that right now. But, that's why we have the <Font> tag now.

Valters:

I've attached the theme.xml file for your theme. I've updated it to match my
latest set of changes. The bitmaps have not changed at all.

--ruaok         Freezerburn! All else is only icing. -- Soul Coughing

Robert Kaye -- [EMAIL PROTECTED]  http://moon.eorbit.net/~robert
<!-- Liquified Visions theme by Valters Vingolds ([EMAIL PROTECTED]) -->
<!-- based on visions skin of rainplay by Bill Yuan -->

<Bitmap Name="Background" File="background.bmp" TransIndex="0,0"/>
<Bitmap Name="Buttons" File="buttons.bmp"/>
<Font Name="San Serif" Face="Arial"/>

<Window Name="MainWindow">
    <BackgroundBitmap Name="Background" Rect="0, 0, 168, 79"/>
    <Controls>
        <ButtonControl Name="Prev">
            <Position Rect="7, 54, 24, 73">  
            <ControlBitmap Rect="0, 18, 71, 37" Name="Buttons"/>
        </ButtonControl>

        <ButtonControl Name="Quit">
            <Position Rect="150, 7, 157, 14">
            <ControlBitmap Rect="0, 0, 31, 7" Name="Buttons"/>
        </ButtonControl>

        <ButtonControl Name="Minimize">
            <Position Rect="139, 7, 146, 14">
            <ControlBitmap Rect="0, 9, 31, 16" Name="Buttons"/>
        </ButtonControl>

        <ButtonControl Name="Stop">
            <Position Rect="25, 54, 41, 73">
            <ControlBitmap Rect="0, 39, 67, 58" Name="Buttons"/>
        </ButtonControl>

        <ButtonControl Name="Play">
            <Position Rect="42, 54, 58, 73">
            <ControlBitmap Rect="0, 60, 67, 79" Name="Buttons"/>
        </ButtonControl>

        <!-- pause button looks crappy... I had to draw it -->
        <!-- please draw it properly if you can (I know I can't) -->
        <ButtonControl Name="Pause">
            <Position Rect="42, 54, 58, 73">
            <ControlBitmap Rect="0, 123, 67, 142" Name="Buttons"/>
        </ButtonControl>

        <ButtonControl Name="Next">
            <Position Rect="59, 54, 75, 73">
            <ControlBitmap Rect="0, 81, 67, 100" Name="Buttons"/>
        </ButtonControl>

        <!-- this one should be 'load song/playlist' type button -->
        <ButtonControl Name="Quit">
            <Position Rect="76, 54, 94, 73">
            <ControlBitmap Rect="0, 102, 75, 121" Name="Buttons"/>
        </ButtonControl>

        <!-- these rectangle positions are not really tested -->
        <!-- may need some adjustment -->
        <TextControl Name="Title">
            <Style Font="San Serif" Align="Left"/>
            <Position Rect="12, 22, 157, 36">
        </ButtonControl>

        <TextControl Name="Time">
            <Style Font="San Serif" Align="Right"/>
            <Position Rect="103, 38, 157, 53">
        </TextControl>

        <!-- not sure what more TextContols to put there -->

    </Controls>
</Window>            

Reply via email to