From 2c23a88e9dcf224affa4bd4aa0d6ce45c8ddb8a2 Mon Sep 17 00:00:00 2001 From: Jon Kazama Date: Tue, 26 May 2026 19:12:02 +0200 Subject: [PATCH] chore(format): csharpier line-break GeneralTab toggle calls --- .../Ui/Components/Settings/Tabs/GeneralTab.cs | 44 ++++++++++++++++--- 1 file changed, 37 insertions(+), 7 deletions(-) diff --git a/HellionChat/Ui/Components/Settings/Tabs/GeneralTab.cs b/HellionChat/Ui/Components/Settings/Tabs/GeneralTab.cs index cbcbdbe..55af53a 100644 --- a/HellionChat/Ui/Components/Settings/Tabs/GeneralTab.cs +++ b/HellionChat/Ui/Components/Settings/Tabs/GeneralTab.cs @@ -15,21 +15,51 @@ internal sealed class GeneralTab { if (ImGui.CollapsingHeader("Behavior", ImGuiTreeNodeFlags.DefaultOpen)) { - DrawToggle("Allow window movement", () => Plugin.Config.CanMove, v => Plugin.Config.CanMove = v); - DrawToggle("Allow window resize", () => Plugin.Config.CanResize, v => Plugin.Config.CanResize = v); - DrawToggle("Reduce motion (no theme crossfade)", () => Plugin.Config.ReduceMotion, v => Plugin.Config.ReduceMotion = v); - DrawToggle("Print changelog on update", () => Plugin.Config.PrintChangelog, v => Plugin.Config.PrintChangelog = v); + DrawToggle( + "Allow window movement", + () => Plugin.Config.CanMove, + v => Plugin.Config.CanMove = v + ); + DrawToggle( + "Allow window resize", + () => Plugin.Config.CanResize, + v => Plugin.Config.CanResize = v + ); + DrawToggle( + "Reduce motion (no theme crossfade)", + () => Plugin.Config.ReduceMotion, + v => Plugin.Config.ReduceMotion = v + ); + DrawToggle( + "Print changelog on update", + () => Plugin.Config.PrintChangelog, + v => Plugin.Config.PrintChangelog = v + ); } if (ImGui.CollapsingHeader("Notifications", ImGuiTreeNodeFlags.DefaultOpen)) { - DrawToggle("Show novice network", () => Plugin.Config.ShowNoviceNetwork, v => Plugin.Config.ShowNoviceNetwork = v); - DrawToggle("Enable auto-tell tabs", () => Plugin.Config.EnableAutoTellTabs, v => Plugin.Config.EnableAutoTellTabs = v); + DrawToggle( + "Show novice network", + () => Plugin.Config.ShowNoviceNetwork, + v => Plugin.Config.ShowNoviceNetwork = v + ); + DrawToggle( + "Enable auto-tell tabs", + () => Plugin.Config.EnableAutoTellTabs, + v => Plugin.Config.EnableAutoTellTabs = v + ); } if (ImGui.CollapsingHeader("Volumes", ImGuiTreeNodeFlags.DefaultOpen)) { - DrawSlider("Custom sound volume", () => Plugin.Config.CustomSoundVolume, v => Plugin.Config.CustomSoundVolume = v, 0f, 1f); + DrawSlider( + "Custom sound volume", + () => Plugin.Config.CustomSoundVolume, + v => Plugin.Config.CustomSoundVolume = v, + 0f, + 1f + ); } }