asset catalog: add mac &watchos icons

This commit is contained in:
neon443
2025-05-28 11:31:33 +01:00
parent d1c1144ad8
commit 7236f0640e
10 changed files with 22 additions and 25 deletions

View File

@@ -43,11 +43,6 @@ struct NearFutureApp: App {
.defaultSize(width: 550, height: 650) .defaultSize(width: 550, height: 650)
.commands { .commands {
NearFutureCommands() NearFutureCommands()
Menu("hi") {
Button("hi") {
}
}
} }
Window("About Near Future", id: "about") { Window("About Near Future", id: "about") {

View File

@@ -31,54 +31,70 @@
"size" : "1024x1024" "size" : "1024x1024"
}, },
{ {
"filename" : "NearFutureIcon16.png",
"idiom" : "mac", "idiom" : "mac",
"scale" : "1x", "scale" : "1x",
"size" : "16x16" "size" : "16x16"
}, },
{ {
"filename" : "NearFutureIcon32.png",
"idiom" : "mac", "idiom" : "mac",
"scale" : "2x", "scale" : "2x",
"size" : "16x16" "size" : "16x16"
}, },
{ {
"filename" : "NearFutureIcon32.png",
"idiom" : "mac", "idiom" : "mac",
"scale" : "1x", "scale" : "1x",
"size" : "32x32" "size" : "32x32"
}, },
{ {
"filename" : "NearFutureIcon64.png",
"idiom" : "mac", "idiom" : "mac",
"scale" : "2x", "scale" : "2x",
"size" : "32x32" "size" : "32x32"
}, },
{ {
"filename" : "NearFutureIcon128.png",
"idiom" : "mac", "idiom" : "mac",
"scale" : "1x", "scale" : "1x",
"size" : "128x128" "size" : "128x128"
}, },
{ {
"filename" : "NearFutureIcon256.png",
"idiom" : "mac", "idiom" : "mac",
"scale" : "2x", "scale" : "2x",
"size" : "128x128" "size" : "128x128"
}, },
{ {
"filename" : "NearFutureIcon256.png",
"idiom" : "mac", "idiom" : "mac",
"scale" : "1x", "scale" : "1x",
"size" : "256x256" "size" : "256x256"
}, },
{ {
"filename" : "NearFutureIcon512.png",
"idiom" : "mac", "idiom" : "mac",
"scale" : "2x", "scale" : "2x",
"size" : "256x256" "size" : "256x256"
}, },
{ {
"filename" : "NearFutureIcon512.png",
"idiom" : "mac", "idiom" : "mac",
"scale" : "1x", "scale" : "1x",
"size" : "512x512" "size" : "512x512"
}, },
{ {
"filename" : "NearFutureIcon.png",
"idiom" : "mac", "idiom" : "mac",
"scale" : "2x", "scale" : "2x",
"size" : "512x512" "size" : "512x512"
},
{
"filename" : "NearFutureIcon.png",
"idiom" : "universal",
"platform" : "watchos",
"size" : "1024x1024"
} }
], ],
"info" : { "info" : {

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

@@ -526,7 +526,7 @@ func getDevice() -> (sf: String, label: String) {
return (sf: "iphone", label: "iPhone") return (sf: "iphone", label: "iPhone")
#elseif canImport(AppKit) #elseif canImport(AppKit)
return (sf: "", label: "") return (sf: "desktopcomputer", label: "Mac")
#endif #endif
} }

View File

@@ -12,10 +12,10 @@ import AppKit
#endif #endif
struct NFSettings: Codable, Equatable { struct NFSettings: Codable, Equatable {
var showCompletedInHome: Bool var showCompletedInHome: Bool = false
var tint: ColorCodable var tint: ColorCodable = ColorCodable(.accentColor)
var showWhatsNew: Bool var showWhatsNew: Bool = true
var prevAppVersion: String var prevAppVersion: String = getVersion()+getBuildID()
} }
class AccentIcon { class AccentIcon {
@@ -53,21 +53,7 @@ class AccentIcon {
} }
class SettingsViewModel: ObservableObject { class SettingsViewModel: ObservableObject {
#if canImport(UIKit) @Published var settings: NFSettings = NFSettings()
@Published var settings: NFSettings = NFSettings(
showCompletedInHome: false,
tint: ColorCodable(uiColor: UIColor(named: "AccentColor")!),
showWhatsNew: true,
prevAppVersion: getVersion()+getBuildID()
)
#elseif canImport(AppKit)
@Published var settings: NFSettings = NFSettings(
showCompletedInHome: false,
tint: ColorCodable(nsColor: NSColor(named: "AccentColor")!),
showWhatsNew: true,
prevAppVersion: getVersion()+getBuildID()
)
#endif
@Published var notifsGranted: Bool = false @Published var notifsGranted: Bool = false