From c6e4f785bc0343e5d0e5bdf542cebee4446836af Mon Sep 17 00:00:00 2001 From: Nico Verbruggen Date: Fri, 15 Mar 2024 23:33:13 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=B1=20Use=20PHP=20icon=20for=20phpman?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../php.imageset/Contents.json | 25 +++++++++++++++++++ phpmon/Assets.xcassets/php.imageset/php.svg | 1 + .../SwiftUI/Common/CustomButtonStyles.swift | 2 +- .../UI/PhpVersionManagerView.swift | 6 ++--- 4 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 phpmon/Assets.xcassets/php.imageset/Contents.json create mode 100644 phpmon/Assets.xcassets/php.imageset/php.svg 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) {