Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
struct AquaWindowControlsView: View {
let title: String
var body: some View {
HStack {
Group {
Button(""){}
.buttonStyle(AquaCircularButtonStyle())
.foregroundColor(.aquaRed)
Button(""){}
.buttonStyle(AquaCircularButtonStyle())
.foregroundColor(.aquaYellow)
Button(""){}
.buttonStyle(AquaCircularButtonStyle())
.foregroundColor(.aquaGreen)
Text(title)
.font(.caption2)
.foregroundColor(.black)
.frame(maxWidth: .infinity, alignment: .center)
Button("") {}
.frame(width: 30)
.foregroundColor(.aquaGray)
.buttonStyle(AquaButtonStyle())
}
.frame(height: 15)
}
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topLeading)
.padding(.leading, 5)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment