diff --git a/phpmon/Assets.xcassets/php.imageset/Contents.json b/phpmon/Assets.xcassets/php.imageset/Contents.json new file mode 100644 index 0000000..1ba463b --- /dev/null +++ b/phpmon/Assets.xcassets/php.imageset/Contents.json @@ -0,0 +1,25 @@ +{ + "images" : [ + { + "filename" : "php.svg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + }, + "properties" : { + "preserves-vector-representation" : true, + "template-rendering-intent" : "template" + } +} diff --git a/phpmon/Assets.xcassets/php.imageset/php.svg b/phpmon/Assets.xcassets/php.imageset/php.svg new file mode 100644 index 0000000..0765908 --- /dev/null +++ b/phpmon/Assets.xcassets/php.imageset/php.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/phpmon/Domain/SwiftUI/Common/CustomButtonStyles.swift b/phpmon/Domain/SwiftUI/Common/CustomButtonStyles.swift index 2ac96e8..0180284 100644 --- a/phpmon/Domain/SwiftUI/Common/CustomButtonStyles.swift +++ b/phpmon/Domain/SwiftUI/Common/CustomButtonStyles.swift @@ -13,7 +13,7 @@ public struct CustomButtonStyle: ButtonStyle { public func makeBody(configuration: Self.Configuration) -> some View { configuration.label - .padding(12) + .padding(8) .foregroundStyle(.white) .background(.statusColorBlue, in: .rect(cornerRadius: 8, style: .continuous)) .opacity({ diff --git a/phpmon/Modules/PHP Version Manager/UI/PhpVersionManagerView.swift b/phpmon/Modules/PHP Version Manager/UI/PhpVersionManagerView.swift index 5e29f3e..15e4c81 100644 --- a/phpmon/Modules/PHP Version Manager/UI/PhpVersionManagerView.swift +++ b/phpmon/Modules/PHP Version Manager/UI/PhpVersionManagerView.swift @@ -97,7 +97,7 @@ struct PhpVersionManagerView: View { Divider() if self.hasUpdates { - hasUpdatesView.padding(.horizontal, 15) + hasUpdatesView } else { noUpdatesView } @@ -143,9 +143,9 @@ struct PhpVersionManagerView: View { private var header: some View { HStack(alignment: .center, spacing: 15) { - Image(systemName: "arrow.down.to.line.circle.fill") + Image.init(.php) .resizable() - .frame(width: 40, height: 40) + .frame(width: 50, height: 50) .foregroundColor(Color.blue) .padding(12) VStack(alignment: .leading, spacing: 5) {