diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-12-13 01:36:10 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-12-13 01:36:10 +0100 |
commit | b03e4cd34120c3b4a1b7240ce45030f3bc7a2305 (patch) | |
tree | aa76349c4b9386f4c95e2c7800e8d2bfaa260177 /src/main.cpp | |
parent | 06bd3d9ac5a9e808ea17568296a65a891ac8de7f (diff) |
Add more padding when no icon
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 8f2b849..935e2f7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -110,7 +110,7 @@ static bool is_xwayland(Display *display) { } static void usage() { - fprintf(stderr, "usage: gsr-notify <--text text> <--timeout timeout> [--icon filepath] [--icon-color color] [--bg-color color]\n"); + fprintf(stderr, "usage: gsr-notify --text text --timeout timeout [--icon filepath] [--icon-color color] [--bg-color color]\n"); 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"); @@ -366,7 +366,7 @@ int main(int argc, char **argv) { text.set_color(mgl::Color(255, 255, 255, 0)); mgl::Sprite logo_sprite; - float logo_sprite_padding_x = 20.0f; + float logo_sprite_padding_x = (int)(window_height * 0.5f); float padding_between_icon_and_text_x = 0.0f; if(logo_texture.is_valid()) { logo_sprite.set_texture(&logo_texture); |