Skip to content

Commit

Permalink
Update SettingsActionView layout
Browse files Browse the repository at this point in the history
  • Loading branch information
tekezo committed Jan 22, 2025
1 parent 5e7db02 commit 0ab85cf
Showing 1 changed file with 18 additions and 26 deletions.
44 changes: 18 additions & 26 deletions src/ShowyEdge/swift/Views/Settings/SettingsActionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
}

0 comments on commit 0ab85cf

Please sign in to comment.