diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-22 18:30:42 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-22 18:30:42 +0300 |
commit | 8557d288376ccc87bd54f2a76c99f77115949f02 (patch) | |
tree | fdb3f8cac9215adc4493d26abb935bd5c1f54b2e /plugins/FavContacts/src/services.cpp | |
parent | feac2b1a6a79c9d0bb58b0825ec2a776b888f9ce (diff) |
m_fontservice.h => CMPlugin
Diffstat (limited to 'plugins/FavContacts/src/services.cpp')
-rw-r--r-- | plugins/FavContacts/src/services.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/FavContacts/src/services.cpp b/plugins/FavContacts/src/services.cpp index 896a1c61ab..1d989d81f4 100644 --- a/plugins/FavContacts/src/services.cpp +++ b/plugins/FavContacts/src/services.cpp @@ -174,13 +174,13 @@ int ProcessModulesLoaded(WPARAM, LPARAM) strncpy_s(fontid.prefix, "fntName", _TRUNCATE);
fontid.deffontsettings.colour = GetSysColor(COLOR_MENUTEXT);
fontid.deffontsettings.style = DBFONTF_BOLD;
- Font_RegisterW(&fontid);
+ g_plugin.addFont(&fontid);
wcsncpy_s(fontid.name, LPGENW("Second line"), _TRUNCATE);
strncpy_s(fontid.prefix, "fntSecond", _TRUNCATE);
fontid.deffontsettings.colour = sttShadeColor(GetSysColor(COLOR_MENUTEXT), GetSysColor(COLOR_MENU));
fontid.deffontsettings.style = 0;
- Font_RegisterW(&fontid);
+ g_plugin.addFont(&fontid);
wcsncpy_s(fontid.backgroundName, LPGENW("Selected background"), _TRUNCATE);
@@ -188,13 +188,13 @@ int ProcessModulesLoaded(WPARAM, LPARAM) strncpy_s(fontid.prefix, "fntNameSel", _TRUNCATE);
fontid.deffontsettings.colour = GetSysColor(COLOR_HIGHLIGHTTEXT);
fontid.deffontsettings.style = DBFONTF_BOLD;
- Font_RegisterW(&fontid);
+ g_plugin.addFont(&fontid);
wcsncpy_s(fontid.name, LPGENW("Selected second line (color)"), _TRUNCATE);
strncpy_s(fontid.prefix, "fntSecondSel", _TRUNCATE);
fontid.deffontsettings.colour = sttShadeColor(GetSysColor(COLOR_HIGHLIGHTTEXT), GetSysColor(COLOR_HIGHLIGHT));
fontid.deffontsettings.style = 0;
- Font_RegisterW(&fontid);
+ g_plugin.addFont(&fontid);
/////////////////////////////////////////////////////////////////////////////////////
@@ -205,12 +205,12 @@ int ProcessModulesLoaded(WPARAM, LPARAM) wcsncpy_s(colourid.name, LPGENW("Background"), _TRUNCATE);
strncpy_s(colourid.setting, "BackColour", _TRUNCATE);
colourid.defcolour = GetSysColor(COLOR_MENU);
- Colour_RegisterW(&colourid);
+ g_plugin.addColor(&colourid);
wcsncpy_s(colourid.name, LPGENW("Selected background"), _TRUNCATE);
strncpy_s(colourid.setting, "SelectedColour", _TRUNCATE);
colourid.defcolour = GetSysColor(COLOR_HIGHLIGHT);
- Colour_RegisterW(&colourid);
+ g_plugin.addColor(&colourid);
HookEvent(ME_FONT_RELOAD, ProcessReloadFonts);
HookEvent(ME_COLOUR_RELOAD, ProcessReloadFonts);
|