StorageInformation im Skin erstellen

Aus Gemini-Wiki
Zur Navigation springen Zur Suche springen


Baustelle.png An diesem Artikel wird derzeit gearbeitet. Achtung: Der Artikel kann unvollständig und fehlerhaft sein!

Der Screen name="StorageInformation" Kann erreicht werden durch:

  • Menü -> Einstellungen -> System -> Speichergeräte -> Speichergerät auswählen -> "Info-Taste drücken"

Vorher/Nachher-Vergleich

StorageInformation im Skin Default-HD des OE2.0
StorageInformation im Skin BluedreamHD des OE2.0

StorageInformation im Defaultskin

Im OE 2.0 Default-HD skin ist dieser Abschnitt so dargestellt:

	<!-- Storage Information -->
	<screen name="StorageInformation" position="center,120" size="820,520" title="Storage device information">
		<ePixmap pixmap="Default-HD/buttons/red.png" position="10,5" size="200,40" alphatest="on"/>
		<ePixmap pixmap="Default-HD/buttons/green.png" position="210,5" size="200,40" alphatest="on"/>
		<ePixmap pixmap="Default-HD/buttons/yellow.png" position="410,5" size="200,40" alphatest="on"/>
		<ePixmap pixmap="Default-HD/buttons/blue.png" position="610,5" size="200,40" alphatest="on"/>
		<widget source="key_red" render="Label" 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 source="key_green" render="Label" 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 source="key_yellow" render="Label" position="410,5" size="200,40" zPosition="1" font="Regular;20" halign="center" valign="center" backgroundColor="#a08500" transparent="1" shadowColor="black" shadowOffset="-2,-2"/>
		<widget source="key_blue" render="Label" position="610,5" size="200,40" zPosition="1" font="Regular;20" halign="center" valign="center" backgroundColor="#18188b" transparent="1" shadowColor="black" shadowOffset="-2,-2"/>
		<eLabel	position="10,50" size="800,1" backgroundColor="grey"/>
		<widget source="icon" render="Pixmap" position="30,70" size="88,126" alphatest="on">
			<convert type="ValueToPixmap">Path</convert>
		</widget>
		<widget source="model" render="Label" position="160,70" size="650,25" font="Regular;23"/>
		<widget source="device_capacity" render="Label" position="160,100" size="650,25" font="Regular;23"/>
		<widget source="device_free" render="Label" position="160,130" size="650,25" font="Regular;23"/>
		<widget source="bus" render="Label" position="160,160" size="650,25" font="Regular;23"/>
		<widget source="num_partitions" render="Label" position="160,190" size="650,25" font="Regular;23"/>
		<widget source="partition" render="Label" position="160,220" size="650,25" font="Regular;23"/>
		<widget source="partition_capacity" render="Label" position="160,250" size="650,25" font="Regular;23"/>
		<widget source="filesystem" render="Label" position="160,280" size="650,25" font="Regular;23"/>
		<eLabel position="10,455" size="800,1" backgroundColor="grey"/>
		<widget source="introduction" render="Label" position="10,465" size="800,50" font="Regular;21" halign="center" valign="center" transparent="1"/>
	</screen>



StorageInformation im BlueDreamHD

Hier die Variante ich ich für den BlueDreamHD ausgearbeitet habe.

	<!-- Storage Information -->
	<screen name="StorageInformation" position="center,center" size="750,600" title="Storage device information" flags="wfNoBorder">
 
		<!-- Background -->
		<ePixmap position="0,0" size="750,600" zPosition="-5" pixmap="BlueDreamHD/bg_750x600.png"/>
		<eLabel  position="8,46" size="735,515" zPosition="-1" backgroundColor="#200d1940"/>
 
 
		<!-- Title & Titelicon -->
		<eLabel text="Storage device information" position="20,6" size="710,30" zPosition="1" halign="center" font="Regular;29" backgroundColor="background" shadowColor="black" shadowOffset="-2,-2" transparent="1"/>
		<ePixmap position="690,6" size="32,32" pixmap="BlueDreamHD/menu/drive-harddisk32x32.png" alphatest="blend"/>
 
		<eLabel	position="10,50" size="800,1" backgroundColor="grey"/>
		<widget source="icon" render="Pixmap" position="30,70" size="88,126" alphatest="on">
			<convert type="ValueToPixmap">Path</convert>
		</widget>
		<widget source="model" render="Label" position="160,70" size="580,25" font="Regular;23"/>
		<widget source="device_capacity" render="Label" position="160,100" size="580,25" font="Regular;23"/>
		<widget source="device_free" render="Label" position="160,130" size="580,25" font="Regular;23"/>
		<widget source="bus" render="Label" position="160,160" size="580,25" font="Regular;23"/>
		<widget source="num_partitions" render="Label" position="160,190" size="580,25" font="Regular;23"/>
		<widget source="partition" render="Label" position="160,220" size="580,25" font="Regular;23"/>
		<widget source="partition_capacity" render="Label" position="160,250" size="580,25" font="Regular;23"/>
		<widget source="filesystem" render="Label" position="160,280" size="580,25" font="Regular;23"/>
		<eLabel position="10,455" size="730,1" backgroundColor="grey"/>
		<widget source="introduction" render="Label" position="10,465" size="730,50" font="Regular;21" halign="center" valign="center" transparent="1"/>
 
		<!-- Buttons & Keycode -->
		<ePixmap pixmap="BlueDreamHD/buttons/red.png" position="25,570" size="25,25" alphatest="on"/>
		<ePixmap pixmap="BlueDreamHD/buttons/green.png" position="200,570" size="25,25" alphatest="on"/>
		<ePixmap pixmap="BlueDreamHD/buttons/yellow.png" position="385,570" size="25,25" alphatest="on"/>
		<ePixmap pixmap="BlueDreamHD/buttons/blue.png" position="550,570" size="25,25" alphatest="on"/>
		<widget source="key_red" render="Label" position="60,570" zPosition="1" size="135,25" font="Regular;23" halign="left" backgroundColor="background" transparent="1" />
		<widget source="key_green" render="Label" position="240,570" zPosition="1" size="135,25" font="Regular;23" halign="left" backgroundColor="background" transparent="1" />
		<widget source="key_yellow" render="Label" position="425,570" zPosition="1" size="135,25" font="Regular;23" halign="left" backgroundColor="background" transparent="1" />
		<widget source="key_blue" render="Label" position="585,570" zPosition="1" size="140,25" font="Regular;23" halign="left" backgroundColor="background" transparent="1" />
	</screen>

Kurzerklärung der XML

  • Wie man hier erkennen kann wird mittels dem Aussdruck "ePixmap pixmap" ein Grafik geladen.
  • Mittels dem Ausdruck "zPosition" können wir die Grafiken auch in unterschiedlichen Ebenen über oder Untereinander gelegt darstellen lassen