summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-12-13 21:55:31 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-12-13 21:55:31 +0300
commite72ccc740bfa7c6493a56abc168eb270f76f0cba (patch)
treeb23e5c2774f68164166dd7b4857a913e3a83093b
parentc6ffce9bd99bc9073b2b09fc7303cde5575ded66 (diff)
Telegram: blue star for premium users
-rw-r--r--protocols/Telegram/res/premium.icobin0 -> 1150 bytes
-rw-r--r--protocols/Telegram/res/resource.rc2
-rw-r--r--protocols/Telegram/src/main.cpp6
-rw-r--r--protocols/Telegram/src/resource.h3
4 files changed, 10 insertions, 1 deletions
diff --git a/protocols/Telegram/res/premium.ico b/protocols/Telegram/res/premium.ico
new file mode 100644
index 0000000000..fb77874fc4
--- /dev/null
+++ b/protocols/Telegram/res/premium.ico
Binary files differ
diff --git a/protocols/Telegram/res/resource.rc b/protocols/Telegram/res/resource.rc
index 5c3e00eb73..c7e451b53c 100644
--- a/protocols/Telegram/res/resource.rc
+++ b/protocols/Telegram/res/resource.rc
@@ -95,6 +95,8 @@ END
// remains consistent on all systems.
IDI_TELEGRAM ICON "telegram.ico"
+IDI_PREMIUM ICON "premium.ico"
+
#endif // English resources
/////////////////////////////////////////////////////////////////////////////
diff --git a/protocols/Telegram/src/main.cpp b/protocols/Telegram/src/main.cpp
index 2cc1146b2a..f2fb0cd153 100644
--- a/protocols/Telegram/src/main.cpp
+++ b/protocols/Telegram/src/main.cpp
@@ -38,8 +38,14 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOC
/////////////////////////////////////////////////////////////////////////////////////////
+static IconItem iconList[] =
+{
+ { LPGEN("Premium user"), "premuim", IDI_PREMIUM },
+};
+
extern "C" int __declspec(dllexport) Load(void)
{
+ g_plugin.registerIcon("Protocols/Telegram", iconList, "tg");
return 0;
}
diff --git a/protocols/Telegram/src/resource.h b/protocols/Telegram/src/resource.h
index a9cc327636..a52902e8c7 100644
--- a/protocols/Telegram/src/resource.h
+++ b/protocols/Telegram/src/resource.h
@@ -5,6 +5,7 @@
#define IDI_TELEGRAM 100
#define IDD_ACCMGRUI 101
#define IDD_OPTIONS 102
+#define IDI_PREMIUM 103
#define IDC_PHONE 1001
#define IDC_DEFGROUP 1002
@@ -15,7 +16,7 @@
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
-#define _APS_NEXT_RESOURCE_VALUE 111
+#define _APS_NEXT_RESOURCE_VALUE 104
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1001
#define _APS_NEXT_SYMED_VALUE 101