diff options
author | Vaxry <[email protected]> | 2024-10-13 17:26:39 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-10-13 17:26:44 +0100 |
commit | 5c3bd8e93d9f25be3e16a0445ba6fce8d30b6d73 (patch) | |
tree | 8cc7429b11850423d6ef0dacc1755f1d5f79bdb9 | |
parent | 05a5e0b4f1ced12f2a0330132f37b0081d7a5e4d (diff) | |
download | Hyprland-5c3bd8e93d9f25be3e16a0445ba6fce8d30b6d73.tar.gz Hyprland-5c3bd8e93d9f25be3e16a0445ba6fce8d30b6d73.zip |
notif-overlay: add a bit of padding for icons
-rw-r--r-- | src/debug/HyprNotificationOverlay.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug/HyprNotificationOverlay.cpp b/src/debug/HyprNotificationOverlay.cpp index 29da20c8..16f80ab6 100644 --- a/src/debug/HyprNotificationOverlay.cpp +++ b/src/debug/HyprNotificationOverlay.cpp @@ -37,7 +37,7 @@ CHyprNotificationOverlay::~CHyprNotificationOverlay() { void CHyprNotificationOverlay::addNotification(const std::string& text, const CColor& color, const float timeMs, const eIcons icon, const float fontSize) { const auto PNOTIF = m_dNotifications.emplace_back(std::make_unique<SNotification>()).get(); - PNOTIF->text = text; + PNOTIF->text = icon != eIcons::ICON_NONE ? " " + text /* tiny bit of padding otherwise icon touches text */ : text; PNOTIF->color = color == CColor(0) ? ICONS_COLORS[icon] : color; PNOTIF->started.reset(); PNOTIF->timeMs = timeMs; |