diff options
author | George Hazan <ghazan@miranda.im> | 2018-12-13 19:55:02 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-12-13 20:46:01 +0300 |
commit | 887544273011d56a796e9507199ea8d6484d31c6 (patch) | |
tree | c203b7f58e69abad45de75ed5e3e75f99057a17d /plugins/NewStory/src/fonts.cpp | |
parent | cd99f666712ff1227e33d8891897c4f4409dd572 (diff) |
NewStory: code cleaning
Diffstat (limited to 'plugins/NewStory/src/fonts.cpp')
-rw-r--r-- | plugins/NewStory/src/fonts.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/NewStory/src/fonts.cpp b/plugins/NewStory/src/fonts.cpp index 515665fa57..39e3f016b4 100644 --- a/plugins/NewStory/src/fonts.cpp +++ b/plugins/NewStory/src/fonts.cpp @@ -4,18 +4,18 @@ MyColourID colors[] = { { "Incoming Messages", "ColorMsgIn", RGB(0xff, 0xff, 0xff) }, { "Outgoing Messages", "ColorMsgOut", RGB(0xff, 0xff, 0xff) }, - + { "Incoming Files", "ColorFileIn", RGB(0xff, 0xff, 0xff) }, { "Outgoing Files", "ColorFileOut", RGB(0xff, 0xff, 0xff) }, - + { "Incoming URLs", "ColorURLIn", RGB(0xff, 0xff, 0xff) }, { "Outgoing URLs", "ColorURLOut", RGB(0xff, 0xff, 0xff) }, - + { "Status changes", "ColorStatus", RGB(0xff, 0xff, 0xff) }, - + { "Other Outgoing Events", "ColorOut", RGB(0xff, 0xff, 0xff) }, { "Other Incoming Events", "ColorIn", RGB(0xff, 0xff, 0xff) }, - + { "Selected Items", "ColorSel", RGB(0x60, 0x60, 0x60) }, { "Selected Items (Text)", "ColorSelTxt", RGB(0xff, 0xff, 0xff) } }; @@ -44,7 +44,7 @@ int evtFontsChanged(WPARAM, LPARAM) for (auto &it : fonts) { it.cl = (COLORREF)Font_Get(MODULENAME, it.szName, &it.lf); - + DeleteObject(it.hfnt); it.hfnt = CreateFontIndirectA(&it.lf); } @@ -82,7 +82,7 @@ void InitFonts() strncpy_s(fontid.name, it.szName, _TRUNCATE); strncpy_s(fontid.setting, it.szSetting, _TRUNCATE); g_plugin.addFont(&fontid); - + it.cl = Font_Get(MODULENAME, it.szName, &it.lf); it.hfnt = CreateFontIndirectA(&it.lf); } |