X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/d8733ed57694bbb5309afc396cabe2bfc6f35c16..3636b0f783ebb9b5f82a6c23d4624a78985d0ac3:/data/skin_default.xml diff --git a/data/skin_default.xml b/data/skin_default.xml index d9ec7e7b..f0d25871 100644 --- a/data/skin_default.xml +++ b/data/skin_default.xml @@ -1,46 +1,82 @@ - - - + + + + + + - + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + Name + + + - + - - + + - - + + - + - - + + - + @@ -48,68 +84,93 @@ - - + + + + - - - - - + + + + - + - - + + - + - - + + + - + - + - + - + - + + + + + + + + + + - + + + + + - + + + + + + + + + - - - - - - - + + + + + + + + + @@ -153,14 +214,19 @@ - - - - + + + + + + + + + @@ -168,35 +234,81 @@ - - + - - - - - - + + + + + + + + + StartTime + + + + EndTime + Format:- %H:%M + + + Progress + + + + + + ExtendedDescription + - + + + RadioText + - + + Name + - - - - - - - - + + WithSeconds + + + Progress + + + RasInteractiveAvailable + + + + StartTime + Default + + + Name + + + Remaining + InMinutes + + + Name + + + StartTime + Default + + + Duration + InMinutes + @@ -229,6 +341,33 @@ + + + + + WithSeconds + + + + + + + + + + + + StartTime + + + + EndTime + Format:- %H:%M + + + + + @@ -239,10 +378,81 @@ - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ShortDescription + + + RecordServiceName + + + Duration + AsLength + + + ExtendedDescription + @@ -254,6 +464,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + @@ -263,36 +498,37 @@ from enigma import eSize, ePoint orgwidth = self.instance.size().width() orgpos = self.instance.position() -textsize = self["text"].getSize() +textsize = self["text"].getSize() # y size still must be fixed in font stuff... textsize = (textsize[0] + 50, textsize[1] + 50) count = len(self.list) -if count > 6: - count = 6 -offset = 30 * count +if count > 10: + count = 10 +offset = 25 * count wsizex = textsize[0] + 60 wsizey = textsize[1] + offset -if (400 > wsizex): - wsizex = 400 -wsize = (wsizex, wsizey) +if (520 > wsizex): + wsizex = 520 +wsize = (wsizex, wsizey) # resize self.instance.resize(eSize(*wsize)) # resize label -self["text"].instance.resize(eSize(*textsize)) +self["text"].instance.resize(eSize(*textsize)) # move list -listsize = (wsizex, 30 * len(self.list)) -self["list"].instance.move(ePoint(0, textsize[1])) -self["list"].instance.resize(eSize(*listsize)) +listsize = (wsizex, 25 * count) +self["list"].instance.move(ePoint(0, textsize[1])) +self["list"].instance.resize(eSize(*listsize)) # center window newwidth = wsize[0] -#self.instance.move(ePoint(orgpos.x() + (orgwidth - newwidth)/2, orgpos.y())) - +self.instance.move(ePoint((720-wsizex)/2, (576-wsizey)/(count > 7 and 2 or 3))) + + @@ -303,9 +539,11 @@ newwidth = wsize[0] - + + + @@ -315,14 +553,24 @@ newwidth = wsize[0] - + + Remaining + + + + + + + + - - - - - + + + + + + # this should be factored out into some helper code, but currently demonstrates applets. @@ -330,7 +578,7 @@ from enigma import eSize, ePoint orgwidth = self.instance.size().width() orgpos = self.instance.position() -textsize = self["text"].getSize() +textsize = self["text"].getSize() # y size still must be fixed in font stuff... textsize = (textsize[0] + 50, textsize[1] + 50) @@ -339,7 +587,7 @@ if self.type == self.TYPE_YESNO: offset = 60 wsizex = textsize[0] + 60 wsizey = textsize[1] + offset -if (280 > wsizex): +if (280 > wsizex): wsizex = 280 wsize = (wsizex, wsizey) @@ -348,16 +596,46 @@ wsize = (wsizex, wsizey) self.instance.resize(eSize(*wsize)) # resize label -self["text"].instance.resize(eSize(*textsize)) +self["text"].instance.resize(eSize(*textsize)) # move list listsize = (wsizex, 50) -self["list"].instance.move(ePoint(0, textsize[1])) -self["list"].instance.resize(eSize(*listsize)) +self["list"].instance.move(ePoint(0, textsize[1])) +self["list"].instance.resize(eSize(*listsize)) # center window newwidth = wsize[0] self.instance.move(ePoint(orgpos.x() + (orgwidth - newwidth)/2, orgpos.y())) - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +