ソースを参照

Make button prominent

(cherry picked from commit ceb34e4b1561e12610aa3200d2bca90d483f3d24)
Jon Mårtensson 2 年 前
コミット
bb0d24880e

+ 5 - 2
FreeAPS/Sources/Modules/Settings/View/SettingsRootView.swift

@@ -49,8 +49,11 @@ extension Settings {
                     Toggle("Debug options", isOn: $state.debugOptions)
                     if state.debugOptions {
                         Group {
-                            Text("NS Upload Profile and Settings").onTapGesture {
-                                state.uploadProfileAndSettings()
+                            HStack {
+                                Text("NS Upload Profile and Settings")
+                                Button("Upload") { state.uploadProfileAndSettings() }
+                                    .frame(maxWidth: .infinity, alignment: .trailing)
+                                    .buttonStyle(.borderedProminent)
                             }
                         }
                         Group {