mirror of
https://github.com/neon443/NearFuture.git
synced 2026-03-11 14:56:15 +00:00
asset catalog: add mac &watchos icons
This commit is contained in:
@@ -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") {
|
||||||
|
|||||||
@@ -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" : {
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 52 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 231 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.3 KiB |
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user