From 22008aeabc8bdfe6e136550092566c025fcedc2c Mon Sep 17 00:00:00 2001 From: Thomas <31560900+0xtlt@users.noreply.github.com> Date: Wed, 4 Jan 2023 18:42:17 +0100 Subject: [PATCH] Center the Post Button Closes: #245 Changelog-Changed: Center the Post Button --- damus/Views/PostButton.swift | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/damus/Views/PostButton.swift b/damus/Views/PostButton.swift index 90462061..7bce3f5f 100644 --- 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]) }