Create your own themes through XML

Discussion in 'Q Home Screens and Wallpapers' started by baer3328, May 14, 2007.

  1. baer3328

    baer3328 New Member

    Joined:
    Apr 7, 2007
    Messages:
    74
    Likes Received:
    0
    Create your own themes through XML

    I took the time to type up this list of the COLOR_... codes and presented visual aides with the final outcome of each individual code. I found a few codes that didn't seem to do anything though. I'm not sure if it's the software version or if it's just because the Q has a unique setup. I'm hoping that someone might also post their knowledge as it relates to manipulating Plug-Ins. For instance, I'm using the Verizon Q and I want to extend the MRU to be the small icons, as shown in my attachment, but I would like to extend them to more than 10 icons. I would also like to know how to have the carrier plug-in clickable to send you into the 'Windows Basic' profile to lead you into the Wireless Manager.

    If anyone knows the plug-in or a way to display tasks on the homepage, that would be nice to know as well. Does anyone else agree that the way they setup tasks in WM5 is horrific compared to the way it's setup in Outlook?

    Anyway, all forums will not allow an upload of this type (it's either too big because of the included screenshots, or they don't support the .doc extension) so apparently I wasted my time. If you still want the guide, email me at mattbaer@insightbb.com. It truly is helpful when coding XML for the Q.

    P.S. - Has anyone else encountered odds icons while messing with their themes? My "Start" in the upper left hand corner (it appears in the upper left after clicking the 'Start' soft key) only displayed "St" for quite some time and now it doesn't display anything. Now, I also have the 'Outgoing Call' Icon when I go into anything besides the Today screen. Anyone else? I'll post pics of that too.


    UPDATE:
    I think from all the switching homescreens and the reloading of XML files those icons or glitches were just that...glitches. Simply restarting my phone solved them.

    Attached Files:

  2. rudeboy

    rudeboy New Member

    Joined:
    Jan 8, 2007
    Messages:
    56,232
    Likes Received:
    0
  3. baer3328

    baer3328 New Member

    Joined:
    Apr 7, 2007
    Messages:
    74
    Likes Received:
    0

    Thank you, that would be great because all these forums won't take either .doc formats or files of this size (2MB, oh god it'll crash my server). I know nothing really about XML so it should be pretty helpful to me.

    As far as the links go, thanks. That tutorial on Modaco is actually where most of the information is based off of but I had to put it into a visual form. The MSDN link and everything else I've found (2 hours of yesterday was typing up the document and the rest was searching for resources) is outdated (i.e. for earlier versions of the OS or not for the extra specifics of the Q). I'm going to spend quite a bit of today trying to make a new homescreen. My main question is, what fonts does the Q support? Haven't found that anywhere either. Another question that's halting my process is why does it appear that some of the COLOR_... codes don't change anything? I ran into like 6 or 7 that didn't change anything.
  4. baer3328

    baer3328 New Member

    Joined:
    Apr 7, 2007
    Messages:
    74
    Likes Received:
    0
    I was messing around with the theme I'm attempting to create and noticed that I cannot change the Start buttons or the Icon Bar to pure black (000000). Nor does it seem to be possible to change the text in (at least) the settings menu to anything besides black. I basically want to change the top and bottom bar of the Today screen to black and the background in all menus to black but still see the text of course. Anyone have any suggestions or similar issues? Perhaps know why it appears to be restricted? Let me know please.
  5. n99hockey

    n99hockey Moderator Staff Member

    Joined:
    Feb 7, 2007
    Messages:
    57,525
    Likes Received:
    15
    you can change all of those colors...
    search the forum for homescreens and look at the ones that have changed those a read up on the codes and you can find pieces that equate to those areas...
    also search the forum for black soft keys. there is a cab file that will allow you to just install the cab file and change the keys to black...
  6. baer3328

    baer3328 New Member

    Joined:
    Apr 7, 2007
    Messages:
    74
    Likes Received:
    0
    Thank you for the quick reply. I know it sounds stupid but I'm the type of person that asks "Why?" if something doesn't work that should. If black is somehow restricted, I don't know why, but I would like to know about it and any explanation would be great. I'll see if I can upload the file to test it out. It might just be my dumb ass trying to code when I really don't know how to. I'm really new to the whole XML thing so it's probably user error.

    If you run the files "Home Screen Beta 1.2 Selective", it's doesn't produce expected results.

    Attached Files:

  7. n99hockey

    n99hockey Moderator Staff Member

    Joined:
    Feb 7, 2007
    Messages:
    57,525
    Likes Received:
    15
    i know for a fact that you CAN program it to be whatever color you want...i have done it before....that cab file i referenced was just an easy way to turn them black without programing
  8. baer3328

    baer3328 New Member

    Joined:
    Apr 7, 2007
    Messages:
    74
    Likes Received:
    0
    Well in that XML code, it should appear with the Start button with a black background but it doesn't.
  9. n99hockey

    n99hockey Moderator Staff Member

    Joined:
    Feb 7, 2007
    Messages:
    57,525
    Likes Received:
    15
    post your code and we can take alook at it
  10. baer3328

    baer3328 New Member

    Joined:
    Apr 7, 2007
    Messages:
    74
    Likes Received:
    0
    This post contains the code file. Here it is in text as well.


    <?xml version="1.0"?>
    <home>
    <author>B@eR</author>
    <contacturl>http://www.datgroup.com/</contacturl>
    <title lang="0x0409">Home Screen Beta 1.2 Selective</title>
    <title lang="0x0809">Home Screen Beta 1.2</title>
    <title lang="0x040c">Home Screen Beta 1.2</title>
    <title lang="0x0407">Home Screen Beta 1.2</title>
    <title lang="0x0410">Home Screen Beta 1.2</title>
    <title lang="0x0816">Home Screen Beta 1.2</title>
    <title lang="0x0C0A">Home Screen Beta 1.2</title>
    <version>1.2 Beta</version>

    <default target-width="240" target-height="320" font-face="Segoe Condensed" font-size="19" font-weight="bold" padding-left="5" padding-right="5" bgcolor="transparent" fgcolor="COLOR_HOMETEXT" padding-top="3" b-border-color="COLOR_HOMERULE" b-border-width="1">
    <format state="selected" bgcolor="COLOR_HOMEHIGHLIGHT" fgcolor="COLOR_HOMEHIGHLIGHTTEXT"/>
    </default>
    <background bgimage="blueqbiohazard.jpg" valign="bottom" bgcolor="COLOR_TRAYGRADLEFT"/>
    <scheme>
    <color name="COLOR_WINDOW" value="#000000"/>
    <color name="COLOR_STATIC" value="#FFFFFF"/>
    <color name="COLOR_STATICTEXT" value="#3333FF"/>
    <color name="COLOR_HIGHLIGHT" value="#CC0033"/>
    <color name="COLOR_HIGHLIGHTTEXT" value="#FFFFFF"/>
    <color name="COLOR_MENU" value="#009933"/>
    <color name="COLOR_MENUTEXT" value="#FFFFFF"/>
    <color name="COLOR_GRAYTEXT" value="#CCCCCC"/>
    <color name="COLOR_GRADLEFT" value="#990000"/>
    <color name="COLOR_GRADRIGHT" value="#FFFFFF"/>
    <color name="COLOR_INTGRADLEFT" value="#FFFFFF"/>
    <color name="COLOR_INTGRADRIGHT" value="#990000"/>
    <color name="COLOR_TRAYGRADLEFT" value="#000000"/>
    <color name="COLOR_TRAYGRADRIGHT" value="#000000"/>
    <color name="COLOR_HIGHGRADLEFT" value="#000000"/>
    <color name="COLOR_HIGHGRADRIGHT" value="#000000"/>
    <!--Altered WINDOWFRAME to appear pink for beta testing purposes-->
    <color name="COLOR_WINDOWFRAME" value="#FF33FF"/>
    <color name="COLOR_BTNFACE" value="#000000"/>
    <!--Altered BTNTEXT to appear lime green for beta testing purposes-->
    <color name="COLOR_BTNTEXT" value="#33FF66"/>
    <color name="COLOR_SCROLLBAR" value="#999999"/>
    <color name="COLOR_HOMETEXT" value="#FFFFFF"/>
    <color name="COLOR_HOMERULE" value="#FFFFFF"/>
    <color name="COLOR_HOMEHIGHLIGHT" value="#CC3300"/>
    <color name="COLOR_HOMEHIGHLIGHTTEXT" value="#FFFFFF"/>
    <color name="COLOR_ALERTWINDOW" value="#FFFFFF"/>
    <color name="COLOR_ALERTTITLE" value="#000000"/>
    <!--Altered ALERTRULE to appear puke green for beta testing purposes-->
    <color name="COLOR_ALERTRULE" value="#99CC00"/>
    </scheme>

    <!-- Plug-Ins-->
    <!-- Icon bar-->
    <!-- MRU list: using small icons count:20-->
    <!-- Carrier plugin -->
    <!-- Profile plugin -->
    <!-- Bluetooth plugin -->
    <!-- Call Progress Plugin -->
    <!-- Calendar Plugin -->
    <!-- Extended (Beta) Message Count Plugin -->



    <!--Iconbar-->
    <plugin clsid="{837FC251-FE69-43ad-84E0-EBCEDEBA0884}" name="iconbar" height="27">
    <iconbar fgcolor="COLOR_TRAYTEXT"/>
    <background gradient="title" bgcolor="COLOR_TRAYGRADLEFT" b-border-color="COLOR_WINDOWFRAME" b-border-width="1"/>
    </plugin>

    <!--MRU-->
    <plugin clsid="{79EFB752-CB70-446d-B317-499723482B3D}" name="startmru" height="30">
    <mru y="1" icon-size="16" max-buttons="20" />
    </plugin>

    <!--Carrier-->
    <plugin clsid="{E09043DF-510E-4841-B652-388316977A7A}" name="carrier" height="31">
    <allowselection/>
    <background>
    <format state="selected" bgcolor="COLOR_HOMEHIGHLIGHT"/>
    </background>
    <label font-size="23" font-weight="bold">
    <text><carrier/></text>
    </label>
    <label y="21" textwidth="163">
    <text><wifi/></text>
    </label>
    <clock>
    <time y="0" halign="right" font-size="23" font-weight="bold"/>
    <time/>
    <text> </text>
    <date y="0" halign="right" font-size="23" font-weight="bold"/>
    <date/>
    </clock>
    </plugin>


    <!--Profile-->
    <plugin clsid="{95976968-45D5-40c9-9779-2B859B1C2FEC}" name="profile" height="28">
    <background b-border-width="0">
    <format state="selected" bgcolor="COLOR_HOMEHIGHLIGHT"/>
    </background>
    <label>
    <text lang="0x0409">Profile: <profile/></text>
    <text lang="0x0809">Profile: <profile/></text>
    <text lang="0x040c">Profil: <profile/></text>
    <text lang="0x0407">Profil: <profile/></text>
    <text lang="0x0410">Profilo: <profile/></text>
    <text lang="0x0816">Perfil: <profile/></text>
    <text lang="0x0C0A">Perfil: <profile/></text>
    </label>
    </plugin>

    <!-- Bluetooth Plugin -->
    <plugin clsid="{df648b7e-7645-419d-ba0b-503acea3edfb}" height="28">
    </plugin>

    <!--Call Progress-->
    <plugin clsid="{37391041-C324-4725-BEE1-3232ED3539CA}" name="callprog" height="50">
    <background>
    <format state="selected" bgcolor="COLOR_HOMEHIGHLIGHT"/>
    </background>
    <format state="nocall" visible="false"/>
    <label>
    <text lang="0x0409">Call in progress:</text>
    <text lang="0x0C0A">Llamada en curso:</text>
    <text lang="0x040c">Appel en cours:</text>
    <text lang="0x0410">Chiamata in corso:</text>
    <text lang="0x0816">Chamada em curso:</text>
    <text lang="0x0416">Chamada em andamento:</text>
    <text lang="0x0809">Call in progress:</text>
    <text lang="0x0413">Actieve oproep:</text>
    <text lang="0x041b">Prebieha hovor:</text>
    <text lang="0x0415">Trwa Wywolywanie:</text>
    <text lang="0x0424">Klic poteka:</text>
    <text lang="0x081a">Poziv u toku:</text>
    </label>
    <label y="23">
    <text><progress/></text>
    </label>
    </plugin>

    <!--Calendar-->
    <plugin clsid="{865A354A-4A96-4687-B001-C155DC0DBE76}" name="calendar" height="50">
    <background>
    <format state="selected" bgcolor="COLOR_HOMEHIGHLIGHT"/>
    </background>
    <label h="22">
    <text>
    <subject/>
    </text>
    </label>
    <label h="22" y="23">
    <text>
    <time/>
    <location/>
    </text>
    </label>
    </plugin>

    <!--Message Count-->
    <plugin clsid="{62E5C279-1E55-4bbb-95DA-D576093C23BE}" name="MessageCount" height="20">
    <background>
    <format state="selected" bgcolor="COLOR_HOMEHIGHLIGHT"/>
    </background>
    <label>
    <text lang="0x0409">Text Messages <unreadMsgs name="SMS"/></text>
    <text lang="0x0C0A">Mensajes Del Texto <unreadMsgs name="SMS"/></text>
    </label>
    <label>
    <text lang="0x0409">Email <unreadMsgs name="ActiveSync"/></text>
    <text lang="0x0C0A">Email <unreadMsgs name="ActiveSync"/></text>
    </label>
    <label>
    <text lang="0x0409">MMS <unreadMsgs name="MMS" /></text>
    <text lang="0x0C0A">MMS <unreadMsgs name="MMS" /></text>
    </label>
    <label>
    <text lang="0x0409">Voicemail <unreadVMail hidezero="true"/></text>
    <text lang="0x0407">bbb <unreadVMail hidezero="true"/></text>
    </label>
    </plugin>

    <plugin clsid="{856CB5C4-5B27-4b64-8FB9-7E3E4987E0D1}" height="25" autoheight="false">
    </plugin>
    <plugin clsid="{52E26FD7-2A56-4e2a-988B-2B90A96B90EF}" height="25" autoheight="false">
    </plugin>
    <plugin clsid="{1CC2E12E-B863-4603-9B5F-CA754B2BDDC6}" height="25" autoheight="false">
    </plugin>
    <plugin clsid="{6B9D9399-0F93-4ba1-9DC7-483FE4877E6D}" height="25" autoheight="false">
    </plugin>
    <plugin clsid="{B9E6C503-F261-4373-A88B-0B7ACF6BC347}" height="25" autoheight="false">
    </plugin>
    <plugin clsid="{30DF3430-0266-11cf-BAA6-00AA003E0EED}" height="25" autoheight="false">
    </plugin>




    </home>


    I never could figure out what those last plugins do.
  11. n99hockey

    n99hockey Moderator Staff Member

    Joined:
    Feb 7, 2007
    Messages:
    57,525
    Likes Received:
    15
    why do you have this code?

    <default target-width="240" target-height="320" font-face="Segoe Condensed" font-size="19" font-weight="bold" padding-left="5" padding-right="5" bgcolor="transparent" fgcolor="COLOR_HOMETEXT" padding-top="3" b-border-color="COLOR_HOMERULE" b-border-width="1">
    <format state="selected" bgcolor="COLOR_HOMEHIGHLIGHT" fgcolor="COLOR_HOMEHIGHLIGHTTEXT"/>
    </default>

    what does that do for you?
  12. baer3328

    baer3328 New Member

    Joined:
    Apr 7, 2007
    Messages:
    74
    Likes Received:
    0
    It's the default code for one of the themes already installed on the Q. It all refers to the color scheme doesn't it?
  13. n99hockey

    n99hockey Moderator Staff Member

    Joined:
    Feb 7, 2007
    Messages:
    57,525
    Likes Received:
    15
    edit:
    wait a sec...try this...

    <default target-width="240" target-height="320" font-face="Segoe Condensed" font-size="19" font-weight="normal" padding-left="5" padding-right="5" bgcolor="transparent" fgcolor="transparent" padding-top="3" b-border-color="COLOR_HOMERULE" b-border-width="1">
    <format state="selected" bgcolor="COLOR_HOMEHIGHLIGHT">
    </default>
  14. baer3328

    baer3328 New Member

    Joined:
    Apr 7, 2007
    Messages:
    74
    Likes Received:
    0
    Pardon my stupidity, by I'm not seeing where it's referencing another scheme. This is the 'defaults' code that I saw in every tutorial about making your own theme so I figured I had to put it in there. Without it, I'm pretty sure it won't display due to the fact that it contains the resolution for the screen. If I could, I'd delete the reference to the other scheme, but I'm not seeing it.
  15. n99hockey

    n99hockey Moderator Staff Member

    Joined:
    Feb 7, 2007
    Messages:
    57,525
    Likes Received:
    15
    yea i miss understood that you meant...look at my post above...
  16. Prosper

    Prosper New Member

    Joined:
    Apr 16, 2007
    Messages:
    1,469
    Likes Received:
    0
    This got nothing to do with the color scheme !

    This part (the <default> tag) defines standard xml values, which will be taken in every other tag if not specified another way.
    For example, if you set the font-size to 20 in the default tag, the font will be size 20 in every other plugin if not set different in the specific plugin.

    Hope it's understandable. :wink:
  17. n99hockey

    n99hockey Moderator Staff Member

    Joined:
    Feb 7, 2007
    Messages:
    57,525
    Likes Received:
    15
    i realized that after i posted it....
    ive been trying to compare it to my other screens i have with the start button color changed and they seem pretty similar in the scheme area....
  18. Prosper

    Prosper New Member

    Joined:
    Apr 16, 2007
    Messages:
    1,469
    Likes Received:
    0
    You may want to have a look at this here for changing the softkeys' colors ;)
  19. n99hockey

    n99hockey Moderator Staff Member

    Joined:
    Feb 7, 2007
    Messages:
    57,525
    Likes Received:
    15
    wow thats alot of steps...lol

    can you use this COLOR_SOFTKEYBTNFACE
    with out all the steps?
    i have never seen that before when doing the homescreens....
  20. Prosper

    Prosper New Member

    Joined:
    Apr 16, 2007
    Messages:
    1,469
    Likes Received:
    0
    Sure you can. But it won't work in the xml file. You will need to work with the registry hacks.

Share This Page