From 48f1dba9e0362070fb87333b6a6cdcab74224420 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 22 Feb 2025 13:11:23 +0100 Subject: Add screenshot image --- depends/mglpp | 2 +- images/screenshot.png | Bin 0 -> 7193 bytes src/main.cpp | 4 +++- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 images/screenshot.png diff --git a/depends/mglpp b/depends/mglpp index d875a5c..04a9fde 160000 --- a/depends/mglpp +++ b/depends/mglpp @@ -1 +1 @@ -Subproject commit d875a5c2b9cd3b123e4253ba48f8738ff5b08f1b +Subproject commit 04a9fdec5a7248245b0c3ec874a5df56e039a8f6 diff --git a/images/screenshot.png b/images/screenshot.png new file mode 100644 index 0000000..9f04433 Binary files /dev/null and b/images/screenshot.png 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"); -- cgit v1.2.3-70-g09d2