uxtheme: Support more font properties.

Add support for TMT_HEADING1FONT, TMT_HEADING2FONT and TMT_BODYFONT.
TMT_BODYFONT is used by Command Links.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zhiyi Zhang 2021-02-22 22:32:44 +08:00 committed by Alexandre Julliard
parent 061ac08d6b
commit a18df3a412
2 changed files with 7 additions and 1 deletions

View File

@ -83,6 +83,9 @@ static const MSSTYLES_PROPERTY_MAP mapProperty[] = {
{TMT_FONT, TMT_STATUSFONT, L"STATUSFONT"},
{TMT_FONT, TMT_MSGBOXFONT, L"MSGBOXFONT"},
{TMT_FONT, TMT_ICONTITLEFONT, L"ICONTITLEFONT"},
{TMT_FONT, TMT_HEADING1FONT, L"HEADING1FONT"},
{TMT_FONT, TMT_HEADING2FONT, L"HEADING2FONT"},
{TMT_FONT, TMT_BODYFONT, L"BODYFONT"},
{TMT_BOOL, TMT_FLATMENUS, L"FLATMENUS"},
{TMT_SIZE, TMT_SIZINGBORDERWIDTH, L"SIZINGBORDERWIDTH"},
{TMT_SIZE, TMT_SCROLLBARWIDTH, L"SCROLLBARWIDTH"},

View File

@ -188,8 +188,11 @@ BEGIN_TM_PROPS()
TM_PROP(804, TMT, STATUSFONT, FONT)
TM_PROP(805, TMT, MSGBOXFONT, FONT)
TM_PROP(806, TMT, ICONTITLEFONT, FONT)
TM_PROP(807, TMT, HEADING1FONT, FONT)
TM_PROP(808, TMT, HEADING2FONT, FONT)
TM_PROP(809, TMT, BODYFONT, FONT)
# define TMT_FIRSTFONT TMT_CAPTIONFONT
# define TMT_LASTFONT TMT_ICONTITLEFONT
# define TMT_LASTFONT TMT_BODYFONT
/* Bool theme metric properties */
TM_PROP(1001, TMT, FLATMENUS, BOOL)