From c39d953053057ef770616ba441552f7a069c5c13 Mon Sep 17 00:00:00 2001 From: Kai Azim <68963405+MrKai77@users.noreply.github.com> Date: Fri, 27 Oct 2023 19:41:34 -0600 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Center=20menubar=20icon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../menubarIcon.imageset/Contents.json | 25 ++++++++++++++++++ .../menubarIcon.imageset/menubarIconx2.png | Bin 0 -> 1865 bytes .../menubarIcon.imageset/menubarIconx3.png | Bin 0 -> 3511 bytes Loop/MenuBar/MenuBarIconView.swift | 9 +++---- 4 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 Loop/Assets.xcassets/menubarIcon.imageset/Contents.json create mode 100644 Loop/Assets.xcassets/menubarIcon.imageset/menubarIconx2.png create mode 100644 Loop/Assets.xcassets/menubarIcon.imageset/menubarIconx3.png diff --git a/Loop/Assets.xcassets/menubarIcon.imageset/Contents.json b/Loop/Assets.xcassets/menubarIcon.imageset/Contents.json new file mode 100644 index 00000000..ebaec240 --- /dev/null +++ b/Loop/Assets.xcassets/menubarIcon.imageset/Contents.json @@ -0,0 +1,25 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "menubarIconx2.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "menubarIconx3.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + }, + "properties" : { + "template-rendering-intent" : "template" + } +} \ No newline at end of file diff --git a/Loop/Assets.xcassets/menubarIcon.imageset/menubarIconx2.png b/Loop/Assets.xcassets/menubarIcon.imageset/menubarIconx2.png new file mode 100644 index 0000000000000000000000000000000000000000..59c20f9f415b80dbc2130db93717fe859e28172b GIT binary patch literal 1865 zcmYL~c{CJy8^5SZ6%OL%WsyAc2Y5csst0E$Y)Sx}W|;Yzd&48a57*9rJY0z4QSh`kjU3P*>N z!a~Baz65w6E<8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View.swift +++ b/Loop/MenuBar/MenuBarIconView.swift @@ -10,11 +10,10 @@ import SwiftUI struct MenuBarIconView: View { @State var rotationAngle: Double = 0.0 var body: some View { - Image("loop") - .resizable() - .scaledToFit() - .frame(width: 16, height: 16) - .fontWeight(.light) + // We don't use the symbol since it is *ever so slightly* off center. This is not a + // problem with only Loop's symbol symbol, but the circle.circle SF symbol also is slightly + // off center. Will need to investigate that later. + Image(.menubarIcon) .rotationEffect(Angle.degrees(self.rotationAngle)) .onReceive(.didLoop) { _ in self.rotationAngle = 0