aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/debug/HyprNotificationOverlay.cpp
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-03-20 15:32:11 +0000
committervaxerski <[email protected]>2023-03-20 15:32:11 +0000
commit316674fecf0934998ba5eb9cdcc1e3c1cbef0197 (patch)
tree9c55bf2d300fb5e0246345bd9e94a5e6388b5d5d /src/debug/HyprNotificationOverlay.cpp
parent34da16b7e626be4d96c3098b5265e2c008fb2d65 (diff)
downloadHyprland-316674fecf0934998ba5eb9cdcc1e3c1cbef0197.tar.gz
Hyprland-316674fecf0934998ba5eb9cdcc1e3c1cbef0197.zip
notifs: use empty color for auto
Diffstat (limited to 'src/debug/HyprNotificationOverlay.cpp')
-rw-r--r--src/debug/HyprNotificationOverlay.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug/HyprNotificationOverlay.cpp b/src/debug/HyprNotificationOverlay.cpp
index fd4932c6..b19f56fa 100644
--- a/src/debug/HyprNotificationOverlay.cpp
+++ b/src/debug/HyprNotificationOverlay.cpp
@@ -40,7 +40,7 @@ void CHyprNotificationOverlay::addNotification(const std::string& text, const CC
const auto PNOTIF = m_dNotifications.emplace_back(std::make_unique<SNotification>()).get();
PNOTIF->text = text;
- PNOTIF->color = color;
+ PNOTIF->color = color == CColor(0) ? ICONS_COLORS[icon] : color;
PNOTIF->started.reset();
PNOTIF->timeMs = timeMs;
PNOTIF->icon = icon;