From 3cbcef61cf9dcbed33e2b63f2f127ef5e91f666a Mon Sep 17 00:00:00 2001 From: Dordovel Date: Mon, 5 Dec 2022 10:02:38 +0300 Subject: [PATCH] fix AIconLabel spacing between image and label --- src/modules/user.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/user.cpp b/src/modules/user.cpp index 2c9f5b6..2f7c6e9 100644 --- a/src/modules/user.cpp +++ b/src/modules/user.cpp @@ -27,6 +27,7 @@ const static int LEFT_MOUSE_BUTTON_CODE = 1; namespace waybar::modules { User::User(const std::string& id, const Json::Value& config) : AIconLabel(config, "user", id, "{user} {work_H}:{work_M}", 60, false, true, true) { + AIconLabel::box_.set_spacing(0); if (AIconLabel::iconEnabled()) { this->init_avatar(AIconLabel::config_); } @@ -137,6 +138,6 @@ auto User::update() -> void { fmt::arg("work_S", fmt::format("{:%S}", workSystemTimeSeconds)), fmt::arg("user", systemUser)); ALabel::label_.set_markup(label); - ALabel::update(); + AIconLabel::update(); } }; // namespace waybar::modules