Hallo,
zum aktuellen Anlass des neuen Dreambox OS Version: 4.3.0r26-2017-01-10 mit dem neuen default.skin in HD,
gibt es natürlich nun neue Screenshots und auch einige Änderungen ( und werden evtl. noch einige kommen? ).
Info: Das Plugin "MyTube Player" ist ein externen Plugin, und kann/muss über die Erweiterungen installiert sein.
Man kann den Screen name="MyTubePlayerMainScreen" erreichen über:
- Menü-Taste --> Erweiterungen --> MyTube Player
Den Original-Screen finden man bei Boxen in der /usr/lib/enigma2/python/Plugins/Extensions/MyTube/plugin.py und sieht dort wie folgt aus:
XML
class MyTubePlayerMainScreen(Screen, ConfigListScreen):
Details = {}
#(entry, Title, Description, TubeID, thumbnail, PublishedDate,Views,duration,ratings )
skin = """
<screen name="MyTubePlayerMainScreen" position="center,95" size="920,570" title="MyTube - Browser">
<ePixmap pixmap="skin_default/buttons/red.png" position="10,5" size="200,40" alphatest="on"/>
<ePixmap pixmap="skin_default/buttons/green.png" position="210,5" size="200,40" alphatest="on"/>
<ePixmap pixmap="skin_default/buttons/yellow.png" position="410,5" size="200,40" alphatest="on"/>
<widget name="key_red" position="10,5" size="200,40" zPosition="1" font="Regular;20" halign="center" valign="center" backgroundColor="#9f1313" transparent="1" shadowColor="black" shadowOffset="-2,-2"/>
<widget name="key_green" position="210,5" size="200,40" zPosition="1" font="Regular;20" halign="center" valign="center" backgroundColor="#1f771f" transparent="1" shadowColor="black" shadowOffset="-2,-2"/>
<widget name="key_yellow" position="410,5" size="200,40" zPosition="1" font="Regular;20" halign="center" valign="center" backgroundColor="#a08500" transparent="1" shadowColor="black" shadowOffset="-2,-2"/>
<ePixmap pixmap="skin_default/icons/info.png" position="670,10" size="70,30" alphatest="on"/>
<ePixmap pixmap="skin_default/icons/menu.png" position="755,10" size="70,30" alphatest="on"/>
<widget name="VKeyIcon" pixmap="skin_default/icons/text.png" position="840,10" size="70,30" alphatest="on"/>
<eLabel position="10,50" size="900,1" backgroundColor="grey"/>
<widget name="config" position="10,60" size="900,30" scrollbarMode="showNever" transparent="1"/>
<eLabel position="10,95" size="900,1" backgroundColor="grey"/>
<widget source="feedlist" render="Listbox" position="10,110" size="900,450" enableWrapAround="1" scrollbarMode="showOnDemand" transparent="1">
<convert type="TemplatedMultiContent">
{"templates":
{"default": (90,[
MultiContentEntryPixmapAlphaTest(pos=(2,3),size=(130,94),png=4),# index 4 is the thumbnail
MultiContentEntryText(pos=(140,2),size=(750,26),font=0,flags=RT_HALIGN_LEFT | RT_VALIGN_TOP| RT_WRAP,text=1),# index 1 is the Title
MultiContentEntryText(pos=(150,35),size=(450,20),font=1,flags=RT_HALIGN_LEFT | RT_VALIGN_TOP| RT_WRAP,text=5),# index 5 is the Published Date
MultiContentEntryText(pos=(150,62),size=(450,20),font=1,flags=RT_HALIGN_LEFT | RT_VALIGN_TOP| RT_WRAP,text=6),# index 6 is the Views Count
MultiContentEntryText(pos=(600,35),size=(280,20),font=1,flags=RT_HALIGN_RIGHT | RT_VALIGN_TOP| RT_WRAP,text=7,color=0xa0a0a0),# index 7 is the duration
MultiContentEntryText(pos=(600,62),size=(280,20),font=1,flags=RT_HALIGN_RIGHT | RT_VALIGN_TOP| RT_WRAP,text=8,color=0xa0a0a0),# index 8 is the ratingcount
]),
"state": (90,[
MultiContentEntryText(pos=(10,5),size=(880,28),font=2,flags=RT_HALIGN_LEFT | RT_VALIGN_TOP| RT_WRAP,text=0),# index 0 is the name
MultiContentEntryText(pos=(10,37),size=(880,46),font=3,flags=RT_HALIGN_LEFT | RT_VALIGN_TOP| RT_WRAP,text=1),# index 2 is the description
])
},
"fonts": [gFont("Regular",23),gFont("Regular",18),gFont("Regular",26),gFont("Regular",20)],
"itemHeight": 90
}
</convert>
</widget>
<widget name="HelpWindow" position="360,530" zPosition="1" size="1,1"/>
<widget name="thumbnail" position="0,0" size="130,94" alphatest="on"/> # fake entry for dynamic thumbnail resizing,currently there is no other way doing this.
<widget name="ButtonBlue" position="0,0" size="0,0"/>
</screen>"""
Alles anzeigen
Hier nun mal ein Variante als Default Skin FHD angepasst:
XML
<!-- MyTube / MainScreen (plugin-extention) -->
<screen name="MyTubePlayerMainScreen" position="center,150" size="1480,860" title="MyTube - Browser">
<!-- Buttons & Keycode -->
<ePixmap pixmap="skin_default/buttons/red.png" position="10,5" size="300,50" alphatest="on"/>
<ePixmap pixmap="skin_default/buttons/green.png" position="310,5" size="300,50" alphatest="on"/>
<ePixmap pixmap="skin_default/buttons/blue.png" position="610,5" size="300,50" alphatest="on"/>
<widget name="key_red" position="10,5" size="300,50" zPosition="1" font="Regular;29" halign="center" valign="center" backgroundColor="#9f1313" transparent="1" shadowColor="black" shadowOffset="-2,-2"/>
<widget name="key_green" position="310,5" size="300,50" zPosition="1" font="Regular;29" halign="center" valign="center" backgroundColor="#1f771f" transparent="1" shadowColor="black" shadowOffset="-2,-2"/>
<widget name="key_yellow" position="610,5" size="300,50" zPosition="1" font="Regular;29" halign="center" valign="center" backgroundColor="#a08500" transparent="1" shadowColor="black" shadowOffset="-2,-2"/>
<ePixmap pixmap="skin_default/icons/info.png" position="1230,13" size="80,35" alphatest="on"/>
<ePixmap pixmap="skin_default/icons/menu.png" position="1310,13" size="80,35" alphatest="on"/>
<widget name="VKeyIcon" pixmap="skin_default/icons/text.png" position="1390,13" size="80,35" alphatest="on"/>
<!-- Lines -->
<eLabel position="10,65" size="1460,2" backgroundColor="grey"/>
<eLabel position="10,120" size="1460,2" backgroundColor="grey"/>
<!-- Config -->
<widget name="config" position="10,75" size="1460,35" scrollbarMode="showNever" transparent="1"/>
<!-- Feed Listbox -->
<widget source="feedlist" render="Listbox" position="10,130" size="1460,720" enableWrapAround="1" scrollbarMode="showOnDemand" transparent="1">
<convert type="TemplatedMultiContent">
{"templates":
{"default": (120,[
MultiContentEntryPixmapAlphaTest(pos=(2,3),size=(157,114),png=4),# index 4 is the thumbnail
MultiContentEntryText(pos=(170,3),size=(1280,35),font=0,flags=RT_HALIGN_LEFT | RT_VALIGN_CENTER| RT_WRAP,text=1),# index 1 is the Title
MultiContentEntryText(pos=(170,45),size=(450,30),font=1,flags=RT_HALIGN_LEFT | RT_VALIGN_CENTER| RT_WRAP,text=5),# index 5 is the Published Date
MultiContentEntryText(pos=(170,85),size=(450,30),font=1,flags=RT_HALIGN_LEFT | RT_VALIGN_CENTER| RT_WRAP,text=6),# index 6 is the Views Count
MultiContentEntryText(pos=(1050,45),size=(360,30),font=1,flags=RT_HALIGN_RIGHT | RT_VALIGN_CENTER| RT_WRAP,text=7,color=0xa0a0a0),# index 7 is the duration
MultiContentEntryText(pos=(1050,85),size=(360,30),font=1,flags=RT_HALIGN_RIGHT | RT_VALIGN_CENTER| RT_WRAP,text=8,color=0xa0a0a0),# index 8 is the ratingcount
]),
"state": (120,[
MultiContentEntryText(pos=(10,5),size=(880,35),font=2,flags=RT_HALIGN_LEFT | RT_VALIGN_CENTER| RT_WRAP,text=0),# index 0 is the name
MultiContentEntryText(pos=(10,40),size=(880,75),font=3,flags=RT_HALIGN_LEFT | RT_VALIGN_CENTER| RT_WRAP,text=1),# index 2 is the description
])
},
"fonts": [gFont("Regular",32),gFont("Regular",28),gFont("Regular",33),gFont("Regular",28)],
"itemHeight": 120
}
</convert>
</widget>
<widget name="HelpWindow" position="center,center" zPosition="1" size="1,1"/>
<widget name="thumbnail" position="0,0" size="130,94" alphatest="on"/> # fake entry for dynamic thumbnail resizing,currently there is no other way doing this.
<widget name="ButtonBlue" position="0,0" size="0,0"/>
</screen>
Alles anzeigen