home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Area 51 - Testing Area
Skin engine enhancements (themes, guide colors, skin functions, weather settings...)
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ajp8164" data-source="post: 821668" data-attributes="member: 64375"><p><strong>Description of the change</strong></p><p> </p><ul> <li data-xf-list-type="ul">Mantis 3779 - Parent for all mantis records listed here.</li> <li data-xf-list-type="ul">Mantis 3310 - Added new control <strong>GUIMenuButton</strong>. For an explanation see the <a href="http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/18_Contribute/7_Skins/Skin_Architecture/Skin_Controls/Menubutton" target="_blank">Menubutton control</a>.</li> <li data-xf-list-type="ul">Mantis 3309 - Added <strong>camera support</strong> to aid (primarily) with coverflow perspective. For an explanation see <a href="http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/18_Contribute/7_Skins/Skin_Architecture/Camera_Position" target="_blank">Camera Position</a>.</li> <li data-xf-list-type="ul">Mantis 3311 - Added new <strong>weather settings window</strong> (uses GUIMenuButtons from 3310). See <a href="http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/14_Using_MediaPortal/7_Weather/Weather_Settings" target="_blank">Weather Settings</a> for more information.</li> <li data-xf-list-type="ul">Mantis 3316 - <strong>Re implement buttons in MP plugins</strong> to make use of the GUIMenuButton. As part of this change other language files need to be updated to match changes made in strings_en.xml.<br /> <span style="color: red">Skinners of others skins will be required to make changes to skins to be compatible with this implementation. Please refer to the Default skin for examples.</span><br /> The re-implemented buttons are as follows. The legacy/default behavior has been retained in the Default skins.<ul> <li data-xf-list-type="ul">MyVideos - Layout, View</li> <li data-xf-list-type="ul">MyVideos Playlist - Layout</li> <li data-xf-list-type="ul">MyMusic - Layout, View</li> <li data-xf-list-type="ul">MyMusic Playlist - View</li> <li data-xf-list-type="ul">MyPictures - Layout, View</li> <li data-xf-list-type="ul">MyTv RecordedTv - Layout, View</li> <li data-xf-list-type="ul">MyRadio - Layout</li> <li data-xf-list-type="ul">MyRadio RecordedRadio - Layout, View</li> </ul></li> <li data-xf-list-type="ul">Mantis 3411 - Added new <strong>skin settings functions</strong>. For details please see <a href="http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/18_Contribute/7_Skins/Skin_Architecture/Skin_Expressions" target="_blank">Skin Expressions</a>. All settings are saved to a new SkinSettings.xml file. Each skin may have it's own settings. The following functions are added.<ul> <li data-xf-list-type="ul"><strong>Skin.ToggleSetting(setting)</strong> - Toggles the skin setting 'setting'. For use with conditional visibility tags containing Skin.HasSetting(setting).</li> <li data-xf-list-type="ul"><strong>Skin.String(string,value)</strong> - Returns the user-set skin string, set via the Skin.SetString(name). Allows skinners to have user-customizable labels. This is functionlly equivalent to string.equals() except that the setting name (parameter 'string') is saved to SkinSettings.xml. Only settings used in Skin.X functions are guaranteed to be saved to the xml file.</li> <li data-xf-list-type="ul"><strong>Skin.SetString(string[,value[,kb_prompt]])</strong> - Pops up a keyboard dialog and allows the user to input a string which can be used in a label control elsewhere in the skin via the info tag Skin.String(string). If the value parameter is specified, then the keyboard dialog does not pop up, and the string is set directly. The settings are saved per-skin in SkinSettings.xml.</li> <li data-xf-list-type="ul"><strong>Skin.SetBool(setting)</strong> - Sets the skin setting 'setting' to true. For use with the conditional visibility tags containing Skin.HasSetting(setting). The settings are saved per-skin in SkinSettings.xml.</li> <li data-xf-list-type="ul"><strong>Skin.Reset(setting)</strong> - Resets the skin setting 'setting'. If 'setting' is a bool setting (ie set via SetBool or ToggleSetting) then the setting is reset to false. If 'setting' is a string (Set via SetString) then it is set to empty.</li> <li data-xf-list-type="ul"><strong>Skin.ResetSettings</strong> - Resets all the bool and string skin settings to their defaults; boolean all set to false, strings all set to empty.</li> </ul></li> <li data-xf-list-type="ul">Mantis 3427 - <strong>Add support for skin themes.</strong> See <a href="http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/18_Contribute/7_Skins/Skin_Architecture/Skin_Themes" target="_blank">Skin Themes</a> for details.</li> <li data-xf-list-type="ul">Mantis 3460 - <strong>Add support for TV Guide genre coloring.</strong> See <a href="http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/18_Contribute/7_Skins/Skin_Architecture/TV_Guide" target="_blank">TV Guide</a> for details.<br /> <span style="color: red">Skinners of others skins will be required to make changes to skins to be compatible with this implementation.</span></li> <li data-xf-list-type="ul">Mantis 3465 - <strong>Enhance selected channel positioning logic in TV guide.</strong> When entering and exiting TV guide and when switching between channel groups the selected guide channel often gets reset to the top of the guide. When the TV guide has hundreds of channels it's annoying to the user to have to scroll back to the current channel section of the guide. These enhancements attempt to select the current channel when entering the TV guide for the first time or when changing channel groups. If the current channel cannot be selected then the channel at the top of the guide is selected. Also, when selecting a program to record (navigating to the program info window from the guide) returning to the guide resulted in positioning the selection only on the channel button. These enhancements refocus the program in the guide from where the user entered the program info window.</li> <li data-xf-list-type="ul">Mantis 3505 - <strong>Update Default and DefaultWide</strong> - Skins updated to work with GUIMenuButton as noted, be compatible with TV guide colorization feature (e.g., genre coloring), and incorporation of Settings > Weather in Settings and Weather windows.</li> <li data-xf-list-type="ul">Mantis 3520 - <strong>Enhance buttons to ignore textXOff "margins"</strong> - Positioning text to a desired location using textXOff on several buttons may not be possible given a specific button width and text label width. Using the textXOff shrinks the width of the label and may clip (fade out) the label based on the textXOff value. This feature allows for the positioning of the text using textXOff while preserving the width of the label text. To use simply set the textXOff property hasMargin to "no"; e.g. <textXOff hasMargin="no">20</textXOff>. This implementation is backward compatible. The following controls support this implementation: button, togglebutton, menubutton, spinbutton.</li> <li data-xf-list-type="ul">Mantis 3566 - <strong>TvMiniGuide fix for large numbers of channels</strong> - The Tv MiniGuide loads programs (now and next) from the tv database with a query constructed in TvBusinessLayer. The query is a series of select statements in a union to form the result set. On Windows there are several limitations that may prevent the opening of a number of large table simultaneously (see <a href="http://dev.mysql.com/doc/refman/5.0/en/limits-windows.html" target="_blank">MySQL :: MySQL 5.0 Reference Manual :: E.7.5 Windows Platform Limitations</a> [^]). In the case of the select/union statement for TvMiniGuide each select statement opens the program table; the number of select statements in my tests exceeded 750 (All Channels program group, US directv). A SQL error is presented as the result of the query execution and the result set returned to the Tv MiniGuide is empty resulting in the Tv MiniGuide being filled with "No available information" messages.<br /> <s>[*]Mantis 3783 - <strong>Promote #defines to properties and allow #defines to contain skin expressions</strong> - By promoting #defines to be tracked inside MP as properties skin designers will be able to use defines to transfer information from one page to another and to use those values in skin expressions and functions. This is very useful for skin capabilities that provide for user controlled layout changes on a "skin settings" page. Enabling this behavior will significantly reduce the need for skin developers to develop and distribute an MP plugin with their skin (where this decision logic has historically resided); e.g., for modifying the EPG length or home page layout and content. See <a href="http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/18_Contribute/7_Skins/Skin_Architecture/Skin_Defines" target="_blank">skin defines documentation</a>.</s></li> </ul><p>This is the link to the branch on GitHub so that other devs can get the code and try to help/spot any possible bugs:</p><p>[CODE]https://github.com/MediaPortal/MediaPortal-1/tree/FEAT-3779-Skin_engine_enhancements[/CODE]</p></blockquote><p></p>
[QUOTE="ajp8164, post: 821668, member: 64375"] [B]Description of the change[/B] [LIST] [*]Mantis 3779 - Parent for all mantis records listed here. [*]Mantis 3310 - Added new control [B]GUIMenuButton[/B]. For an explanation see the [URL='http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/18_Contribute/7_Skins/Skin_Architecture/Skin_Controls/Menubutton']Menubutton control[/URL]. [*]Mantis 3309 - Added [B]camera support[/B] to aid (primarily) with coverflow perspective. For an explanation see [URL='http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/18_Contribute/7_Skins/Skin_Architecture/Camera_Position']Camera Position[/URL]. [*]Mantis 3311 - Added new [B]weather settings window[/B] (uses GUIMenuButtons from 3310). See [URL='http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/14_Using_MediaPortal/7_Weather/Weather_Settings']Weather Settings[/URL] for more information. [*]Mantis 3316 - [B]Re implement buttons in MP plugins[/B] to make use of the GUIMenuButton. As part of this change other language files need to be updated to match changes made in strings_en.xml. [COLOR=red]Skinners of others skins will be required to make changes to skins to be compatible with this implementation. Please refer to the Default skin for examples.[/COLOR] The re-implemented buttons are as follows. The legacy/default behavior has been retained in the Default skins. [LIST] [*]MyVideos - Layout, View [*]MyVideos Playlist - Layout [*]MyMusic - Layout, View [*]MyMusic Playlist - View [*]MyPictures - Layout, View [*]MyTv RecordedTv - Layout, View [*]MyRadio - Layout [*]MyRadio RecordedRadio - Layout, View [/LIST] [*]Mantis 3411 - Added new [B]skin settings functions[/B]. For details please see [URL='http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/18_Contribute/7_Skins/Skin_Architecture/Skin_Expressions']Skin Expressions[/URL]. All settings are saved to a new SkinSettings.xml file. Each skin may have it's own settings. The following functions are added. [LIST] [*][B]Skin.ToggleSetting(setting)[/B] - Toggles the skin setting 'setting'. For use with conditional visibility tags containing Skin.HasSetting(setting). [*][B]Skin.String(string,value)[/B] - Returns the user-set skin string, set via the Skin.SetString(name). Allows skinners to have user-customizable labels. This is functionlly equivalent to string.equals() except that the setting name (parameter 'string') is saved to SkinSettings.xml. Only settings used in Skin.X functions are guaranteed to be saved to the xml file. [*][B]Skin.SetString(string[,value[,kb_prompt]])[/B] - Pops up a keyboard dialog and allows the user to input a string which can be used in a label control elsewhere in the skin via the info tag Skin.String(string). If the value parameter is specified, then the keyboard dialog does not pop up, and the string is set directly. The settings are saved per-skin in SkinSettings.xml. [*][B]Skin.SetBool(setting)[/B] - Sets the skin setting 'setting' to true. For use with the conditional visibility tags containing Skin.HasSetting(setting). The settings are saved per-skin in SkinSettings.xml. [*][B]Skin.Reset(setting)[/B] - Resets the skin setting 'setting'. If 'setting' is a bool setting (ie set via SetBool or ToggleSetting) then the setting is reset to false. If 'setting' is a string (Set via SetString) then it is set to empty. [*][B]Skin.ResetSettings[/B] - Resets all the bool and string skin settings to their defaults; boolean all set to false, strings all set to empty. [/LIST] [*]Mantis 3427 - [B]Add support for skin themes.[/B] See [URL='http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/18_Contribute/7_Skins/Skin_Architecture/Skin_Themes']Skin Themes[/URL] for details. [*]Mantis 3460 - [B]Add support for TV Guide genre coloring.[/B] See [URL='http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/18_Contribute/7_Skins/Skin_Architecture/TV_Guide']TV Guide[/URL] for details. [COLOR=red]Skinners of others skins will be required to make changes to skins to be compatible with this implementation.[/COLOR] [*]Mantis 3465 - [B]Enhance selected channel positioning logic in TV guide.[/B] When entering and exiting TV guide and when switching between channel groups the selected guide channel often gets reset to the top of the guide. When the TV guide has hundreds of channels it's annoying to the user to have to scroll back to the current channel section of the guide. These enhancements attempt to select the current channel when entering the TV guide for the first time or when changing channel groups. If the current channel cannot be selected then the channel at the top of the guide is selected. Also, when selecting a program to record (navigating to the program info window from the guide) returning to the guide resulted in positioning the selection only on the channel button. These enhancements refocus the program in the guide from where the user entered the program info window. [*]Mantis 3505 - [B]Update Default and DefaultWide[/B] - Skins updated to work with GUIMenuButton as noted, be compatible with TV guide colorization feature (e.g., genre coloring), and incorporation of Settings > Weather in Settings and Weather windows. [*]Mantis 3520 - [B]Enhance buttons to ignore textXOff "margins"[/B] - Positioning text to a desired location using textXOff on several buttons may not be possible given a specific button width and text label width. Using the textXOff shrinks the width of the label and may clip (fade out) the label based on the textXOff value. This feature allows for the positioning of the text using textXOff while preserving the width of the label text. To use simply set the textXOff property hasMargin to "no"; e.g. <textXOff hasMargin="no">20</textXOff>. This implementation is backward compatible. The following controls support this implementation: button, togglebutton, menubutton, spinbutton. [*]Mantis 3566 - [B]TvMiniGuide fix for large numbers of channels[/B] - The Tv MiniGuide loads programs (now and next) from the tv database with a query constructed in TvBusinessLayer. The query is a series of select statements in a union to form the result set. On Windows there are several limitations that may prevent the opening of a number of large table simultaneously (see [URL='http://dev.mysql.com/doc/refman/5.0/en/limits-windows.html']MySQL :: MySQL 5.0 Reference Manual :: E.7.5 Windows Platform Limitations[/URL] [^]). In the case of the select/union statement for TvMiniGuide each select statement opens the program table; the number of select statements in my tests exceeded 750 (All Channels program group, US directv). A SQL error is presented as the result of the query execution and the result set returned to the Tv MiniGuide is empty resulting in the Tv MiniGuide being filled with "No available information" messages. [S][*]Mantis 3783 - [B]Promote #defines to properties and allow #defines to contain skin expressions[/B] - By promoting #defines to be tracked inside MP as properties skin designers will be able to use defines to transfer information from one page to another and to use those values in skin expressions and functions. This is very useful for skin capabilities that provide for user controlled layout changes on a "skin settings" page. Enabling this behavior will significantly reduce the need for skin developers to develop and distribute an MP plugin with their skin (where this decision logic has historically resided); e.g., for modifying the EPG length or home page layout and content. See [URL='http://wiki.team-mediaportal.com/1_MEDIAPORTAL_1/18_Contribute/7_Skins/Skin_Architecture/Skin_Defines']skin defines documentation[/URL].[/S] [/LIST] This is the link to the branch on GitHub so that other devs can get the code and try to help/spot any possible bugs: [CODE]https://github.com/MediaPortal/MediaPortal-1/tree/FEAT-3779-Skin_engine_enhancements[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Area 51 - Testing Area
Skin engine enhancements (themes, guide colors, skin functions, weather settings...)
Contact us
RSS
Top
Bottom