Skip to content

Instantly share code, notes, and snippets.

@sturdysturge
Created January 26, 2021 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sturdysturge/558bfc5ae2fcebcab854a6a7514a053a to your computer and use it in GitHub Desktop.
Save sturdysturge/558bfc5ae2fcebcab854a6a7514a053a to your computer and use it in GitHub Desktop.
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