Author Topic: Simple embedded Theater mode  (Read 2158 times)

aktor

  • Jr. Member
  • **
  • Posts: 124
I made a simple embedded TM which displays album artwork and wavebar. Can someone correct the script so that the wavebar stays centered and adjusts its height when you change size of embedded TM.
Code :
<?xml version="1.0" encoding="utf-8"?>
<root>
<settings enableScaling="true" />
<theaterMode>
  <settings backgroundColor="180,180,180" />
</theaterMode>

<element name="#RightSidebar" type="Block" xAnchor="Panel.Right" x="-380" y="0" width="380" heightDock="Panel" height="0" ></element>


<element type="SoundGraph" xAnchor="AlbumCover.Right" x="35" yAnchor="AlbumCover.Bottom"  y="-210" widthDock="x:Panel.99" width="0" height="180"  fg="105, 105, 105" bg="TrackAndArtistPanel(40)"/>



<element type="AlbumCover" x="9" y="9" widthDock="Panel.Height" width="-20" heightDock="Panel" height="-20" min="100" max="300" brightness="1.0" ></element>


</root>

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1070
  • Heal The World
Code
<?xml version="1.0" encoding="utf-8"?>
<root>
<settings enableScaling="true" />
<settings backgroundColor="180,180,180" />

<element type="AlbumCover" x="9" y="9" widthDock="Panel.Height" width="-20" heightDock="Panel" height="-20" min="100" max="300" brightness="1.0"/>
<element type="SoundGraph" xAnchor="AlbumCover.Right" x="35" yAnchor="AlbumCover.Top" y="15" widthDock="X:Panel.Right" width="-35" heightDock="Y:AlbumCover.Bottom" height="-15" fg="105,105,105" bg="TrackAndArtistPanel(40)"/>

</root>

Try that. I also cleaned it up a bit.
Your <block> element isn't doing anything there (it would need a "bg" attribute to have any effect) - that's why I removed it.
I already spend hours on end on social media. Might as well spare a few of those to a greater purpose here.