diff --git a/VoiceInk.xcodeproj/project.pbxproj b/VoiceInk.xcodeproj/project.pbxproj index b4edee4..83048c8 100644 --- a/VoiceInk.xcodeproj/project.pbxproj +++ b/VoiceInk.xcodeproj/project.pbxproj @@ -448,7 +448,7 @@ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 130; + CURRENT_PROJECT_VERSION = 132; DEVELOPMENT_ASSET_PATHS = "\"VoiceInk/Preview Content\""; DEVELOPMENT_TEAM = V6J6A3VWY2; ENABLE_HARDENED_RUNTIME = YES; @@ -463,7 +463,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 14.0; - MARKETING_VERSION = 1.30; + MARKETING_VERSION = 1.32; PRODUCT_BUNDLE_IDENTIFIER = com.prakashjoshipax.VoiceInk; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; @@ -481,7 +481,7 @@ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 130; + CURRENT_PROJECT_VERSION = 132; DEVELOPMENT_ASSET_PATHS = "\"VoiceInk/Preview Content\""; DEVELOPMENT_TEAM = V6J6A3VWY2; ENABLE_HARDENED_RUNTIME = YES; @@ -496,7 +496,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 14.0; - MARKETING_VERSION = 1.30; + MARKETING_VERSION = 1.32; PRODUCT_BUNDLE_IDENTIFIER = com.prakashjoshipax.VoiceInk; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; diff --git a/VoiceInk/Assets.xcassets/menuBarIcon.imageset/Contents.json b/VoiceInk/Assets.xcassets/menuBarIcon.imageset/Contents.json index 1753478..f96d6f8 100644 --- a/VoiceInk/Assets.xcassets/menuBarIcon.imageset/Contents.json +++ b/VoiceInk/Assets.xcassets/menuBarIcon.imageset/Contents.json @@ -1,7 +1,7 @@ { "images" : [ { - "filename" : "Frame 1.png", + "filename" : "menuBarIcon.png", "idiom" : "universal" } ], diff --git a/VoiceInk/Assets.xcassets/menuBarIcon.imageset/Frame 1.png b/VoiceInk/Assets.xcassets/menuBarIcon.imageset/Frame 1.png deleted file mode 100644 index bbd29be..0000000 Binary files a/VoiceInk/Assets.xcassets/menuBarIcon.imageset/Frame 1.png and /dev/null differ diff --git a/VoiceInk/Assets.xcassets/menuBarIcon.imageset/menuBarIcon.png b/VoiceInk/Assets.xcassets/menuBarIcon.imageset/menuBarIcon.png new file mode 100644 index 0000000..fd19dc0 Binary files /dev/null and b/VoiceInk/Assets.xcassets/menuBarIcon.imageset/menuBarIcon.png differ diff --git a/VoiceInk/Views/Common/AppIconView.swift b/VoiceInk/Views/Common/AppIconView.swift new file mode 100644 index 0000000..9312965 --- /dev/null +++ b/VoiceInk/Views/Common/AppIconView.swift @@ -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) + } + } + } +} \ No newline at end of file diff --git a/VoiceInk/Views/LicenseManagementView.swift b/VoiceInk/Views/LicenseManagementView.swift index 17aeb31..912ff40 100644 --- a/VoiceInk/Views/LicenseManagementView.swift +++ b/VoiceInk/Views/LicenseManagementView.swift @@ -28,14 +28,7 @@ struct LicenseManagementView: View { private var heroSection: some View { VStack(spacing: 24) { // App Icon - if let appIcon = NSImage(named: "AppIcon") { - 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) - } + AppIconView() // Title Section VStack(spacing: 16) { diff --git a/VoiceInk/Views/Metrics/AppIconView.swift b/VoiceInk/Views/Metrics/AppIconView.swift deleted file mode 100644 index 484ea2c..0000000 --- a/VoiceInk/Views/Metrics/AppIconView.swift +++ /dev/null @@ -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) - } - } - } -} \ No newline at end of file diff --git a/VoiceInk/Views/Metrics/MetricsSetupView.swift b/VoiceInk/Views/Metrics/MetricsSetupView.swift index 715b20d..4eed1bd 100644 --- a/VoiceInk/Views/Metrics/MetricsSetupView.swift +++ b/VoiceInk/Views/Metrics/MetricsSetupView.swift @@ -12,7 +12,7 @@ struct MetricsSetupView: View { VStack(spacing: geometry.size.height * 0.05) { // Header 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) { Text("Welcome to VoiceInk") diff --git a/VoiceInk/Views/RecordView.swift b/VoiceInk/Views/RecordView.swift index a4a7412..3a9c106 100644 --- a/VoiceInk/Views/RecordView.swift +++ b/VoiceInk/Views/RecordView.swift @@ -29,33 +29,11 @@ struct RecordView: View { private var heroSection: some View { VStack(spacing: 20) { - appIconView + AppIconView() 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 { VStack(spacing: 8) { Text("VOICEINK") diff --git a/VoiceInk/VoiceInk.swift b/VoiceInk/VoiceInk.swift index 8028332..7b9a206 100644 --- a/VoiceInk/VoiceInk.swift +++ b/VoiceInk/VoiceInk.swift @@ -145,7 +145,7 @@ struct VoiceInkApp: App { $0.size.height = 22 $0.size.width = 22 / ratio return $0 - }(NSImage(named: "menuBarIcon")!) + }(NSImage(named: "AppIcon")!) Image(nsImage: image) }