New Community Theme: Bamboo (1 Viewer)

morpheus_xx

Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    I really have a hard time to find the place where something is defined in MP2 skins. This is completely irritating as I'm not able to find the logic behind all this up to now.
    There are some things you should read: http://wiki.team-mediaportal.com/2_MEDIAPORTAL_2/8_Contribute/Skin_Design/2_Creating_Skins_for_MP2
    And maybe also related MSDN documentation: http://msdn.microsoft.com/en-us/library/ms745683(v=vs.110).aspx.

    The main philosophy is to define styles once and than use them multiple times.
    Styles can "inherit" (BasedOn=...) other styles.
    Styles can be changed by themes.
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,554
    3,936
    Lehmden
    Home Country
    Germany Germany
    Thanks for the links.
    Finished for today. Did not manage to get rid of the scroll indicator below home menu buttons. Die (ahm try) another day. The buttons are not as far down as I wanted them (they should be directly above the bottom bar with newsticker). But it is at least a bit like I want it. Changing backgrounds are fake for now but shows what I want.
    Focused menu item weather:
    Zwischenablage-1.jpg


    Focused men item music:
    Zwischenablage-2.jpg


    Focused menu item movies:
    Zwischenablage-6.jpg


    Focused men item pictures:
    Zwischenablage-3.jpg


    Focused menu item settings:
    Zwischenablage-4.jpg


    Focused menu item shutdown:
    Zwischenablage-5.jpg



    I will continue to work on this when I find the time...
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Great progress @Lehmden!

    To your question about scrollbars: they are defined by the ScrollViewer style. There is already a style that shows "<" and ">" as indicator (copy from Reflexion skin):

    https://github.com/MediaPortal/Medi...fault/styles/OtherControlsOverrides.xaml#L109
    Which must be added to the "HomeMenuListViewStyle" as done in Reflexion:
    https://github.com/MediaPortal/Medi.../styles/OtherControlsOverrides.xaml#L205-L210 (adding Style="{ThemeResource MainMenuScrollViewerStyle}" to ScrollViewer)
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,705
    3,491
    Stuttgart
    Home Country
    Germany Germany
    Great progress @Lehmden!

    To your question about scrollbars: they are defined by the ScrollViewer style. There is already a style that shows "<" and ">" as indicator (copy from Reflexion skin):

    https://github.com/MediaPortal/Medi...fault/styles/OtherControlsOverrides.xaml#L109
    Which must be added to the "HomeMenuListViewStyle" as done in Reflexion:
    https://github.com/MediaPortal/Medi.../styles/OtherControlsOverrides.xaml#L205-L210 (adding Style="{ThemeResource MainMenuScrollViewerStyle}" to ScrollViewer)

    I think I didn't get it completely. I can modify some settings of the scroll bar appearance, but I'm not able to completely deactivate it.
    By deleting the part completly from OtherControlsOverrides.xaml I can also not remove the scroll bar.

    My target is to have following main menue
    • Stackpanel with 1 row instead of Wrappanel with 2 rows --> Done
    • 5 instead of 3 buttons per row --> Done
    • Always focus on centered button --> Not possible yet due to problem
    • Limitless scrolling, means there is no first or last button. Advantage, one doesn't have to consider in which direction to scroll, in the end one will always reach the button --> Can it be achieved somehow to have a list which end is connected to the beginning?
    Bild1.png
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Nice idea and good sketch (y)!

    What you propose is often called "carousel control" and you can find some WPF examples like: http://wpfcarousel.codeplex.com/.

    The code for that is not so complicated, we might port this to a MPF control...

    Edit: if someone is not able to compile the example, I have added a binary
     

    Attachments

    • Debug.7z
      11.1 KB

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,554
    3,936
    Lehmden
    Home Country
    Germany Germany
    HI.
    This would be something I also would like for my skin version... Similar to the seamless scrolling in MP1 listviews. When you reach the last item it starts over again with the first.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    After small code adjustments I see something on screen, but not yet as expected :D
    Good news is: scale and opacity changes are working already, I need to find the cause for the Y offset. After this I need to implement focus handling, as the given example only reacts on mouse, but not key left/right

    But I think we might get a working version soon :)
    test.jpg
     

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,955
    5,628
    France - IDF
    Home Country
    France France
    hey morph, your implementation of caroussel can be good with 3D glasses, the menu with 3D effect lol
     

    Users who are viewing this thread

    Top Bottom