aboutsummaryrefslogtreecommitdiff
path: root/Src/resources/skins/Winamp Modern/titlebar
diff options
context:
space:
mode:
authorJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
committerJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
commit20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/resources/skins/Winamp Modern/titlebar
parent537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff)
downloadwinamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz
Initial community commit
Diffstat (limited to 'Src/resources/skins/Winamp Modern/titlebar')
-rw-r--r--Src/resources/skins/Winamp Modern/titlebar/titlebar.xml120
1 files changed, 120 insertions, 0 deletions
diff --git a/Src/resources/skins/Winamp Modern/titlebar/titlebar.xml b/Src/resources/skins/Winamp Modern/titlebar/titlebar.xml
new file mode 100644
index 00000000..73b5fce5
--- /dev/null
+++ b/Src/resources/skins/Winamp Modern/titlebar/titlebar.xml
@@ -0,0 +1,120 @@
+<!-- =======================================================================================================
+
+ <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>
+