damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 22008aeabc8bdfe6e136550092566c025fcedc2c
parent 64bb28e0179123c8931d1e6443691cd15be96eff
Author: Thomas <31560900+0xtlt@users.noreply.github.com>
Date:   Wed,  4 Jan 2023 18:42:17 +0100

Center the Post Button

Closes: #245
Changelog-Changed: Center the Post Button

Diffstat:
Mdamus/Views/PostButton.swift | 21++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)

diff --git a/damus/Views/PostButton.swift b/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]) }