From 0ab85cf83880c91b899726e2fbe09e6f285f73a9 Mon Sep 17 00:00:00 2001 From: Takayama Fumihiko Date: Thu, 23 Jan 2025 08:53:34 +0900 Subject: [PATCH] Update SettingsActionView layout --- .../Views/Settings/SettingsActionView.swift | 44 ++++++++----------- 1 file changed, 18 insertions(+), 26 deletions(-) diff --git a/src/ShowyEdge/swift/Views/Settings/SettingsActionView.swift b/src/ShowyEdge/swift/Views/Settings/SettingsActionView.swift index ff8c8af..de5eb85 100644 --- a/src/ShowyEdge/swift/Views/Settings/SettingsActionView.swift +++ b/src/ShowyEdge/swift/Views/Settings/SettingsActionView.swift @@ -5,33 +5,25 @@ struct SettingsActionView: View { VStack(alignment: .leading, spacing: 25.0) { GroupBox(label: Text("Action")) { VStack(alignment: .leading, spacing: 16) { - HStack { - Button( - action: { - Relauncher.relaunch() - }, - label: { - Label("Restart ShowyEdge", systemImage: "arrow.clockwise") - }) + Button( + action: { + Relauncher.relaunch() + }, + label: { + Label("Restart ShowyEdge", systemImage: "arrow.clockwise") + }) - Spacer() - } - - HStack { - Button( - action: { - NSApplication.shared.terminate(self) - }, - label: { - Label("Quit ShowyEdge", systemImage: "xmark.circle.fill") - }) - - Spacer() - } - }.padding() + Button( + action: { + NSApplication.shared.terminate(self) + }, + label: { + Label("Quit ShowyEdge", systemImage: "xmark") + }) + } + .padding() + .frame(maxWidth: .infinity, alignment: .leading) } - - Spacer() - }.padding() + } } }