committed by
William Casarin
parent
cd62418dda
commit
d0eb632ce6
@@ -14,20 +14,22 @@ let LINEAR_GRADIENT = LinearGradient(gradient: Gradient(colors: [
|
|||||||
Color("DamusBlue")
|
Color("DamusBlue")
|
||||||
]), startPoint: .topTrailing, endPoint: .bottomTrailing)
|
]), startPoint: .topTrailing, endPoint: .bottomTrailing)
|
||||||
|
|
||||||
|
|
||||||
func PostButton(action: @escaping () -> ()) -> some View {
|
func PostButton(action: @escaping () -> ()) -> some View {
|
||||||
return Button(action: action, label: {
|
return Button(action: action, label: {
|
||||||
Image(systemName: "plus")
|
ZStack(alignment: .center) {
|
||||||
.font(.system(.title2))
|
Circle()
|
||||||
.foregroundColor(Color.white)
|
.fill(LINEAR_GRADIENT)
|
||||||
.frame(width: BUTTON_SIZE, height: BUTTON_SIZE, alignment: .center)
|
.frame(width: BUTTON_SIZE, height: BUTTON_SIZE, alignment: .center)
|
||||||
.background(LINEAR_GRADIENT)
|
.rotationEffect(.degrees(20))
|
||||||
.cornerRadius(38.5)
|
.padding()
|
||||||
.padding()
|
.shadow(color: Color.black.opacity(0.3),
|
||||||
.shadow(color: Color.black.opacity(0.3),
|
radius: 3,
|
||||||
radius: 3,
|
x: 3,
|
||||||
x: 3,
|
y: 3)
|
||||||
y: 3)
|
Image(systemName: "plus")
|
||||||
|
.font(.system(.title2))
|
||||||
|
.foregroundColor(Color.white)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.keyboardShortcut("n", modifiers: [.command, .shift])
|
.keyboardShortcut("n", modifiers: [.command, .shift])
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user