aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
m---------depends/mglpp0
-rw-r--r--images/screenshot.pngbin0 -> 7193 bytes
-rw-r--r--src/main.cpp4
3 files changed, 3 insertions, 1 deletions
diff --git a/depends/mglpp b/depends/mglpp
-Subproject d875a5c2b9cd3b123e4253ba48f8738ff5b08f1
+Subproject 04a9fdec5a7248245b0c3ec874a5df56e039a8f
diff --git a/images/screenshot.png b/images/screenshot.png
new file mode 100644
index 0000000..9f04433
--- /dev/null
+++ b/images/screenshot.png
Binary files differ
diff --git a/src/main.cpp b/src/main.cpp
index 7c62591..76ea0cf 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -114,7 +114,7 @@ static void usage() {
fprintf(stderr, "options:\n");
fprintf(stderr, " --text The text to display in the notification. Required.\n");
fprintf(stderr, " --timeout The time to display the notification in seconds (excluding animation time), expected to be a floating point number. Required.\n");
- fprintf(stderr, " --icon A path to an image file to display on the left side of the text. This can also be either \"record\", \"replay\" or \"stream\" to use built-in images. Optional.\n");
+ fprintf(stderr, " --icon A path to an image file to display on the left side of the text. This can also be either \"record\", \"replay\", \"stream\" or \"screenshot\" to use built-in images. Optional.\n");
fprintf(stderr, " --icon-color The color to display the icon as in hex format, for example FF0000. Optional, set to FFFFFF by default.\n");
fprintf(stderr, " --bg-color The notification background (and side bar) color in hex format, for example FF0000. Optional, set to 76b900 by default.\n");
fprintf(stderr, "examples:\n");
@@ -586,6 +586,8 @@ int main(int argc, char **argv) {
icon_filepath_str = resources_path + "images/replay.png";
else if(icon_filepath_str == "stream")
icon_filepath_str = resources_path + "images/stream.png";
+ else if(icon_filepath_str == "screenshot")
+ icon_filepath_str = resources_path + "images/screenshot.png";
if(!logo_texture.load_from_file(icon_filepath_str.c_str(), {false, false, true})) {
fprintf(stderr, "Warning: failed to load icon\n");