Jump to content

getting started with theme development


TheShanMan

Recommended Posts

TheShanMan

I'd like to learn more about developing a theme, but I'm having trouble finding information on how it's done. Can someone point me to a guide or documentation for that?

Link to comment
Share on other sites

Angelblue05

I think you need to be more precise. For what platform are you looking to do this for? etc....

Link to comment
Share on other sites

TheShanMan

OK, I assumed info on theme development might all be in a central area. For now I'm interested in WMC.

Link to comment
Share on other sites

There isn't really a collection of information anywhere but MBC themes are plug-ins that involve both c# and mcml (a dead language just for WMC).  I'm not sure I would encourage you to start off on a new theme for MBC right now but the best resource will be to look at the source for the ones that are available (they are in Github) an then ask specific questions.

Link to comment
Share on other sites

TheShanMan

Thanks. This is sort of a special case that may be just for my own use possibly because I've also got a vintage B&W TV hooked to my HTPC for watching B&W content so I'm hoping to create a theme that is a little more optimized for low resolution, particularly since Chocolate hangs if I try to use it on that screen and was told that wouldn't be fixed. And while I'm interested in MBT, I'm not close to being ready to switch and I'm not convinced I'll want to do that anytime soon.

 

I know c# but mcml will be new for me - hopefully it won't be too hard to pick up.

 

Where do I find the MediaBrowser assembly? The chocolate project references it so I can't build it at the moment.

Link to comment
Share on other sites

It is buried in your Global Assembly Cache.  Google that and then search for mediabrowser.dll.  Or just build MBC from source.

Link to comment
Share on other sites

  • 4 weeks later...
TheShanMan

I've been spending a little time on this and I'm starting to come to the conclusion that the Classic theme is probably a better starting point for what I want to do than Chocolate (i.e. it would require fewer modifications to accomplish what I'm after). However, it looks like the Classic theme isn't in a standalone dll though. Could anyone offer any guidance on how to extract the Classic theme into a standalone dll? Would that be a painful process? I haven't gotten a complete understanding of how the themes and mcml files work (and frankly, I'm not sure I'll need to for the fairly basic changes I want to make), so I don't even have a great feel for basic requirements in terms of files, resources, and whatnot let alone the ins and outs of the mcml "language". I'm sure I can figure it out on my own but I'm guessing a little guidance could save me a lot of time.

Link to comment
Share on other sites

Cheesegeezer

The mcml for the classic theme is under default theme in the source code. Probably under the Markup folder, however you would need to add the code to allow the theme to be used as a plugin. All themes reference the media browser assembly to get relevant objects from there. I would use chocolate as your starting point and remember to give your them a new GUID in the assembly.cs under properties folder or you will have issues when trying to load the theme.

Link to comment
Share on other sites

Cheesegeezer

Oh and the best reference for mcml is in the mc sdk there is an app that is part of the sdk called sample explorer, use that it's the best tutorial you'll find.

Edited by Cheesegeezer
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...