summaryrefslogtreecommitdiff
path: root/skins/metrixhd/xmlfiles/displayvolume.xml
blob: f33f653caf1782c78a4d0af9ce01ba91820685ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE displayvolume SYSTEM "../../../dtd/displayvolume.dtd">

<displayvolume x="20%" y="75%" width="60%" height="20%" shifttime="{fadetime}" shifttype="bottom" shiftmode="slowed">
    <background>
        <area x="0" y="0" width="100%" height="100%" layer="1">
            <fill color="{clrTransBlack}" />
        </area>
    </background>

    <!-- Available Variables volume:
    {volume}                            current volume, range from 0 to 255
    {volpercent}                        current volume in %
    {maxvolume}                         maximal volume
    {mute}                              true if volume is muted
    -->
    <volume>
        <area x="0" y="0" width="100%" height="50%" layer="2">
            <drawtext x="10" valign="center" font="{light}" fontsize="100%" color="{clrWhite}" text="{tr(volume)}: {volpercent}%" />
            <drawimage condition="not{mute}" imagetype="icon" path="ico_volume" x="{areawidth} - {areaheight} - 5" y="5" width="{areaheight}-5" height="{areaheight}-5"/>
            <drawimage condition="{mute}" imagetype="icon" path="ico_mute" x="{areawidth} - {areaheight} - 5" y="5" width="{areaheight}-5" height="{areaheight}-5"/>
        </area>
        <area x="5%" y="60%" width="90%" height="30%" layer="2">
            <fill color="{clrDarkGray}" />
            <drawrectangle x="0" y="0" width="{volume}/{maxvolume}*{areawidth}" height="100%" color="{clrTransBlueLight}" />
        </area>        
    </volume>

</displayvolume>