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 2
Skins and Design
Apollo One
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="morpheus_xx" data-source="post: 1119599" data-attributes="member: 48495"><p>The main media (movie, series, ...) ListViewStyle is defined here: <a href="https://github.com/MediaPortal/MediaPortal-2/blob/dev/MediaPortal/Incubator/ApolloOne/Skin/ApolloOne/themes/default/styles/MediaStyles.xaml#L741-L752" target="_blank">https://github.com/MediaPortal/MediaPortal-2/blob/dev/MediaPortal/Incubator/ApolloOne/Skin/ApolloOne/themes/default/styles/MediaStyles.xaml#L741-L752</a>. </p><p>It is only one style, but it selects other templates depending on the user setting (list, grid, cover).</p><p></p><p>The (un-)watched indicator are for the "List" style (ListViewMovieItemTemplate), so look there: <a href="https://github.com/MediaPortal/MediaPortal-2/blob/dev/MediaPortal/Incubator/ApolloOne/Skin/ApolloOne/themes/default/styles/MediaStyles.xaml#L272-L371" target="_blank">https://github.com/MediaPortal/MediaPortal-2/blob/dev/MediaPortal/Incubator/ApolloOne/Skin/ApolloOne/themes/default/styles/MediaStyles.xaml#L272-L371</a>. It is a bit longer, because it needs to contain:</p><ol> <li data-xf-list-type="ol">Unfocused version (text only)</li> <li data-xf-list-type="ol">Focused version (cover + genres + rating)</li> </ol><p>The latter binds to the available MediaItemAspects. Our wiki has a summary: <a href="http://wiki.team-mediaportal.com/2_MEDIAPORTAL_2/8_Contribute/Development/3_Concepts/Metadata_system/1_MediaAspects" target="_blank">http://wiki.team-mediaportal.com/2_MEDIAPORTAL_2/8_Contribute/Development/3_Concepts/Metadata_system/1_MediaAspects</a>. The interpretation if an items is "watched" is currently implemented on the MediaAspect.PlayCount (> 0 means watched). (Note: PlayCount is exposed directly as property on the MediaItem. If you like to access any other MediaAspect like MovieAspect, you need the wrapper controls for property binding, like MovieAspectWrapper).</p><p></p><p>I removed all stuff that is not (yet) needed in ApolloOne to get a clean skin. So as reference take a look at Titanium, there I use different text colors depending on playcount: <a href="https://github.com/MediaPortal/MediaPortal-2/blob/645b863546abc31e25ff5a7b01103fccbddeac14/MediaPortal/Incubator/Titanium/Skin/Titanium/themes/default/styles/MediaStyles.xaml#L985-L991" target="_blank">https://github.com/MediaPortal/MediaPortal-2/blob/645b863546abc31e25ff5a7b01103fccbddeac14/MediaPortal/Incubator/Titanium/Skin/Titanium/themes/default/styles/MediaStyles.xaml#L985-L991</a>.</p><p></p><p>For ApolloOne you should apply this logic to Image + its source:</p><p>[CODE=XML] <Image></p><p><Image.Source></p><p><MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0} == 0 ? {1} : {2}"></p><p><Binding Path="PlayCount"/></p><p><Binding Source="unwatched.png"/></p><p><Binding Source="watched.png"/></p><p></MultiBinding></p><p></Image.Source></p><p></Image></p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="morpheus_xx, post: 1119599, member: 48495"] The main media (movie, series, ...) ListViewStyle is defined here: [url]https://github.com/MediaPortal/MediaPortal-2/blob/dev/MediaPortal/Incubator/ApolloOne/Skin/ApolloOne/themes/default/styles/MediaStyles.xaml#L741-L752[/url]. It is only one style, but it selects other templates depending on the user setting (list, grid, cover). The (un-)watched indicator are for the "List" style (ListViewMovieItemTemplate), so look there: [url]https://github.com/MediaPortal/MediaPortal-2/blob/dev/MediaPortal/Incubator/ApolloOne/Skin/ApolloOne/themes/default/styles/MediaStyles.xaml#L272-L371[/url]. It is a bit longer, because it needs to contain: [LIST=1] [*]Unfocused version (text only) [*]Focused version (cover + genres + rating) [/LIST] The latter binds to the available MediaItemAspects. Our wiki has a summary: [url]http://wiki.team-mediaportal.com/2_MEDIAPORTAL_2/8_Contribute/Development/3_Concepts/Metadata_system/1_MediaAspects[/url]. The interpretation if an items is "watched" is currently implemented on the MediaAspect.PlayCount (> 0 means watched). (Note: PlayCount is exposed directly as property on the MediaItem. If you like to access any other MediaAspect like MovieAspect, you need the wrapper controls for property binding, like MovieAspectWrapper). I removed all stuff that is not (yet) needed in ApolloOne to get a clean skin. So as reference take a look at Titanium, there I use different text colors depending on playcount: [url]https://github.com/MediaPortal/MediaPortal-2/blob/645b863546abc31e25ff5a7b01103fccbddeac14/MediaPortal/Incubator/Titanium/Skin/Titanium/themes/default/styles/MediaStyles.xaml#L985-L991[/url]. For ApolloOne you should apply this logic to Image + its source: [CODE=XML] <Image> <Image.Source> <MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}" ConverterParameter="{}{0} == 0 ? {1} : {2}"> <Binding Path="PlayCount"/> <Binding Source="unwatched.png"/> <Binding Source="watched.png"/> </MultiBinding> </Image.Source> </Image> [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
Apollo One
Contact us
RSS
Top
Bottom