fix: Update menu bar icon to use AppIcon

This commit is contained in:
Beingpax 2025-06-07 17:24:05 +05:45
parent a93dbe8234
commit d7c23f91d0
10 changed files with 34 additions and 68 deletions

View File

@ -448,7 +448,7 @@
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES; COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 130; CURRENT_PROJECT_VERSION = 132;
DEVELOPMENT_ASSET_PATHS = "\"VoiceInk/Preview Content\""; DEVELOPMENT_ASSET_PATHS = "\"VoiceInk/Preview Content\"";
DEVELOPMENT_TEAM = V6J6A3VWY2; DEVELOPMENT_TEAM = V6J6A3VWY2;
ENABLE_HARDENED_RUNTIME = YES; ENABLE_HARDENED_RUNTIME = YES;
@ -463,7 +463,7 @@
"@executable_path/../Frameworks", "@executable_path/../Frameworks",
); );
MACOSX_DEPLOYMENT_TARGET = 14.0; MACOSX_DEPLOYMENT_TARGET = 14.0;
MARKETING_VERSION = 1.30; MARKETING_VERSION = 1.32;
PRODUCT_BUNDLE_IDENTIFIER = com.prakashjoshipax.VoiceInk; PRODUCT_BUNDLE_IDENTIFIER = com.prakashjoshipax.VoiceInk;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_EMIT_LOC_STRINGS = YES;
@ -481,7 +481,7 @@
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES; COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 130; CURRENT_PROJECT_VERSION = 132;
DEVELOPMENT_ASSET_PATHS = "\"VoiceInk/Preview Content\""; DEVELOPMENT_ASSET_PATHS = "\"VoiceInk/Preview Content\"";
DEVELOPMENT_TEAM = V6J6A3VWY2; DEVELOPMENT_TEAM = V6J6A3VWY2;
ENABLE_HARDENED_RUNTIME = YES; ENABLE_HARDENED_RUNTIME = YES;
@ -496,7 +496,7 @@
"@executable_path/../Frameworks", "@executable_path/../Frameworks",
); );
MACOSX_DEPLOYMENT_TARGET = 14.0; MACOSX_DEPLOYMENT_TARGET = 14.0;
MARKETING_VERSION = 1.30; MARKETING_VERSION = 1.32;
PRODUCT_BUNDLE_IDENTIFIER = com.prakashjoshipax.VoiceInk; PRODUCT_BUNDLE_IDENTIFIER = com.prakashjoshipax.VoiceInk;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_EMIT_LOC_STRINGS = YES;

View File

@ -1,7 +1,7 @@
{ {
"images" : [ "images" : [
{ {
"filename" : "Frame 1.png", "filename" : "menuBarIcon.png",
"idiom" : "universal" "idiom" : "universal"
} }
], ],

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -0,0 +1,25 @@
import SwiftUI
struct AppIconView: View {
var body: some View {
ZStack {
Circle()
.fill(Color.accentColor.opacity(0.15))
.frame(width: 160, height: 160)
.blur(radius: 30)
if let image = NSImage(named: "AppIcon") {
Image(nsImage: image)
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: 120, height: 120)
.cornerRadius(30)
.overlay(
RoundedRectangle(cornerRadius: 30)
.stroke(.white.opacity(0.2), lineWidth: 1)
)
.shadow(color: .accentColor.opacity(0.3), radius: 20)
}
}
}
}

View File

@ -28,14 +28,7 @@ struct LicenseManagementView: View {
private var heroSection: some View { private var heroSection: some View {
VStack(spacing: 24) { VStack(spacing: 24) {
// App Icon // App Icon
if let appIcon = NSImage(named: "AppIcon") { AppIconView()
Image(nsImage: appIcon)
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: 96, height: 96)
.cornerRadius(24)
.shadow(color: .black.opacity(0.1), radius: 20, x: 0, y: 10)
}
// Title Section // Title Section
VStack(spacing: 16) { VStack(spacing: 16) {

View File

@ -1,30 +0,0 @@
import SwiftUI
struct AppIconView: View {
var size: CGFloat
var cornerRadius: CGFloat
var body: some View {
Group {
if let appIcon = NSImage(named: NSImage.applicationIconName) {
Image(nsImage: appIcon)
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: size, height: size)
.clipShape(RoundedRectangle(cornerRadius: cornerRadius))
.overlay(
RoundedRectangle(cornerRadius: cornerRadius)
.stroke(.linearGradient(
colors: [
Color.white.opacity(0.5),
Color.white.opacity(0.1)
],
startPoint: .topLeading,
endPoint: .bottomTrailing
), lineWidth: 1)
)
.shadow(color: Color.black.opacity(0.1), radius: 10, y: 5)
}
}
}
}

View File

@ -12,7 +12,7 @@ struct MetricsSetupView: View {
VStack(spacing: geometry.size.height * 0.05) { VStack(spacing: geometry.size.height * 0.05) {
// Header // Header
VStack(spacing: geometry.size.height * 0.02) { VStack(spacing: geometry.size.height * 0.02) {
AppIconView(size: min(90, geometry.size.width * 0.15), cornerRadius: 22) AppIconView()
VStack(spacing: geometry.size.height * 0.01) { VStack(spacing: geometry.size.height * 0.01) {
Text("Welcome to VoiceInk") Text("Welcome to VoiceInk")

View File

@ -29,33 +29,11 @@ struct RecordView: View {
private var heroSection: some View { private var heroSection: some View {
VStack(spacing: 20) { VStack(spacing: 20) {
appIconView AppIconView()
titleSection titleSection
} }
} }
private var appIconView: some View {
ZStack {
Circle()
.fill(Color.accentColor.opacity(0.15))
.frame(width: 160, height: 160)
.blur(radius: 30)
if let image = NSImage(named: "AppIcon") {
Image(nsImage: image)
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: 120, height: 120)
.cornerRadius(30)
.overlay(
RoundedRectangle(cornerRadius: 30)
.stroke(.white.opacity(0.2), lineWidth: 1)
)
.shadow(color: .accentColor.opacity(0.3), radius: 20)
}
}
}
private var titleSection: some View { private var titleSection: some View {
VStack(spacing: 8) { VStack(spacing: 8) {
Text("VOICEINK") Text("VOICEINK")

View File

@ -145,7 +145,7 @@ struct VoiceInkApp: App {
$0.size.height = 22 $0.size.height = 22
$0.size.width = 22 / ratio $0.size.width = 22 / ratio
return $0 return $0
}(NSImage(named: "menuBarIcon")!) }(NSImage(named: "AppIcon")!)
Image(nsImage: image) Image(nsImage: image)
} }