From b03e4cd34120c3b4a1b7240ce45030f3bc7a2305 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 13 Dec 2024 01:36:10 +0100 Subject: Add more padding when no icon --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') 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); -- cgit v1.2.3