drawing ellipses antialiased with Cairo

This commit is contained in:
louis
2014-12-03 18:12:37 +01:00
parent def1b3cc30
commit 7ce445025e
12 changed files with 304 additions and 15 deletions

View File

@@ -22,19 +22,13 @@
<area x="0" y="0" width="100%" height="100%" layer="1">
<!-- top bar -->
<drawrectangle x="0" y="0" width="{areawidth}" height="10%" color="{clrBackground}" />
<drawrectangle x="30%" y="{areaheight}*0.1 - 1" width="71%" height="1" color="{clrBorder}" />
<drawrectangle x="29%" y="10%" width="71%" height="1" color="{clrBorder}" />
<!-- menu bar -->
<drawrectangle x="0" y="10%" width="{areawidth}*29/100" height="81%" color="{clrBackground}" />
<drawrectangle x="{areawidth}*29/100 - 1" y="12%" width="1" height="76%" color="{clrBorder}" />
<drawrectangle x="29%" y="10%" width="1" height="81%" color="{clrBorder}" />
<!-- bottom bar -->
<drawrectangle x="0" y="90%" width="{areawidth}" height="10%" color="{clrBackground}" />
<drawrectangle x="30%" y="{areaheight}*0.9 - 1" width="71%" height="1" color="{clrBorder}" />
<!-- upper corner -->
<drawellipse x="{areawidth}*29/100" y="{areaheight}/10" width="{areawidth}*2/100" height="{areawidth}*2/100" quadrant="-2" color="{clrBorder}" />
<drawellipse x="{areawidth}*29/100 - 1" y="{areaheight}/10 - 1" width="{areawidth}*2/100" height="{areawidth}*2/100" quadrant="-2" color="{clrBackground}" />
<!-- lower corner -->
<drawellipse x="{areawidth}*29/100" y="{areaheight}*90/100 - {areawidth}*2/100" width="{areawidth}*2/100" height="{areawidth}*2/100" quadrant="-3" color="{clrBorder}" />
<drawellipse x="{areawidth}*29/100 - 1" y="{areaheight}*90/100 - {areawidth}*2/100 + 1" width="{areawidth}*2/100" height="{areawidth}*2/100" quadrant="-3" color="{clrBackground}" />
<drawrectangle x="29%" y="90%" width="71%" height="1" color="{clrBorder}" />
</area>
<area x="0" y="0" width="100%" height="10%" layer="2">
<drawimage imagetype="skinpart" path="headertop" x="0" y="0" width="100%" height="100%"/>