Apollo One (7 Viewers)

morpheus_xx

Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Warning 988 The referenced component 'SharpDX.Direct3D9' could not be found. StatisticsRenderer
    Warning 989 The referenced component 'Microsoft.WindowsAPICodePack' could not be found. ShellThumbnailProvider
    Warning 985 The referenced component 'MPExtended.Services.TVAccessService.Interfaces' could not be found. SlimTv.MPExtendedProvider
    Error 735 The type or namespace name 'RectangleF' could not be found (are you missing a using directive or an assembly reference?) \\nas-server8\ADM\U-INT-984\984.c.hall\user files\Desktop\MediaPortal-2-FEAT_ApolloOne\MediaPortal\Source\UI\SkinEngine\Controls\ImageSources\TextureImageSource.cs 238 24 SkinEngine
    Error 736 'MediaPortal.UI.SkinEngine.Controls.ImageSources.MultiImageSourceBase.Texture' is a 'property' but is used like a 'type' \\nas-server8\ADM\U-INT-984\984.c.hall\user files\Desktop\MediaPortal-2-FEAT_ApolloOne\MediaPortal\Source\UI\SkinEngine\Controls\ImageSources\MultiImageSource.cs 245 24 SkinEngine
    Those are external components, that are handled by NuGet: When compiling the project they are restored (downloaded) automatically. Does this also happen if you run "Build\MSBUILD_Client...bat"?
     

    wizard123

    Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    It seems it was an issue with having the folder on my desktop which uses unc paths in a domain environment ( i'm at work ) moved direct to c:\MP2\ and it has built ok and i have mp2 running with apolloOne skin right now ;)
     

    wizard123

    Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    Great work so far @morpheus_xx

    In themes/default/styles there are xaml files like ButtonsOverrides.xaml are these files always here and is this where i would say edit the main menu button style ?
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    First, please read the "Resource lookup chain" section in our wiki: http://wiki.team-mediaportal.com/2_.../2_Creating_Skins_for_MP2#ResourceLookupChain.

    The "Home button" style is defined inside https://github.com/morpheusxx/Media...efault/styles/ButtonsOverrides.xaml#L225-L276.

    Inside ApolloOne I started with clean structure and only placed the styles there, that I modify. This means: my "ButtonsOverrides.xaml" depends on "Buttons.xaml" of the Default skin. This is the reason, why the current amount of files and styles is so low, everything else is inherited from Default skin.

    Edit: My answer was not complete:
    the ButtonOverrides only contain the "container" description for buttons. The "content" style is then defined inside https://github.com/morpheusxx/Media...t/styles/OtherControlsOverrides.xaml#L17-L117
     

    wizard123

    Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    Thanks, i now understand the skin structure and the inheritance etc which is all fairly straight forward. The only issue remains understanding where to find what i want to change and how to edit it, for example if i wanted to change the blue/green colors or even opacity of the main menu buttons not the tiles how would i do this ?
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Ok, I understand this question very well, it took me a also long time to find the wanted parts :)

    For a complete list from home to style follow the steps:
    1. Home screen is: https://github.com/morpheusxx/Media...or/ApolloOne/Skin/ApolloOne/screens/home.xaml. It has no own code, but includes:
    2. https://github.com/morpheusxx/Media...in/ApolloOne/screens/master_homemenu.xaml#L28. Where the ListView refers to HomeMenuListViewStyle.
    3. The style is defined here: https://github.com/morpheusxx/Media...lt/styles/OtherControlsOverrides.xaml#L69-L70
    4. The style sets the ItemTemplate (content of the button) to "ThemeResource MainMenuItemDataTemplateHover": https://github.com/morpheusxx/Media...efault/styles/OtherControlsOverrides.xaml#L81
    5. This resource is defined directly above and contains the background fill of semitransparent color: https://github.com/morpheusxx/Media...lt/styles/OtherControlsOverrides.xaml#L51-L53
     

    wizard123

    Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    :sick: lol
    Right i see how a lot of the styles are resourced from previously declared styles. Question is, the HomeGroupListViewStyle as far as i can see is using MenuListViewStyle which is using DefaultListViewStyle lol is that correct ? and how would i add the code to OtherControlsOverrides.xaml to style HomeGroupListViewStyle instead of using the inherited defaults.
    Hope that all makes sense o_O:D
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Question is, the HomeGroupListViewStyle as far as i can see is using MenuListViewStyle which is using DefaultListViewStyle lol is that correct ?
    Yes, this is the inheritance chain.

    and how would i add the code to OtherControlsOverrides.xaml to style HomeGroupListViewStyle instead of using the inherited defaults.
    Not sure if I understood the question right. If you now plan to modifiy the button content style, you should do this here: https://github.com/morpheusxx/Media...lt/styles/OtherControlsOverrides.xaml#L39-L67.

    Generally spoken, if you need to modify a style you can:
    • Define it with same name inside ApolloOne styles, they will override the "default" ones globally
    • Or you define new styles with new names and modify all places where you plan to use the different style without touching the other defaults
    For Titanium I also used both ways.
     

    jehe

    Portal Pro
    February 15, 2011
    694
    216
    58
    Home Country
    Belgium Belgium
    Hi,
    I have a question about the "plugin.xml".
    How do I create or where can I find the PluginId?
     

    MJGraf

    Retired Team Member
  • Premium Supporter
  • January 13, 2006
    2,478
    1,385
    Just take a GUID Generator and create one. Likelyhood that it's already used by another plugin is 2^128 :D
     

    Users who are viewing this thread

    Top Bottom