tweak notification ux

* Swap the "up" and "down" arrows to make more sense
* Toggle collapse state when clicking, instead of dismissing
This commit is contained in:
goat 2024-06-15 00:53:25 +02:00
parent bc0bea03e0
commit c926a13848

View file

@ -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;
}