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)
.commands {
NearFutureCommands()
Menu("hi") {
Button("hi") {
}
}
}
Window("About Near Future", id: "about") {

View File

@@ -31,54 +31,70 @@
"size" : "1024x1024"
},
{
"filename" : "NearFutureIcon16.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "16x16"
},
{
"filename" : "NearFutureIcon32.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "16x16"
},
{
"filename" : "NearFutureIcon32.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "32x32"
},
{
"filename" : "NearFutureIcon64.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "32x32"
},
{
"filename" : "NearFutureIcon128.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "128x128"
},
{
"filename" : "NearFutureIcon256.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "128x128"
},
{
"filename" : "NearFutureIcon256.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "256x256"
},
{
"filename" : "NearFutureIcon512.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "256x256"
},
{
"filename" : "NearFutureIcon512.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "512x512"
},
{
"filename" : "NearFutureIcon.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "512x512"
},
{
"filename" : "NearFutureIcon.png",
"idiom" : "universal",
"platform" : "watchos",
"size" : "1024x1024"
}
],
"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")
#elseif canImport(AppKit)
return (sf: "", label: "")
return (sf: "desktopcomputer", label: "Mac")
#endif
}

View File

@@ -12,10 +12,10 @@ import AppKit
#endif
struct NFSettings: Codable, Equatable {
var showCompletedInHome: Bool
var tint: ColorCodable
var showWhatsNew: Bool
var prevAppVersion: String
var showCompletedInHome: Bool = false
var tint: ColorCodable = ColorCodable(.accentColor)
var showWhatsNew: Bool = true
var prevAppVersion: String = getVersion()+getBuildID()
}
class AccentIcon {
@@ -53,21 +53,7 @@ class AccentIcon {
}
class SettingsViewModel: ObservableObject {
#if canImport(UIKit)
@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 settings: NFSettings = NFSettings()
@Published var notifsGranted: Bool = false