winamp/Src/resources/skins/Winamp Modern/titlebar/titlebar.xml

121 lines
3.7 KiB
XML
Raw Normal View History

2024-09-24 12:54:57 +00:00
<!-- =======================================================================================================
<Wasabi:TitleBar /> implmentation
Available parameters :
- All params for Group
- All params for Text
Required objects : (these objects are manipulated by the script, so overriding with script content inheritance
will require you to have these objects. Otherwise, you should be fine)
- Group id="wasabi.titlebar.streak.left"
- Group id="wasabi.titlebar.streak.right"
- Layer id="mousetrap" (this object shoud cover the content of the group)
======================================================================================================== -->
<groupdef id="wasabi.titlebar" xuitag="Wasabi:TitleBar" embed_xui="window.titlebar.title">
<group
id="wasabi.titlebar.streak"
instanceid="wasabi.titlebar.streak.left"
x="0" y="3"
w="95" h="9"
/>
<sendparams group="wasabi.titlebar.streak.left" target="titlebar.center.active" w="-20"/>
<sendparams group="wasabi.titlebar.streak.left" target="titlebar.center.inactive" w="-20"/>
<sendparams group="wasabi.titlebar.streak.left" target="titlebar.right.active" x="-10"/>
<sendparams group="wasabi.titlebar.streak.left" target="titlebar.right.inactive" x="-10"/>
<text
id="window.titlebar.title"
x="100" y="1"
w="50" h="15"
default=":componentname"
font="Arial" fontsize="14"
color="titlebar.text.color"
shadowcolor="0,0,0"
shadowx="1" shadowy="1"
bold="1"
inactiveAlpha="128"
forceuppercase="1"
/>
<layer
id="window.titlebar.title.overlay"
x="100" y="4"
w="1" h="11"
image="wasabi.titlebar.overlay"
/>
<group
id="wasabi.titlebar.streak"
instanceid="wasabi.titlebar.streak.right"
x="155" y="3"
w="-155" relatw="1" h="9"
sysregion="1"
/>
<sendparams group="wasabi.titlebar.streak.right" target="titlebar.center.active" x="10" w="-20"/>
<sendparams group="wasabi.titlebar.streak.right" target="titlebar.center.inactive" x="10" w="-20"/>
<sendparams group="wasabi.titlebar.streak.right" target="titlebar.left.active" x="0"/>
<sendparams group="wasabi.titlebar.streak.right" target="titlebar.left.inactive" x="0"/>
<layer id="mousetrap" x="0" y="0" w="0" h="0" relatw="1" relath="1" move="1"/>
<script id="titlebar" file="scripts/titlebar.maki" param="wasabi.titlebar.streak.left;window.titlebar.title;wasabi.titlebar.streak.right" />
</groupdef>
<!-- =======================================================================================================
This implements a title streak bar. Dependencies are limited to the wasabi.titlebar group, in other words, if you remove
the sendparams in the above group, none of these objects are required.
======================================================================================================== -->
<groupdef id="wasabi.titlebar.streak">
<layer
id="titlebar.left.active"
x="0" y="1"
image="wasabi.titlebar.left.active"
inactiveAlpha="0"
/>
<layer
id="titlebar.center.active"
x="10" y="1" w="-10"
relatw="1"
image="wasabi.titlebar.center.active"
inactiveAlpha="0"
/>
<layer
id="titlebar.right.active"
x="-10" y="1"
relatx="1"
image="wasabi.titlebar.right.active"
inactiveAlpha="0"
/>
<layer
id="titlebar.left.inactive"
x="0" y="1"
image="wasabi.titlebar.left.inactive"
activeAlpha="0"
/>
<layer
id="titlebar.center.inactive"
x="10" y="1" w="-10"
relatw="1"
image="wasabi.titlebar.center.inactive"
activeAlpha="0"
/>
<layer
id="titlebar.right.inactive"
x="-10" relatx="1" y="1"
image="wasabi.titlebar.right.inactive"
activeAlpha="0"
/>
</groupdef>