diff options
author | George Hazan <ghazan@miranda.im> | 2020-05-04 21:35:20 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-05-04 21:35:20 +0300 |
commit | b48bccbd866fe815566077bf3c0e6a4666b571de (patch) | |
tree | 1c81fa3ff530f84e639e550b6f60d219b5ed24c9 | |
parent | 633d14f19afc80362a5d4872def663a5271c7225 (diff) |
fixes #2332 (NewStory: добавить возможность настройки цвета, которым заливается область, где нет сообщений)
-rw-r--r-- | plugins/NewStory/src/fonts.cpp | 4 | ||||
-rw-r--r-- | plugins/NewStory/src/fonts.h | 1 | ||||
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/plugins/NewStory/src/fonts.cpp b/plugins/NewStory/src/fonts.cpp index 4d5558b0bb..b7c4a4af55 100644 --- a/plugins/NewStory/src/fonts.cpp +++ b/plugins/NewStory/src/fonts.cpp @@ -14,7 +14,9 @@ MyColourID g_colorTable[COLOR_COUNT] = { LPGEN("Other outgoing events"), "ColorOut", RGB(0xff, 0xff, 0xff) }, { LPGEN("Selected items"), "ColorSel", RGB(0x60, 0x60, 0x60) }, - { LPGEN("Selected items (text)"), "ColorSelTxt", RGB(0xff, 0xff, 0xff) } + { LPGEN("Selected items (text)"), "ColorSelTxt", RGB(0xff, 0xff, 0xff) }, + + { LPGEN("Background"), "Background", RGB(0xff, 0xff, 0xff) }, }; MyFontID g_fontTable[FONT_COUNT] = diff --git a/plugins/NewStory/src/fonts.h b/plugins/NewStory/src/fonts.h index 8eee739a69..36f7c352ef 100644 --- a/plugins/NewStory/src/fonts.h +++ b/plugins/NewStory/src/fonts.h @@ -14,6 +14,7 @@ enum COLOR_STATUS, COLOR_SELECTED, COLOR_SELTEXT, + COLOR_BACK, COLOR_COUNT }; diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index a616e9a6b7..0289b9fce0 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -750,7 +750,7 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM SetRect(&rc2, 0, top, width, height); HBRUSH hbr; - hbr = CreateSolidBrush(RGB(0xff, 0xff, 0xff)); + hbr = CreateSolidBrush(g_colorTable[COLOR_BACK].cl); FillRect(hdc, &rc2, hbr); DeleteObject(hbr); } |