fix: Update menu bar icon to use AppIcon
This commit is contained in:
parent
a93dbe8234
commit
d7c23f91d0
@ -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;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "Frame 1.png",
|
||||
"filename" : "menuBarIcon.png",
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 7.7 KiB |
BIN
VoiceInk/Assets.xcassets/menuBarIcon.imageset/menuBarIcon.png
vendored
Normal file
BIN
VoiceInk/Assets.xcassets/menuBarIcon.imageset/menuBarIcon.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
25
VoiceInk/Views/Common/AppIconView.swift
Normal file
25
VoiceInk/Views/Common/AppIconView.swift
Normal 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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -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) {
|
||||
|
||||
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -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")
|
||||
|
||||
@ -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")
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user