-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
404 additions
and
382 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
Adding a menu image that identifies the current menu screen based on menuID | ||
=========================================================================== | ||
|
||
In skin.xml add the list of images to the "menus" section based on menuID. | ||
|
||
Syntax: | ||
|
||
<menus> | ||
<menu key="default" image="path/myNameForDefault.png" /> | ||
<menu key="<menuID>" image="path/myNameFor<menuID>.png" /> | ||
</menus> | ||
|
||
This element is optional but if defined allows a skin designer to associate | ||
a graphical image with any "Screens/Menu.py" based screen. The "menus" | ||
tag element has no attributes and contains a list of "menu" tag elements. | ||
|
||
Each "menu" tag element must contain two attributes: | ||
|
||
key This attribute is the value of the "key" attribute from a | ||
menu.xml file. If the keys match then this entry defines | ||
a graphical image that is to be used when the nominated | ||
Setup screen is displayed. | ||
|
||
image This attribute is the pathname of the graphical image that | ||
is to be associated with the Menu screen identified by the | ||
"key" attribute. | ||
|
||
There is a special "key" attribute with the name "default". This entry, | ||
if defined, assigns a default graphical image to be used in ALL | ||
"Screens/Setup.py" screens that do not have a specifically assigned | ||
image. | ||
|
||
|
||
In skin.xml add the widget to MainMenu and Menu screens: | ||
<screen name="MainMenu" ... > | ||
... | ||
<widget name="menuimage" position="0,50" size="200,400" alphatest="blend" conditional="menuimage" transparent="1" /> | ||
... | ||
</screen> | ||
<screen name="Menu" ... > | ||
... | ||
<widget name="menuimage" position="0,50" size="200,400" alphatest="blend" conditional="menuimage" transparent="1" /> | ||
... | ||
</screen> | ||
|
||
|
||
Adding icons to the menu list entries | ||
===================================== | ||
|
||
In skin.xml add enable parameter: | ||
<parameter name="MenuIcons" value="1" /> | ||
|
||
|
||
In skin.xml add the icon size parameter: | ||
<parameter name="MenuIconsSize" value="48" /> | ||
|
||
|
||
The graphics for the menu icons are stored in: | ||
/usr/share/enigma2/<current_skin>/menu | ||
|
||
|
||
The icon graphics can be svg or png format and are named as follows: | ||
<entryID>.png or <entryID>.svg | ||
|
||
|
||
<entryID> is the entryID from menu.xml, e.g. | ||
<menu entryID="av_setup" level="0" text="Audio & Video" weight="1"> | ||
|
||
|
||
In the above case the graphic name would be: | ||
av_setup.png or av_setup.svg | ||
|
||
|
||
In skin.xml the skin widget for the Menu screen with icons looks like this: | ||
|
||
<widget source="menu" render="Listbox" position="72,274" size="564,545" scrollbarMode="showOnDemand" enableWrapAround="1" transparent="1"> | ||
<convert type="TemplatedMultiContent"> | ||
{"template": [ MultiContentEntryText(pos = (97,5), size = (435,45), flags = RT_HALIGN_LEFT|RT_VALIGN_CENTER, text = 0), | ||
MultiContentEntryPixmapAlphaBlend(pos = (32,5), size = (48,48), png = 5)], | ||
"fonts": [gFont("Regular",34)], | ||
"itemHeight": 60 | ||
} | ||
</convert> | ||
</widget> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.