|
SageMC Custom Interface This forum is for discussing the user-created SageMC custom interface for SageTV. |
|
Thread Tools | Search this Thread | Display Modes |
#101
|
|||
|
|||
Quote:
__________________
C2D e6320 P4M800Pro, 1gb DDR, 1100GB HDs Hauppauge HVR-1600, HDHomerun, Geforce 6200 |
#102
|
||||
|
||||
Well, i got it working, er, i actually had it working. Nice to see that it works for .bat files too! However, for some reason, when I click on the Other Programs button, it brings up the files I placed in the //temp folder. All is fine. But, if I right arrow on the button, it brings up the the smaller window but it is blank. I can't scroll up or down to see the other programs. Any thoughts?
Thanks JUC |
#103
|
||||
|
||||
I think I avoided that issue by using a .jpg for each program. I just did a .jpg of a TheaterTek icon and a Zoomplayer icon. That's all I see. I don't see the files (shortcuts) at all.
Gerry
__________________
Big Gerr _______ Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB. Last edited by gplasky; 03-30-2005 at 07:02 PM. |
#104
|
|||
|
|||
Ok, I am working on a new skin for MC, here are a couple test shots. I am going for a minimalistic feel, but if you guys have any suggestions/desires, let me know
-kayoti |
#105
|
||||
|
||||
Hey those look cool! Good job! What proram do you use to design your graphics?
|
#106
|
||||
|
||||
just to have them in colour would be nice!
|
#107
|
||||
|
||||
Quote:
|
#108
|
||||
|
||||
On the topic of themes, I want to take them one step further. My desire would be to have an XML file in each theme folder that would contain information for font, font size, font color, background colors, and any other item that we can configure. To do this I need a Java class. I don't know Java enough to do this quickly and what I need is realy simple so if someone can create one for me I would apprecieate it.
Here is a sample XML file: Code:
<theme> <global> <popup_background_color>#f0f0f0</popup_background_color> </global> <start_menu> <menu_font_name>Arial</menu_font_name> <menu_font_color>#fffff</menu_font_color> </start_menu> </theme> string GetValue([path], [group], [element]) Ex. GetValue("c:\\theme.xml", "global", "popup_background_color") Last edited by mlbdude; 04-01-2005 at 09:42 AM. |
#109
|
|||
|
|||
Quote:
Humm, Someone has talent. Very nice. Perhaps introduce a little color for the icons. Kind of like the muted colors in an old photo or perhaps think of the coloring in the Sky Captain and the World of Tomorrow, or stick with the greyscale. It is very nice... |
#110
|
||||
|
||||
Hmm, a Sky Captain-esque colored theme would be interesting..
Those icons are very nice, but like the others, a splash of color would definitely help bring them out (and very much improve the WAF of the theme, as it stands right now, she'd say it's to manly ).
__________________
Server: AMD Phenom 2 920 2.8ghz Quad, 16gb Ram, 4tb Storage, 1xHVR-2250, 1 Ceton Cable Card adapter, Windows 7 SP1 |
#111
|
|||
|
|||
Quote:
|
#112
|
|||
|
|||
Thank you all for the feedback. I am agreeing with you all about the Sky Captain idea and am very excited to try it out. Unfortunately I am a busy student so this weekend is devoted to projects... I promise to have a sample for you all first thing next week. Glad you enjoy my work
-kayoti |
#113
|
|||
|
|||
Quote:
|
#114
|
|||
|
|||
welchkinsage.jar
Here's a jar file for you, mlbdude. Just drop it in the "jars" directory of SageTV and it will be accessible to the STV. Rather than being tied to this specific function, this class is a more generic XMLUtil that can be used for any XML related work you need. Right now it only has a few basic methods, but I can add whatever capability you would like. It doesn't use static methods as written because the getValue() method you proposed needs a reference to the document that you want to get the value from. In java parlance, this class would be used like so: Code:
XMLUtil xmlUtil = new XMLUtil(); xmlUtil.parse("/location/of/document/to/parse/document.xml"); String value = xmlUtil.getValue("global", "popup_background_color"); Code:
XMLUtil xmlUtil = new XMLUtil("/location/of/document/to/parse/document.xml"); String value = xmlUtil.getValue("global", "popup_background_color"); If you would prefer, I can modify the class to use only static methods. The user code would then be something like: Code:
Document doc = XMLUtil.parse("/location/of/document/to/parse/document.xml"); String value = XMLUtil.getValue(doc, "global", "popup_background_color"); Finally, will you be retrieveing the values frequently? I would assume so unless you are retrieveing them once and then storing the values for future use. If you do intend to retrieve them frequently, then I would recommend that we wrap XMLUtil in a class that will cache the returned values. Doing lookups on an XML file, even one stored in memory, isn't terribly slow, but it's certainly not fast. One or two lookups won't cause much of a stir, but dozens or hundreds might cause a noticible hitch in UI rendering. Let me know if you're like this wrapper created. It's a simple process. |
#115
|
||||
|
||||
I believe the lookups would be occurring on every page load. Similar to how the properties are read from the sage.properties file. I am not sure if those values are cached or not. I would suspect they are in memory though since the settings seem to be re-written when Sage is closed.
I can see how using a static method could be slow. I can load the XML class on startup and assign it to a global. At that point I would defer to you as to what would work the most efficient. Thanks! |
#116
|
|||
|
|||
Properties files are cached naturally.
I'll get back to you in a bit with a new jar. I'll wrap the XMLUtil with something that will cache the values in a map so that lookups don't have a chance to become a problem. |
#117
|
|||
|
|||
One request
MLBDude,
On the Recorded TV screen, you currently have a filter for "View All", "View Movie" etc... How about added one for "View New" that would show programs that have not been watched, or call it "View Unwatched".. thanks for all the great work. |
#118
|
|||
|
|||
welchkinsage.jar
A new jar file is in place. This one contains a new class called "SageMCTheme". It's in the package "mlbdude" so it should be referenced as "mlbdude.SageMCTheme". Somewhere in the code you need to load the Theme xml document. This only needs to be done once. If you need to load a new document for a different theme, just call this method again: Code:
mlbdude.SageMCTheme.loadThemeDoc("/location/of/theme/xml/document/theme.xml"); Code:
mlbdude.SageMCTheme.getValue("global", "popup_background_color"); Let me know if this isn't your prefered usage or naming. I can change it to be whatever is convenient. |
#119
|
||||
|
||||
Quote:
|
#120
|
|||
|
|||
run external program at sage screen saver event
Sorry to jump in here with something that appears to be a little off topic but... I would like to see a feature that would allow you to run an external program when the sage screen saver comes on. From what I understand this would be really easy to implement in an STV. The reason I want this is so that I can turn off my monitor whenever the sage screen saver comes on. I can't set this up in the windows power settings because it's not sensitive to when sage is working/sleeping.
skyw33 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|