summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-10-28 16:53:06 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-10-28 16:53:06 +0300
commit5df3dd0b63c67b8139ff1c7e0d0c039db1a64b6d (patch)
treea5abffabdba7740a7821cc683dc7e81f9cb0c8e8 /plugins
parent67608d2587ba849bd1bb6be346efd82794197acb (diff)
NewStory: better looking downloaded icon
Diffstat (limited to 'plugins')
-rw-r--r--plugins/NewStory/res/ok.icobin0 -> 1150 bytes
-rw-r--r--plugins/NewStory/res/resource.rc2
-rw-r--r--plugins/NewStory/src/history_array.cpp6
-rw-r--r--plugins/NewStory/src/main.cpp1
-rw-r--r--plugins/NewStory/src/resource.h1
5 files changed, 7 insertions, 3 deletions
diff --git a/plugins/NewStory/res/ok.ico b/plugins/NewStory/res/ok.ico
new file mode 100644
index 0000000000..0990087336
--- /dev/null
+++ b/plugins/NewStory/res/ok.ico
Binary files 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