Please remember to add a category to the bottom of each page that you create.
See categories help for further details, but most will probably be [[Category:HTC ModelName]].

WindowsMobile5Colors

From XDA-Developers
Jump to: navigation, search

Browse: Windows Mobile 5 > Registry Tweaks > Display > Colors



Various UI colors on Windows Mobile 5 are configured as follows:
For Windows Mobile 200x UI colors, see PocketPCTodayColors ====[[HKLM\SOFTWARE\Microsoft\Color]]</code>====

Contents

Known Colors

value name Microsoft Constant meaning
BaseHue Base Hue value (DWORD) upon which many UI elements are based when not overridden. See bottom of page for a detailed explanation with examples and chart. This value can be changed interactively, thus making it possible to use in applications for e.g. notification purposes.
SHColor BLOB (Binary Large OBject) of color values. A reference of which binvalue set belongs to what UI element has not yet been spotted, but several internet articles mention tweaking bits of it to change colors that can be changed through the below keys as well
0 <code>COLOR_ALERT Obsolete.
1 COLOR_ACCENTTEXT Obsolete.
old description
Color of "Status:" ActiveSync connection label (see image at the bottom)
2 COLOR_CALOFFHOURS Obsolete.
3 COLOR_CALONHOURS Obsolete.
4 COLOR_TODAYTEXT Today screen text color.
old description
Today screen items text color. This, and the other numeric values, can be changed interactively, thus making it possible to use in applications for e.g. notification purposes.
5 COLOR_STARTICONBACKGROUND Base color for title bar and soft keys (Windows Mobile 6 Professional and Windows Mobile 6 Classic.)
old description
Navigation bar color aka starticon (e.g. 'Start menu background color'). Include also bottom navigation bar.
6 COLOR_TODAYSEPARATOR Today screen separator line color.
old description
Today screen horizontal separator color
7 COLOR_TODAYMENU Today screen menubar background color.
8 COLOR_NAVBAR Color of title bar (Windows Mobile 6 Professional and Windows Mobile 6 Classic.)
old description
Color of Password screen digits background, and maybe other elements. Old WM200x "color of status bar background"
9 COLOR_NAVBARTEXT Color of title bar text on (Windows Mobile 6 Professional and Windows Mobile 6 Classic.)
old description
Taskbar text color (e.g. 'Start' and clock display)
10 COLOR_NAVBARHILITE Obsolete.
11 COLOR_NOTIFTRAY Notification tray background color (Windows Mobile 6 Professional and Windows Mobile 6 Classic.)
old description
Secondary alert tray (tray shown when not enough space for all notifications)
12 COLOR_NOTIFTRAYHILITE Background of highlighted icon in the notification tray (Windows Mobile 6 Professional and Windows Mobile 6 Classic.)
13 COLOR_BUBBLECAPTION Left color of bubble caption background gradient on (Windows Mobile 6 Professional and Windows Mobile 6 Classic.)
old description
Pop-up balloon (e.g. date/time), left-hand side of titlebar gradient
14 COLOR_GRADIENTBUBBLECAPTION Right color of bubble caption background gradient (Windows Mobile 6 Professional and Windows Mobile 6 Classic.)
old description
Pop-up balloon (e.g. date/time), right-hand side of titlebar gradient
15 COLOR_INTGRADLEFT Left color of a gradient listview background, for the interlaced rows.
old description
'List Page' (e.g. Contacts main screen background), left-hand side of ODD lines gradient
16 COLOR_INTGRADRIGHT Right color of a gradient listview background, for the interlaced rows.
old description
'List Page' (e.g. Contacts main screen background), right-hand side of ODD lines gradient
17 COLOR_HIGHGRADLEFT Currently not used.
18 COLOR_HIGHGRADRIGHT Currently not used.
19 COLOR_PHONEDIALERTEXT Text color of the text in the Phone dialpad buttons.
old description
Color of text on phone SIM card PIN code entry screen's buttons, and maybe other elements
20 COLOR_TRAYGRADLEFT Base color for title bar and soft keys (Windows Mobile 6 Standard only.)
21 COLOR_TRAYGRADRIGHT Right color of tray (Windows Mobile 6 Standard only.)
22 COLOR_TRAYTEXT Tray text color (Windows Mobile 6 Standard only.)
23 COLOR_TRAYBKGND Tray background color, if not a gradient (Windows Mobile 6 Standard only.)
24 COLOR_DIALPADBKGND Currently not used.
25 COLOR_CRITGRADLEFT Left color of a critical bubble caption gradient (Windows Mobile 6 Professional and Windows Mobile 6 Classic.)
old description
Pop-up alert (e.g. missed call, password incorrect), left-hand side of titlebar gradient
26 COLOR_CRITGRADRIGHT Right color of a critical bubble caption gradient (Windows Mobile 6 Professional and Windows Mobile 6 Classic.)
old description
Pop-up alert (e.g. missed call, password incorrect), right-hand side of titlebar gradient
27 COLOR_BUBBLETITLE Text color of a bubble caption (Windows Mobile 6 Professional and Windows Mobile 6 Classic.)
old description
Pop-up balloon (e.g. date/time), titlebar text
28 COLOR_CRITBUBBLETITLE Text color of a critical bubble caption (Windows Mobile 6 Professional and Windows Mobile 6 Classic.)
old description
Pop-up alert (e.g. missed call, password incorrect), titlebar text
29 COLOR_ALERTTITLE Alert title text color. An alert is a full screen message box (Windows Mobile 6 Standard only.)
30 COLOR_ALERTWINDOW Background color of a listview in alert. Also used for volume alert slider bar (Windows Mobile 6 Standard only.)
31 COLOR_ALERTRULE Color of alert horizontal separator line. An alert is a full screen message box (Windows Mobile 6 Standard only.)
32 COLOR_HOMETEXT Home Screen text (Windows Mobile 6 Standard only.)
old description
Password button number color
33 COLOR_HOMERULE Home Screen horizontal separator line (Windows Mobile 6 Standard only.)
34 COLOR_HOMEHIGHLIGHT Home Screen background color of highlighted text (Windows Mobile 6 Standard only.)
old description
Today Screen items background highlight color (defaults to value defined by BaseHue)</small>
35 COLOR_HOMEHIGHLIGHTTEXT Home Screen highlighted text (Windows Mobile 6 Standard only.)
old description
Today Screen items text highlight color
36 COLOR_GRADLEFT Left color of a gradient listview background, used to draw alternating lines together with COLOR_INTGRADLEFT and COLOR_INTGRADRIGHT.
old description
'List Page' (e.g. Contacts main screen background), left-hand side of EVEN lines gradient
37 COLOR_GRADRIGHT Right color of a gradient listview background, used to draw alternating lines together with COLOR_INTGRADLEFT and COLOR_INTGRADRIGHT.
old description
'List Page' (e.g. Contacts main screen background), right-hand side of EVEN lines gradient
38 COLOR_STARTMENU Start Menu background color when there is no background bitmap (Windows Mobile 6 Professional and Windows Mobile 6 Classic.)
39 COLOR_STARTMENUTEXT Start Menu text.
old description
Start menu text
40 COLOR_TAPANDHOLD Tap and Hold (Windows Mobile 6 Professional and Windows Mobile 6 Classic.)
old description
Tap-and-hold dots

The numbers above were found at a russian PDA site that copied the MSDN information (which is not available on line anymore).

For all numerical value names, the datatype is Binary. The binary itself is composed of HEX values using the combination "RR GG BB AA" for Red, Green, Blue and Alpha (typically goes ignored). If your device is 'missing' one of the value names, you can add it manually.

Value names stored in registry without associated UI element found (device is Qtek 9100, ROM 1.1.7.5)

value name value meaning
38 C2 06 06 00 (medium red)  ???
42 6D 73 66 74 (greenish grey, with alpha) BenThon figured this one out - in ASCII it spells "msft", which stands for "Microsoft". And, of course, the answer to life, the universe, and everything is "42". Cute - but thus unlikely to be an actually used color. This value is generated by Microsoft's ThemeGenerator

Color values defined through theme file registry settings

These values will only become apparent if loaded from a theme file, or after a soft reset ====[[HKCU\SOFTWARE\Microsoft\Today\~ThemeName.tsk]]</code>==== (Where ThemeName should match the currently active .tsk file)

value name meaning
UseDefaultTitleColor Default value is 1. Seem to suppress several changes while at 1. Set to 0, and you will notice several changes kick in. I will edit this when I have a proper list. PM me for an incomplete one. -ideologist
Color_~CaptionFlat Color of dialogs which use a single title background color (such as the Pocket PC Networking message dialog)
Color_~CommandBar Color of 'flat' bottom command bar as seen in e.g. Help. Also background color of SIP icon when SIP is active in gradiented command bar, and color in the two lower (2px high) gradients on many screens such as the Today screen.
Color_~CommandBarText Color of the text in the command bar
Color_~CommandBarText_Highlight Color of the text in the command bar when highlighted (tapped)
Color_~CommandBarSip_Highlight Background color of the SIP icon when SIP is active in flat command bar (e.g. Help, but not Notes)
Color_~Highlight Background color of selected items in lists (Start menu, Explorer, Contacts, etc.)
Color_~HighlightText Text color of selected items in lists (Start menu, Explorer, Contacts, etc.)
Color_~MenuText Color of text in pop-up menus (e.g. Calendar > Menu).
Color_~NavBarText_Highlight Color of task bar text when highlighted (e.g. "Start" when opening the Start menu)
Color_~SoftkeyFlat  ?
Color_~SoftkeyFlatCenter Color of soft keys bar background
Color_~SoftkeyBtnFace  ?
Color_~TitleFlat  ?
Color_~TitleFlatCenter Color of task bar background
Color_~TitleFlatDoneBtn Color of OK/Close button in task bar
Color_~TitleFlatDoneBtn_Highlight Color of OK/Close button in task bar when highlighted (clicked/depressed)
others? There may be others - this is difficult to determine without having real world examples

Additional color changes may be done through the BLOB:
HKLM\SYSTEM\GWE\SysColor<br/> For details, see: MSDN Windows CE5 : 'Customizing System Colors'


====BaseHue==== In Windows Mobile 5, many of the UI colors are governed by a single registry value, the BaseHue. This value defines a basic 'tint' (Hsv) (e.g. color in colors of the rainbow) from which the actual colors used are then derived by varying brightness (hsV) and vividness (hSv).
This BaseHue value is normally derived from the settings used in a Theme.

By changing this single color manually, the Windows Mobile 5 user interface can be quickly customized for 'theming' purposes, but also as part of applications taking advantage of this behavior to perform visual effects. For example, in [[| http://www.spbsoftwarehouse.com/products/backup/?en%7CSPB Backup ]] the main list view has a background gradient that matches the theme or in ThemeGenCE you can set this value.
( Note that changing themes will also, likely, re-set your BaseHue value )

The value defined can be roughly specified as correlating as follows to tints:

value tint
0-255 greyscales - the brightness of the greyscale values varies - however, neither black or white are incorporated. Please see the WM5 BaseHue Gradient for an overview
256-495 color tints clockwise (red > yellow > green > cyan > blue > magenta > red) along a hue wheel (rainbow)
496-511 color starts at magenta and tints back towards red
512+ as 256-511 - there appears to be no measurable difference

Typical values are:

value angle on hue wheel tint
0 n/a greyscale
257 0 red
277 30 orange
296 60 yellow
317 90 neon green
337 120 green
357 150 mint
376 180 cyan
397 210 sky blue
417 240 blue
437 270 royal purple
457 300 magenta
476 330 hot pink
396 359 'red'

Microsofts BaseHue Secret

The Microsoft Default value is: '65929'
This value does not appear to differ from the value '393'. The reason for that is:
('65929' as hex is '0x010189')
The usage of the first byte ('01') is unknown (change it to whatever you want and nothing will change).
The second byte ('01') defines whether to use grayscale ( == 0x00 ) or not ( > 0x00 ).
The third byte states the gray value or the hue value (0-255).

So. Taking '393' as hex makes 0x000189. Except for the first byte its the same as '65929'.


The below package contains a large image which shows the relationship visually along with example screenshots.
It also includes an 'interactive' color explorer using HTML, CSS and javascript
Lastly, it contains example shortcuts for Vijay555's VJBaseHue application

BaseHue ColorScheme chart

[1]

Download a large version along with an HTML preview and some basic themes at [2] - 560k

WM5 BaseHue Gradient

[3]

ActiveSync Status Message

[4]