diff options
author | George Hazan <ghazan@miranda.im> | 2023-01-16 16:10:56 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-01-16 16:10:56 +0300 |
commit | 621085cc9a294c7c69b3bfab4125d6b8ff094524 (patch) | |
tree | a285165cf8dccb098247ad0ca36e156cd6644168 /plugins/NewEventNotify/src/popup.cpp | |
parent | 4d91b4add55be0f9633bedb0893c63bcc0601555 (diff) |
fixes #3299 (NewEventNotify: добавить опцию "Use Windows colors")
Diffstat (limited to 'plugins/NewEventNotify/src/popup.cpp')
-rw-r--r-- | plugins/NewEventNotify/src/popup.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/NewEventNotify/src/popup.cpp b/plugins/NewEventNotify/src/popup.cpp index dca446fb4f..4da66331b7 100644 --- a/plugins/NewEventNotify/src/popup.cpp +++ b/plugins/NewEventNotify/src/popup.cpp @@ -323,8 +323,8 @@ int PopupShow(MCONTACT hContact, MEVENT hEvent, UINT eventType) case EVENTTYPE_MESSAGE:
if (!(g_plugin.maskNotify & MASK_MESSAGE)) return 1;
pudw.lchIcon = Skin_LoadIcon(SKINICON_EVENT_MESSAGE);
- pudw.colorBack = g_plugin.msg.bDefault ? 0 : g_plugin.msg.backColor;
- pudw.colorText = g_plugin.msg.bDefault ? 0 : g_plugin.msg.textColor;
+ pudw.colorBack = g_plugin.msg.getBackColor();
+ pudw.colorText = g_plugin.msg.getTextColor();
iSeconds = g_plugin.msg.iDelay;
sampleEvent = TranslateT("This is a sample message event :-)");
break;
@@ -332,8 +332,8 @@ int PopupShow(MCONTACT hContact, MEVENT hEvent, UINT eventType) case EVENTTYPE_FILE:
if (!(g_plugin.maskNotify & MASK_FILE)) return 1;
pudw.lchIcon = Skin_LoadIcon(SKINICON_EVENT_FILE);
- pudw.colorBack = g_plugin.file.bDefault ? 0 : g_plugin.file.backColor;
- pudw.colorText = g_plugin.file.bDefault ? 0 : g_plugin.file.textColor;
+ pudw.colorBack = g_plugin.file.getBackColor();
+ pudw.colorText = g_plugin.file.getTextColor();
iSeconds = g_plugin.file.iDelay;
sampleEvent = TranslateT("This is a sample file event :-D");
break;
@@ -341,8 +341,8 @@ int PopupShow(MCONTACT hContact, MEVENT hEvent, UINT eventType) case EVENTTYPE_ERRMSG:
if (!(g_plugin.maskNotify & MASK_ERROR)) return 1;
pudw.lchIcon = Skin_LoadIcon(SKINICON_OTHER_DELETE);
- pudw.colorBack = g_plugin.err.bDefault ? 0 : g_plugin.err.backColor;
- pudw.colorText = g_plugin.err.bDefault ? 0 : g_plugin.err.textColor;
+ pudw.colorBack = g_plugin.err.getBackColor();
+ pudw.colorText = g_plugin.err.getTextColor();
iSeconds = g_plugin.err.iDelay;
sampleEvent = TranslateT("This is a sample error event :-D");
break;
@@ -350,8 +350,8 @@ int PopupShow(MCONTACT hContact, MEVENT hEvent, UINT eventType) default:
if (!(g_plugin.maskNotify & MASK_OTHER)) return 1;
pudw.lchIcon = Skin_LoadIcon(SKINICON_OTHER_MIRANDA);
- pudw.colorBack = g_plugin.other.bDefault ? 0 : g_plugin.other.backColor;
- pudw.colorText = g_plugin.other.bDefault ? 0 : g_plugin.other.textColor;
+ pudw.colorBack = g_plugin.other.getBackColor();
+ pudw.colorText = g_plugin.other.getTextColor();
iSeconds = g_plugin.other.iDelay;
sampleEvent = TranslateT("This is a sample other event ;-D");
break;
|