From 5df3dd0b63c67b8139ff1c7e0d0c039db1a64b6d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 28 Oct 2023 16:53:06 +0300 Subject: NewStory: better looking downloaded icon --- plugins/NewStory/res/ok.ico | Bin 0 -> 1150 bytes plugins/NewStory/res/resource.rc | 2 ++ plugins/NewStory/src/history_array.cpp | 6 +++--- plugins/NewStory/src/main.cpp | 1 + plugins/NewStory/src/resource.h | 1 + 5 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 plugins/NewStory/res/ok.ico (limited to 'plugins') diff --git a/plugins/NewStory/res/ok.ico b/plugins/NewStory/res/ok.ico new file mode 100644 index 0000000000..0990087336 Binary files /dev/null and b/plugins/NewStory/res/ok.ico differ diff --git a/plugins/NewStory/res/resource.rc b/plugins/NewStory/res/resource.rc index 1380c4916c..7b2953fbb6 100644 --- a/plugins/NewStory/res/resource.rc +++ b/plugins/NewStory/res/resource.rc @@ -70,6 +70,8 @@ IDI_TIMETREE ICON "timetree.ico" IDI_BOOKMARK ICON "star.ico" +IDI_OK ICON "ok.ico" + ///////////////////////////////////////////////////////////////////////////// // // Dialog diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp index 72d2b2e4ea..67505d91d1 100644 --- a/plugins/NewStory/src/history_array.cpp +++ b/plugins/NewStory/src/history_array.cpp @@ -330,12 +330,12 @@ void ItemData::load(bool bFullLoad) buf.Append(pwszDescr); } - if (blob.getSize() > 0 && blob.getSize() == blob.getTransferred()) - buf.AppendFormat(L" %c ", 10004); - if (uint32_t size = blob.getSize()) buf.AppendFormat(L" %uKB", size < 1024 ? 1 : unsigned(blob.getSize() / 1024)); + if (blob.getSize() > 0 && blob.getSize() == blob.getTransferred()) + buf.AppendFormat(L" [$hicon=%p$]", g_plugin.getIcon(IDI_OK)); + wtext = buf.Detach(); break; } diff --git a/plugins/NewStory/src/main.cpp b/plugins/NewStory/src/main.cpp index f274e2d246..1c8a82988b 100644 --- a/plugins/NewStory/src/main.cpp +++ b/plugins/NewStory/src/main.cpp @@ -79,6 +79,7 @@ static IconItem icons[] = { LPGEN("Template group"), "tplgroup", IDI_TPLGROUP }, { LPGEN("Cancel edit"), "reset", IDI_RESET }, { LPGEN("Update preview"), "preview", IDI_PREVIEW }, + { LPGEN("Downloaded"), "downloaded", IDI_OK }, { LPGEN("Help"), "varhelp", IDI_VARHELP } }; diff --git a/plugins/NewStory/src/resource.h b/plugins/NewStory/src/resource.h index 4ee1c45613..a8ddee3bc8 100644 --- a/plugins/NewStory/src/resource.h +++ b/plugins/NewStory/src/resource.h @@ -20,6 +20,7 @@ #define IDI_MSGIN 116 #define IDI_MSGOUT 117 #define IDI_SIGNIN 118 +#define IDI_OK 119 #define IDI_UNKNOWN 121 #define IDI_FINDPREV 122 #define IDI_FINDNEXT 123 -- cgit v1.2.3