X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/91cc542ac90b8eb7559fad677ac5e46ed44e2283..45cc9a317c299b699756778a64eb3414e2b6bacb:/data/skin.xml diff --git a/data/skin.xml b/data/skin.xml index a4a65ed4..8f7fe0be 100644 --- a/data/skin.xml +++ b/data/skin.xml @@ -11,64 +11,115 @@ - + - + - + + + + - - - - - - - - + + + + + + + + - """ """ - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -79,8 +130,12 @@ - - + + + + + + @@ -88,31 +143,99 @@ - - + + + + + + + + - - - + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + - - + + + + + + - + + + + + + + + + + + + + + + + + + + - + @@ -122,10 +245,16 @@ + + + + - + + + -# this should be factored out into some helper code, but currently demonstrated applets. +# this should be factored out into some helper code, but currently demonstrates applets. from enigma import eSize, ePoint orgwidth = self.instance.size().width() @@ -133,8 +262,13 @@ orgpos = self.instance.position() textsize = self["text"].getSize() # y size still must be fixed in font stuff... -textsize = (textsize[0], textsize[1] + 20) -wsize = (textsize[0] + 20, textsize[1] + 20) +textsize = (textsize[0], textsize[1] + 50) +wsizex = textsize[0] + 50 +wsizey = textsize[1] + 50 +if (280 > wsizex): + wsizex = 280 +wsize = (wsizex, wsizey) + # resize self.instance.resize(eSize(*wsize)) @@ -147,4 +281,4 @@ newwidth = wsize[0] self.instance.move(ePoint(orgpos.x() + (orgwidth - newwidth)/2, orgpos.y())) - \ No newline at end of file +