feat(ui): add per-tab notification sound for inactive tabs

This commit is contained in:
2026-05-21 10:39:09 +02:00
parent 246f0e2511
commit 36ea8ddcfc
4 changed files with 68 additions and 0 deletions
+21
View File
@@ -165,6 +165,27 @@ internal sealed class Tabs : ISettingsTab
}
ImGui.Checkbox(Language.Options_Tabs_ShowTimestamps, ref tab.DisplayTimestamp);
ImGui.Checkbox(
HellionStrings.Tabs_NotificationSound_Enable_Name,
ref tab.EnableNotificationSound
);
ImGuiUtil.HelpMarker(HellionStrings.Tabs_NotificationSound_Description);
if (tab.EnableNotificationSound)
{
using var indent = ImRaii.PushIndent(10.0f);
var soundPreview = $"{HellionStrings.Tabs_NotificationSound_Option} {tab.NotificationSoundId}";
using var combo = ImRaii.Combo($"##notif-sound-{i}", soundPreview);
if (combo.Success)
{
for (uint s = 1; s <= 16; s++)
{
if (ImGui.Selectable(
$"{HellionStrings.Tabs_NotificationSound_Option} {s}",
tab.NotificationSoundId == s))
tab.NotificationSoundId = s;
}
}
}
ImGui.Checkbox(Language.Options_Tabs_PopOut, ref tab.PopOut);
if (tab.PopOut)
{