diff options
author | George Hazan <george.hazan@gmail.com> | 2024-02-09 11:54:43 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-02-09 11:54:43 +0300 |
commit | 1d6d39b6d6772348ba8a18fad7676b9e10071df8 (patch) | |
tree | a53a2afb6b5374e874caebbe356ac88603ff5dae /plugins/NewStory | |
parent | 0d12a185b542c5cf4719a725faf58d217d267073 (diff) |
fixes #4182 (NewStory: проблемы индикатора прогресса загрузки файлов)
Diffstat (limited to 'plugins/NewStory')
-rw-r--r-- | plugins/NewStory/src/fonts.cpp | 1 | ||||
-rw-r--r-- | plugins/NewStory/src/fonts.h | 2 | ||||
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/plugins/NewStory/src/fonts.cpp b/plugins/NewStory/src/fonts.cpp index 40919c9251..844f5d0f62 100644 --- a/plugins/NewStory/src/fonts.cpp +++ b/plugins/NewStory/src/fonts.cpp @@ -41,6 +41,7 @@ MyColourID g_colorTable[COLOR_COUNT] = { LPGEN("Highlighted messages"), "ColorHighlight", RGB(0xf0, 0xf0, 0xf0) }, { LPGEN("Grid background"), "Background", RGB(0xff, 0xff, 0xff) }, { LPGEN("Separator"), "Separator", RGB(0x60, 0x60, 0x60) }, + { LPGEN("Progress indicator"), "Progress", RGB(0xff, 0x00, 0x00) }, }; MyFontID g_fontTable[FONT_COUNT] = diff --git a/plugins/NewStory/src/fonts.h b/plugins/NewStory/src/fonts.h index 8e19ef7f8e..0a441c1931 100644 --- a/plugins/NewStory/src/fonts.h +++ b/plugins/NewStory/src/fonts.h @@ -11,7 +11,7 @@ enum COLOR_STATUS, COLOR_INOTHER, COLOR_OUTOTHER, COLOR_SELTEXT, COLOR_SELBACK, COLOR_SELFRAME, - COLOR_HIGHLIGHT_BACK, COLOR_BACK, COLOR_FRAME, + COLOR_HIGHLIGHT_BACK, COLOR_BACK, COLOR_FRAME, COLOR_PROGRESS, COLOR_COUNT }; diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index aabf445b63..465918ce81 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -744,7 +744,7 @@ int NewstoryListData::PaintItem(HDC hdc, ItemData *pItem, int top, int width, bo if (pItem->completed()) DrawIconEx(hdc, width - 20, pos.y, g_plugin.getIcon(IDI_OK), 16, 16, 0, 0, DI_NORMAL); else { - HPEN hpn = (HPEN)SelectObject(hdc, CreatePen(PS_SOLID, 4, RGB(255, 0, 0))); + HPEN hpn = (HPEN)SelectObject(hdc, CreatePen(PS_SOLID, 4, g_colorTable[COLOR_PROGRESS].cl)); MoveToEx(hdc, rc.left, rc.bottom - 4, 0); LineTo(hdc, rc.left + (rc.right - rc.left) * int(pItem->m_bOfflineDownloaded) / 100, rc.bottom - 4); DeleteObject(SelectObject(hdc, hpn)); |