Would be great if align attribute supports "Center" along with the current "Top.Left", "Top.Right", "Bottom.Left", and "Bottom.Right". Then we could draw an element in a variable size in the center of panel:
<element type="AlbumCover" xAnchor="Panel.Center" x="0" yAnchor="Panel.Center" y="0" align="Center" widthDock="X:Panel.60" width="0" heightDock="Y:Panel.70" height="0" ></element>
That will be useful to some kind of elements like blocks. But the problem is that there's no way to have album cover keep its original width/height ratio. With the code above, the cover's shape will be distorted depending on the whole player window's shape. But, for some reason, embedded TM allows keeping original ratio with the following code where height is not precisely defined.
<element type="AlbumCover" xAnchor="Panel.Center" x="0" yAnchor="Panel.Center" y="0" align="Center" widthDock="X:Panel.60" width="0" heightDock="Panel" height="0" ></element>
If that supports full-screen TM too, the problem can be resolved.
align already supports
XXX.Left
XXX.Center
XXX.Right
where XXX is
Top
Middle
Bottom
using version:2.3.5146 and Top./Bottom. & .Left/.Right work.
Middle. or .Center don't have any effect and default aligning is used.
<element type="AlbumCover" name="#Cover" xAnchor="Panel.Center" x="0" align="Top.Center" yAnchor="Panel.Center" y="0" width="300" height="300" min="100" max="500" brightness="1.0" ></element>
does not align the center of the top edge of "AlbumCover" to the center of the panel. It's ignored and the default (Top.Left) aligning is used.
Getting this working as you say it should will be great, 'cause I can then use align="Middle.Center" to have the album cover stay in the center of the panel. Yippee!