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
Reflexion skin (Alpha release screenshots 24.02.2012)
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: 1144502" data-attributes="member: 48495"><p>Yes, for media item images you are correct in this place:</p><p><a href="https://github.com/MediaPortal/MediaPortal-2/blob/1fcf783e56c55e96ae9c0e490a4b5b5b7be5487f/MediaPortal/Incubator/Reflexion/Skin/Reflexion/themes/default/styles/MediaStyles.xaml#L729-L746" target="_blank">https://github.com/MediaPortal/MediaPortal-2/blob/1fcf783e56c55e96ae9c0e490a4b5b5b7be5487f/MediaPortal/Incubator/Reflexion/Skin/Reflexion/themes/default/styles/MediaStyles.xaml#L729-L746</a></p><p></p><p>To explain: there is only one style which contains 3 different images (ItemTypeSmall, ItemTypeMedium, ItemTypeLarge), where only one is currently visible (defined by mediaview model).</p><p>[CODE=XML] <Image x:Name="ItemTypeSmall" Stretch="Uniform"</p><p> Source="{Binding MediaItem}" FallbackSource="VideoSmall.png" Width="{StaticResource MEDIA_THUMB_WIDTH_S}" Height="{StaticResource MEDIA_THUMB_HEIGHT_S}"></p><p> <Image.IsVisible></p><p> <Binding Source="{StaticResource ViewModeModel}" Path="LayoutSize" Converter="{StaticResource ExpressionValueConverter}" ConverterParameter="{}{0} == {LayoutSize}.{Small}"/></p><p> </Image.IsVisible></p><p> </Image>[/CODE]</p><p></p><p>Things to note:</p><ol> <li data-xf-list-type="ol">Source="{Binding MediaItem}" --> this will cause the image source to be bound to the actual MediaItem (can be video, image, audio, ...). This will be converted into a so called FanArtImage source here: <a href="https://github.com/MediaPortal/MediaPortal-2/blob/ce772f8857f26c67cb544190c50d7af6ad7caf5b/MediaPortal/Incubator/FanArtService.Client/FanArtPlugin.cs#L53-L62" target="_blank">https://github.com/MediaPortal/MediaPortal-2/blob/ce772f8857f26c67cb544190c50d7af6ad7caf5b/MediaPortal/Incubator/FanArtService.Client/FanArtPlugin.cs#L53-L62</a> which will request a FanArtType.Thumbnail from server libary.</li> <li data-xf-list-type="ol">FallbackSource="VideoSmall.png" --> this will be shown if no source can be loaded (also <em>during </em>the load process happens). This image you can freely design (put it either into skin\images or skin\theme\images)</li> </ol></blockquote><p></p>
[QUOTE="morpheus_xx, post: 1144502, member: 48495"] Yes, for media item images you are correct in this place: [URL]https://github.com/MediaPortal/MediaPortal-2/blob/1fcf783e56c55e96ae9c0e490a4b5b5b7be5487f/MediaPortal/Incubator/Reflexion/Skin/Reflexion/themes/default/styles/MediaStyles.xaml#L729-L746[/URL] To explain: there is only one style which contains 3 different images (ItemTypeSmall, ItemTypeMedium, ItemTypeLarge), where only one is currently visible (defined by mediaview model). [CODE=XML] <Image x:Name="ItemTypeSmall" Stretch="Uniform" Source="{Binding MediaItem}" FallbackSource="VideoSmall.png" Width="{StaticResource MEDIA_THUMB_WIDTH_S}" Height="{StaticResource MEDIA_THUMB_HEIGHT_S}"> <Image.IsVisible> <Binding Source="{StaticResource ViewModeModel}" Path="LayoutSize" Converter="{StaticResource ExpressionValueConverter}" ConverterParameter="{}{0} == {LayoutSize}.{Small}"/> </Image.IsVisible> </Image>[/CODE] Things to note: [LIST=1] [*]Source="{Binding MediaItem}" --> this will cause the image source to be bound to the actual MediaItem (can be video, image, audio, ...). This will be converted into a so called FanArtImage source here: [URL]https://github.com/MediaPortal/MediaPortal-2/blob/ce772f8857f26c67cb544190c50d7af6ad7caf5b/MediaPortal/Incubator/FanArtService.Client/FanArtPlugin.cs#L53-L62[/URL] which will request a FanArtType.Thumbnail from server libary. [*]FallbackSource="VideoSmall.png" --> this will be shown if no source can be loaded (also [I]during [/I]the load process happens). This image you can freely design (put it either into skin\images or skin\theme\images) [/LIST] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
Reflexion skin (Alpha release screenshots 24.02.2012)
Contact us
RSS
Top
Bottom