From c926a13848985bcfee55670217180b6aa7388241 Mon Sep 17 00:00:00 2001 From: goat Date: Sat, 15 Jun 2024 00:53:25 +0200 Subject: [PATCH] tweak notification ux * Swap the "up" and "down" arrows to make more sense * Toggle collapse state when clicking, instead of dismissing --- .../ImGuiNotification/Internal/ActiveNotification.ImGui.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dalamud/Interface/ImGuiNotification/Internal/ActiveNotification.ImGui.cs b/Dalamud/Interface/ImGuiNotification/Internal/ActiveNotification.ImGui.cs index fdccaab7b..16d58bea5 100644 --- a/Dalamud/Interface/ImGuiNotification/Internal/ActiveNotification.ImGui.cs +++ b/Dalamud/Interface/ImGuiNotification/Internal/ActiveNotification.ImGui.cs @@ -124,7 +124,7 @@ internal sealed partial class ActiveNotification if (this.Click is null) { if (this.UserDismissable && ImGui.IsMouseClicked(ImGuiMouseButton.Left)) - this.DismissNow(NotificationDismissReason.Manual); + this.Minimized = !this.Minimized; } else { @@ -277,12 +277,12 @@ internal sealed partial class ActiveNotification if (this.underlyingNotification.Minimized) { - if (this.DrawIconButton(FontAwesomeIcon.ChevronDown, rtOffset, height, drawActionButtons)) + if (this.DrawIconButton(FontAwesomeIcon.ChevronUp, rtOffset, height, drawActionButtons)) this.Minimized = false; } else { - if (this.DrawIconButton(FontAwesomeIcon.ChevronUp, rtOffset, height, drawActionButtons)) + if (this.DrawIconButton(FontAwesomeIcon.ChevronDown, rtOffset, height, drawActionButtons)) this.Minimized = true; }