mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-28 05:24:44 +00:00
pretty button
This commit is contained in:
@@ -9,6 +9,20 @@
|
||||
import SwiftUI
|
||||
import SimpleXChat
|
||||
|
||||
struct OnboardingButtonStyle: ButtonStyle {
|
||||
func makeBody(configuration: Configuration) -> some View {
|
||||
configuration.label
|
||||
.font(.system(size: 17, weight: .semibold))
|
||||
.padding()
|
||||
.frame(maxWidth: .infinity) // Makes button stretch horizontally
|
||||
.background(Color.blue) // Apple blue color
|
||||
.foregroundColor(.white) // White text color
|
||||
.cornerRadius(10) // Rounded corners
|
||||
.scaleEffect(configuration.isPressed ? 0.95 : 1.0) // Slight scale effect on press
|
||||
.shadow(color: Color.black.opacity(0.2), radius: 4, x: 0, y: 2) // Subtle shadow
|
||||
}
|
||||
}
|
||||
|
||||
struct ChooseServerOperators: View {
|
||||
@EnvironmentObject var theme: AppTheme
|
||||
@State private var showInfoSheet = false
|
||||
@@ -168,7 +182,7 @@ struct ChooseServerOperators: View {
|
||||
} label: {
|
||||
Text("Review conditions")
|
||||
}
|
||||
.buttonStyle(.borderedProminent)
|
||||
.buttonStyle(OnboardingButtonStyle())
|
||||
|
||||
Spacer()
|
||||
}
|
||||
|
||||
@@ -343,7 +343,7 @@ struct SingleOperatorUsageConditionsView: View {
|
||||
} label: {
|
||||
Text("Accept conditions")
|
||||
}
|
||||
.buttonStyle(.borderedProminent)
|
||||
.buttonStyle(OnboardingButtonStyle())
|
||||
|
||||
Spacer()
|
||||
}
|
||||
@@ -411,7 +411,7 @@ struct UsageConditionsView: View {
|
||||
} label: {
|
||||
Text("Accept conditions")
|
||||
}
|
||||
.buttonStyle(.borderedProminent)
|
||||
.buttonStyle(OnboardingButtonStyle())
|
||||
|
||||
Spacer()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user