summaryrefslogtreecommitdiff
path: root/plugins/TipperYM/tipper.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-25 15:05:30 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-25 15:05:30 +0000
commited1449fa491e90197b78b64b52c70910f1736dd7 (patch)
tree208788e9ee24ec2bcd90a4f4d7a166a534baa53e /plugins/TipperYM/tipper.cpp
parent2a06d7b1dbe99233e078819c78956e346175b420 (diff)
dynamic fonts' options translation
git-svn-id: http://svn.miranda-ng.org/main/trunk@633 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TipperYM/tipper.cpp')
-rw-r--r--plugins/TipperYM/tipper.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/TipperYM/tipper.cpp b/plugins/TipperYM/tipper.cpp
index fde1fd7a39..09903c4302 100644
--- a/plugins/TipperYM/tipper.cpp
+++ b/plugins/TipperYM/tipper.cpp
@@ -151,6 +151,7 @@ void InitFonts()
strcpy(colourBg.setting, "ColourBg");
colourBg.defcolour = RGB(219, 219, 219);
colourBg.order = 0;
+ ColourRegisterT(&colourBg);
colourBorder.cbSize = sizeof(ColourIDT);
_tcscpy(colourBorder.group, LPGENT("Tooltips"));
@@ -159,6 +160,7 @@ void InitFonts()
strcpy(colourBorder.setting, "BorderCol");
colourBorder.defcolour = 0;
colourBorder.order = 0;
+ ColourRegisterT(&colourBorder);
colourAvatarBorder.cbSize = sizeof(ColourIDT);
_tcscpy(colourAvatarBorder.group, LPGENT("Tooltips"));
@@ -167,6 +169,7 @@ void InitFonts()
strcpy(colourAvatarBorder.setting, "AvBorderCol");
colourAvatarBorder.defcolour = 0;
colourAvatarBorder.order = 0;
+ ColourRegisterT(&colourAvatarBorder);
colourDivider.cbSize = sizeof(ColourIDT);
_tcscpy(colourDivider.group, LPGENT("Tooltips"));
@@ -175,6 +178,7 @@ void InitFonts()
strcpy(colourDivider.setting, "DividerCol");
colourDivider.defcolour = 0;
colourDivider.order = 0;
+ ColourRegisterT(&colourDivider);
colourSidebar.cbSize = sizeof(ColourIDT);
_tcscpy(colourSidebar.group, LPGENT("Tooltips"));
@@ -183,12 +187,7 @@ void InitFonts()
strcpy(colourSidebar.setting, "SidebarCol");
colourSidebar.defcolour = RGB(192, 192, 192);
colourSidebar.order = 0;
-
- CallService(MS_COLOUR_REGISTERT, (WPARAM)&colourBg, 0);
- CallService(MS_COLOUR_REGISTERT, (WPARAM)&colourBorder, 0);
- CallService(MS_COLOUR_REGISTERT, (WPARAM)&colourAvatarBorder, 0);
- CallService(MS_COLOUR_REGISTERT, (WPARAM)&colourDivider, 0);
- CallService(MS_COLOUR_REGISTERT, (WPARAM)&colourSidebar, 0);
+ ColourRegisterT(&colourSidebar);
fontTitle.cbSize = sizeof(FontIDT);
fontTitle.flags = FIDF_ALLOWEFFECTS;