Plugin support

Discussion in 'BlueVision' started by ge2301, April 24, 2015.

  1. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,231
    Likes Received:
    1,570
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart (But living abroad)
    Ratings:
    +2,362 / 2
    Home Country:
    Germany Germany
    I almost completed the BlueVision skin for Online Videos. Attached you can find a preview.
    OV_home.jpg OV_sites.jpg OV_categories.jpg OV_categories_2.jpg OV_videos.jpg

    In case no thumbnail is available the BlueVision Container with content description is appearing.
    Descriptions appear in the footer area. For the moment I didn't apply rounded corners and left thumbs as they are.



    Question to @offbyone
    The structure is SITE --> CATEGORY --> VIDEO
    Could it be possible to get the superior information by your code? Currently, when scrolling in the videos, I can not see in which site or category I am.
    It's not a must, just a nice to have I'd like to add :)
     
    • Like Like x 2
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,231
    Likes Received:
    1,570
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart (But living abroad)
    Ratings:
    +2,362 / 2
    Home Country:
    Germany Germany
    I've cleaned up the BV skin for the weather skin in GitHub. Later after my TV program is finished I gonna push also the BV skin for OnlineVideos to BV_v5 branch. Hope thats the correct place, since the original branch of OV is not on GitHub as far as I remember.
     
  4. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,231
    Likes Received:
    1,570
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart (But living abroad)
    Ratings:
    +2,362 / 2
    Home Country:
    Germany Germany
    Testversion of Bluevision skin for onlinevideos.
    Please extract to "MediaPortal-2\Client\Plugins\OnlineVideos\Skin\"

    There is generally one problem existing also in BlueVision main skin. Rounded corners look only well, when applied to stretched images (Fill, UniformToFill). Using Uniform will make the mask filling the gaps with white or black depending on the method the mask is applied.
    Unbenannt.jpg
    For some reasons a mask can not be applied to only the visible part of a picture. This seems to be a weak part of WPF
     

    Attached Files:

    Last edited: April 26, 2015
  5. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    11,070
    Likes Received:
    4,762
    Ratings:
    +6,818 / 11
    Home Country:
    Germany Germany
    Show System Specs
    Yes, this is normal:
    the control dimension is the full rectangle, where the mask is applied. How the texture is placed into this control is defined by the "Stretch" property, but it has no affect to the control's size.

    You can only solve this, if the control has no fixed size and occupies only the size of its content. And then you have to use an OpacityMask using another "Rounded Rectangle" as shape, not a bitmap.

    I've done this inside ApolloOne home screen tiles, they are of different sizes, but rounded corners are applied in correct aspect ratio.
     
    • Like Like x 1
  6. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,231
    Likes Received:
    1,570
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart (But living abroad)
    Ratings:
    +2,362 / 2
    Home Country:
    Germany Germany
    I already switched in BV all masks using borders or rectangles instead of bitmaps. So everything is aspect ratio independent. But your words about the flexible control size made an idea come up in my mind.
    In grid view the grid dimensions are fixed, because valid not for only one item, but many. When I add into each grid another grid 3x3 and set height/width for the centered one to Auto and for the others to "*" the centered grid should be "flexible" if an image with Uniform property is added to it, won't it? When I add additionally a mask to the centered grid, it should theoretically work ...
     
  7. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,231
    Likes Received:
    1,570
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart (But living abroad)
    Ratings:
    +2,362 / 2
    Home Country:
    Germany Germany
    I just tried it and it works! :D With above I have mentioned for any type of picture aspect ratio rounded corners can be applied also with stretch method "Uniform".
    This solves lot of problems and I can overwork the skin accordingly. For videos and images section it will be beneficial, since aspect ratios are flexible and currently posters are deformed to fit into the grids.

    Here examples how the original aspect ratio is kept with rounded corners within defined grid dimensions.
    example1.jpg example2.jpg
     
    • Like Like x 1
  8. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,231
    Likes Received:
    1,570
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart (But living abroad)
    Ratings:
    +2,362 / 2
    Home Country:
    Germany Germany
    @offbyone
    I would like to add the site logo in all hierachy levels (sites, categories, videos, ..) in the bottom right corner.
    HTML:
    1.         <Image Stretch="Uniform"
    2.       Source="{Binding path=SelectedSite, Converter={ThemeResource ovsSiteUtilIconConverter}}"/>
    This code does not work, because the Converter is not known in Sites.xaml. But even after adding the same resources as from ovsSiteMangement.xaml, where I found similar code, it does not work.
    Do you have a hint? :) Thanks!
     
  9. offbyone
    • Team MediaPortal

    offbyone Development Group

    Joined:
    April 26, 2008
    Messages:
    3,981
    Likes Received:
    2,704
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +3,303 / 3
    Home Country:
    Germany Germany
    Show System Specs
    Hm might be a question for @morpheus_xx - I am not too familiar with the resource lookup.

    Did you copy the namespace definition as well:
    Code (Text):
    1.  
    2. xmlns:ovs="clr-namespace:OnlineVideos.MediaPortal2;assembly=OnlineVideos.MediaPortal2"
    3.  
     
  10. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,231
    Likes Received:
    1,570
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart (But living abroad)
    Ratings:
    +2,362 / 2
    Home Country:
    Germany Germany
    Yes, I added those aswell without success
     
  11. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    11,070
    Likes Received:
    4,762
    Ratings:
    +6,818 / 11
    Home Country:
    Germany Germany
    Show System Specs
    I think this is the reason why skin files needs to be placed inside the plugin which has the code:
    If you put in an assembly reference this way, the lookup considers all loaded assemblies. Of course BlueVision doesn't have (and must not have) any direct depency to another plugin.
    Could you try to place your modified skin files under OV2 plugin first to see if they are working from this location?
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!