pair/downloads notif changes + more settings options
This commit is contained in:
@@ -2675,6 +2675,30 @@ public class SettingsUi : WindowMediatorSubscriberBase
|
||||
_configService.Save();
|
||||
}, _configService.Current.LightlessErrorNotification);
|
||||
|
||||
ImGuiHelpers.ScaledDummy(3);
|
||||
_uiShared.DrawHelpText("Special notification types:");
|
||||
|
||||
ImGui.AlignTextToFramePadding();
|
||||
ImGui.TextUnformatted("Pair Request Notifications:");
|
||||
ImGui.SameLine();
|
||||
ImGui.SetNextItemWidth(200 * ImGuiHelpers.GlobalScale);
|
||||
_uiShared.DrawCombo("###enhanced_pairrequest", lightlessLocations, GetNotificationLocationLabel, (location) =>
|
||||
{
|
||||
_configService.Current.LightlessPairRequestNotification = location;
|
||||
_configService.Save();
|
||||
}, _configService.Current.LightlessPairRequestNotification);
|
||||
|
||||
ImGui.AlignTextToFramePadding();
|
||||
ImGui.TextUnformatted("Download Progress Notifications:");
|
||||
ImGui.SameLine();
|
||||
ImGui.SetNextItemWidth(200 * ImGuiHelpers.GlobalScale);
|
||||
var downloadLocations = GetDownloadNotificationLocations();
|
||||
_uiShared.DrawCombo("###enhanced_download", downloadLocations, GetNotificationLocationLabel, (location) =>
|
||||
{
|
||||
_configService.Current.LightlessDownloadNotification = location;
|
||||
_configService.Save();
|
||||
}, _configService.Current.LightlessDownloadNotification);
|
||||
|
||||
|
||||
ImGui.Unindent();
|
||||
}
|
||||
@@ -2932,21 +2956,6 @@ public class SettingsUi : WindowMediatorSubscriberBase
|
||||
ImGui.TreePop();
|
||||
}
|
||||
|
||||
// Download Progress Notifications Section
|
||||
if (_uiShared.MediumTreeNode("Download Progress Notifications", UIColors.Get("LightlessPurple")))
|
||||
{
|
||||
var useNotificationsForDownloads = _configService.Current.UseNotificationsForDownloads;
|
||||
if (ImGui.Checkbox("Show download progress as notifications", ref useNotificationsForDownloads))
|
||||
{
|
||||
_configService.Current.UseNotificationsForDownloads = useNotificationsForDownloads;
|
||||
_configService.Save();
|
||||
}
|
||||
_uiShared.DrawHelpText("Show download progress as clean notifications instead of overlay text. Notifications update in real-time and use the Info notification location settings above.");
|
||||
|
||||
_uiShared.ColoredSeparator(UIColors.Get("LightlessPurple"), 1.5f);
|
||||
ImGui.TreePop();
|
||||
}
|
||||
|
||||
// System Notifications Section
|
||||
if (_uiShared.MediumTreeNode("System Notifications", UIColors.Get("LightlessYellow")))
|
||||
{
|
||||
@@ -2972,8 +2981,19 @@ public class SettingsUi : WindowMediatorSubscriberBase
|
||||
{
|
||||
return new[]
|
||||
{
|
||||
NotificationLocation.LightlessUI,
|
||||
NotificationLocation.ChatAndLightlessUI,
|
||||
NotificationLocation.LightlessUi,
|
||||
NotificationLocation.ChatAndLightlessUi,
|
||||
NotificationLocation.Nowhere
|
||||
};
|
||||
}
|
||||
|
||||
private NotificationLocation[] GetDownloadNotificationLocations()
|
||||
{
|
||||
return new[]
|
||||
{
|
||||
NotificationLocation.LightlessUi,
|
||||
NotificationLocation.ChatAndLightlessUi,
|
||||
NotificationLocation.TextOverlay,
|
||||
NotificationLocation.Nowhere
|
||||
};
|
||||
}
|
||||
@@ -2997,8 +3017,9 @@ public class SettingsUi : WindowMediatorSubscriberBase
|
||||
NotificationLocation.Chat => "Chat",
|
||||
NotificationLocation.Toast => "Toast",
|
||||
NotificationLocation.Both => "Toast + Chat",
|
||||
NotificationLocation.LightlessUI => "Lightless Notifications",
|
||||
NotificationLocation.ChatAndLightlessUI => "Chat + Lightless Notifications",
|
||||
NotificationLocation.LightlessUi => "Lightless Notifications",
|
||||
NotificationLocation.ChatAndLightlessUi => "Chat + Lightless Notifications",
|
||||
NotificationLocation.TextOverlay => "Text Overlay",
|
||||
_ => location.ToString()
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user