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
Support
other features (of release or svn versions)
partially watched video/song/recorded tv show file text color + remember cursor in folders
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="CyberSimian" data-source="post: 1246873" data-attributes="member: 141969"><p>I think that this proposed change is a worthwhile enhancement, and I would probably use it myself. However, I am not so happy with the proposed implementation.</p><p></p><p><strong>Suggested design</strong></p><p>In my view we should offer this enhancement in a manner that is as consistent as possible with the existing support. We currently have a setting in "MP Config" that allows the user to specify the threshhold that separates unwatched recordings and videos from watched recordings and videos. The consistent approach is to add another setting to "MP Config" to separate unwatched from partly-watched. So "MP Config" might have something like this:</p><p></p><p><em>Played time percentage needed to mark the video as partly watched (0-100%)</em></p><p><em>Played time percentage needed to mark the video as fully watched (0-100%)</em></p><p></p><p>In the skin, we introduce the new tag suggested by [USER=68833]@ajs[/USER] , namely <playingColor>, but without any attributes (no "min" or "max"). Then the logic that the skin engine would use for selecting the colour would be:</p><p>[code]if (played_percent >= fully_watched_threshhold)</p><p> color = <playedColor>;</p><p>else if (played_percent >= partly_watched_threshhold)</p><p> color = <playingColor>;</p><p>else</p><p> color = <textcolor>;[/code]</p><p></p><p>Note that if partly_watched_threshhold >= fully_watched_threshhold, <playingColor> is never used.</p><p></p><p><strong>Compatibility</strong></p><p>In previous releases, if the played percent was less than the fully-watched threshhold, the item was displayed with <textcolor>. Skins which are moribund (or not updated with this change) will lack the <playingColor> tag, so defaults need to be such that there is no change in the appearance of those skins.</p><p></p><p>No change in the appearance of moribund skins can be achieved by setting partly-watched threshhold equal to fully-watched threshhold in "MediaPortal.xml" when the user installs the new version of MP (this should be done automatically as part of the install process).</p><p></p><p>In the window xml file, a control can omit tags where the default value is wanted. If a tag is omitted, the value is taken from the value specified by the default style in "references.xml". If the tag is also omitted from the style in "references.xml", the value specified by the hard-coded built-in defaults in the skin engine is used. A suitable hard-coded default needs to be chosen for <playingColor> for the skin engine. This should probably follow the existing convention used for the other numerous <xxxColor> tags.</p><p></p><p><strong>Where do we go from here</strong></p><p>If the modified DLL that [USER=68833]@ajs[/USER] has provided to the original poster works as intended, there is no reason why the original poster shouldn't continue using it until the next release (MP 1.21). However, I think that the implementation should be reworked as outlined above, before being made available in an MP build.</p><p></p><p>-- from CyberSimian in the UK</p></blockquote><p></p>
[QUOTE="CyberSimian, post: 1246873, member: 141969"] I think that this proposed change is a worthwhile enhancement, and I would probably use it myself. However, I am not so happy with the proposed implementation. [b]Suggested design[/b] In my view we should offer this enhancement in a manner that is as consistent as possible with the existing support. We currently have a setting in "MP Config" that allows the user to specify the threshhold that separates unwatched recordings and videos from watched recordings and videos. The consistent approach is to add another setting to "MP Config" to separate unwatched from partly-watched. So "MP Config" might have something like this: [I]Played time percentage needed to mark the video as partly watched (0-100%) Played time percentage needed to mark the video as fully watched (0-100%)[/I] In the skin, we introduce the new tag suggested by [USER=68833]@ajs[/USER] , namely <playingColor>, but without any attributes (no "min" or "max"). Then the logic that the skin engine would use for selecting the colour would be: [code]if (played_percent >= fully_watched_threshhold) color = <playedColor>; else if (played_percent >= partly_watched_threshhold) color = <playingColor>; else color = <textcolor>;[/code] Note that if partly_watched_threshhold >= fully_watched_threshhold, <playingColor> is never used. [b]Compatibility[/b] In previous releases, if the played percent was less than the fully-watched threshhold, the item was displayed with <textcolor>. Skins which are moribund (or not updated with this change) will lack the <playingColor> tag, so defaults need to be such that there is no change in the appearance of those skins. No change in the appearance of moribund skins can be achieved by setting partly-watched threshhold equal to fully-watched threshhold in "MediaPortal.xml" when the user installs the new version of MP (this should be done automatically as part of the install process). In the window xml file, a control can omit tags where the default value is wanted. If a tag is omitted, the value is taken from the value specified by the default style in "references.xml". If the tag is also omitted from the style in "references.xml", the value specified by the hard-coded built-in defaults in the skin engine is used. A suitable hard-coded default needs to be chosen for <playingColor> for the skin engine. This should probably follow the existing convention used for the other numerous <xxxColor> tags. [b]Where do we go from here[/b] If the modified DLL that [USER=68833]@ajs[/USER] has provided to the original poster works as intended, there is no reason why the original poster shouldn't continue using it until the next release (MP 1.21). However, I think that the implementation should be reworked as outlined above, before being made available in an MP build. -- from CyberSimian in the UK [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
other features (of release or svn versions)
partially watched video/song/recorded tv show file text color + remember cursor in folders
Contact us
RSS
Top
Bottom