Browse Source

Center the Post Button

Closes: #245
Changelog-Changed: Center the Post Button
translations_damus-localizations-en-us-xcloc-localized-contents-en-us-xliff--master_es_419
Thomas 2 years ago
committed by William Casarin
parent
commit
22008aeabc
  1. 21
      damus/Views/PostButton.swift

21
damus/Views/PostButton.swift

@ -10,19 +10,18 @@ import SwiftUI
func PostButton(action: @escaping () -> ()) -> some View {
return Button(action: action, label: {
Text("+")
.font(.system(.largeTitle))
.frame(width: 57, height: 50)
Image(systemName: "plus")
.font(.system(.title2))
.foregroundColor(Color.white)
.padding(.bottom, 7)
.frame(width: 57, height: 57, alignment: .center)
.background(Color.accentColor)
.cornerRadius(38.5)
.padding()
.shadow(color: Color.black.opacity(0.3),
radius: 3,
x: 3,
y: 3)
})
.background(Color.accentColor)
.cornerRadius(38.5)
.padding()
.shadow(color: Color.black.opacity(0.3),
radius: 3,
x: 3,
y: 3)
.keyboardShortcut("n", modifiers: [.command, .shift])
}

Loading…
Cancel
Save