diff options
-rw-r--r-- | plugins/NewStory/src/fonts.cpp | 32 | ||||
-rw-r--r-- | plugins/NewStory/src/fonts.h | 6 |
2 files changed, 22 insertions, 16 deletions
diff --git a/plugins/NewStory/src/fonts.cpp b/plugins/NewStory/src/fonts.cpp index f42881dfc9..de13764082 100644 --- a/plugins/NewStory/src/fonts.cpp +++ b/plugins/NewStory/src/fonts.cpp @@ -2,33 +2,36 @@ MyColourID g_colorTable[COLOR_COUNT] = { - { "Incoming Messages", "ColorMsgIn", RGB(0xd6, 0xf5, 0xc0) }, - { "Outgoing Messages", "ColorMsgOut", RGB(0xf5, 0xe7, 0xd8) }, + { "Incoming messages", "ColorMsgIn", RGB(0xd6, 0xf5, 0xc0) }, + { "Outgoing messages", "ColorMsgOut", RGB(0xf5, 0xe7, 0xd8) }, - { "Incoming Files", "ColorFileIn", RGB(0xe3, 0xee, 0x9b) }, - { "Outgoing Files", "ColorFileOut", RGB(0xe3, 0xee, 0x9b) }, + { "Incoming files", "ColorFileIn", RGB(0xe3, 0xee, 0x9b) }, + { "Outgoing files", "ColorFileOut", RGB(0xe3, 0xee, 0x9b) }, { "Status changes", "ColorStatus", RGB(0xf0, 0xf0, 0xf0) }, - { "Other Outgoing Events", "ColorOut", RGB(0xff, 0xff, 0xff) }, - { "Other Incoming Events", "ColorIn", RGB(0xff, 0xff, 0xff) }, + { "Other incoming events", "ColorIn", RGB(0xff, 0xff, 0xff) }, + { "Other outgoing events", "ColorOut", RGB(0xff, 0xff, 0xff) }, - { "Selected Items", "ColorSel", RGB(0x60, 0x60, 0x60) }, - { "Selected Items (Text)", "ColorSelTxt", RGB(0xff, 0xff, 0xff) } + { "Selected items", "ColorSel", RGB(0x60, 0x60, 0x60) }, + { "Selected items (text)", "ColorSelTxt", RGB(0xff, 0xff, 0xff) } }; MyFontID g_fontTable[FONT_COUNT] = { - { "Incoming Messages", "FontMsgIn" }, - { "Outgoing Messages", "FontMsgOut" }, + { "Incoming nick", "FontNickIn", RGB(0xc8, 0x3f, 0x6b) }, + { "Outgoing nick", "FontNickOut", RGB(0x08, 0x60, 0xbd) }, - { "Incoming Files", "FontFileIn" }, - { "Outgoing Files", "FontFileOut" }, + { "Incoming messages", "FontMsgIn" }, + { "Outgoing messages", "FontMsgOut" }, + + { "Incoming files", "FontFileIn" }, + { "Outgoing files", "FontFileOut" }, { "Status changes", "FontStatus" }, - { "Other Outgoing Events", "FontOut" }, - { "Other Incoming Events", "FontIn" } + { "Other incoming events", "FontIn" }, + { "Other outgoing events", "FontOut" } }; int evtFontsChanged(WPARAM, LPARAM) @@ -75,6 +78,7 @@ void InitFonts() fontid.order = int(&it - g_fontTable); strncpy_s(fontid.name, it.szName, _TRUNCATE); strncpy_s(fontid.setting, it.szSetting, _TRUNCATE); + fontid.deffontsettings.colour = it.defaultValue; g_plugin.addFont(&fontid); it.cl = Font_Get(MODULENAME, it.szName, &it.lf); diff --git a/plugins/NewStory/src/fonts.h b/plugins/NewStory/src/fonts.h index 0216f155b9..8eee739a69 100644 --- a/plugins/NewStory/src/fonts.h +++ b/plugins/NewStory/src/fonts.h @@ -9,9 +9,9 @@ enum COLOR_OUTMSG, COLOR_INFILE, COLOR_OUTFILE, - COLOR_STATUS, COLOR_INOTHER, COLOR_OUTOTHER, + COLOR_STATUS, COLOR_SELECTED, COLOR_SELTEXT, COLOR_COUNT @@ -29,6 +29,8 @@ extern MyColourID g_colorTable[COLOR_COUNT]; enum { + FONT_INNICK, + FONT_OUTNICK, FONT_INMSG, FONT_OUTMSG, FONT_INFILE, @@ -43,7 +45,7 @@ struct MyFontID { const char *szName, *szSetting; - COLORREF cl; + COLORREF defaultValue, cl; LOGFONTA lf; HFONT hfnt; }; |