Skip to content

Commit

Permalink
Refactor project configuration and add asset resources: Updated Proje…
Browse files Browse the repository at this point in the history
…ct.swift to include a new Assets folder reference and corrected a comment. Introduced new asset catalog files for app icons, including various resolutions. Adjusted font size in DanceKunKunApp.swift for improved UI consistency.
  • Loading branch information
ygsgdbd committed Dec 11, 2024
1 parent 88a698d commit d9380b2
Show file tree
Hide file tree
Showing 14 changed files with 78 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"images" : [
{
"filename" : "icon_16x16.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "16x16"
},
{
"filename" : "icon_16x16@2x.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "16x16"
},
{
"filename" : "icon_32x32.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "32x32"
},
{
"filename" : "icon_32x32@2x.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "32x32"
},
{
"filename" : "icon_128x128.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "128x128"
},
{
"filename" : "icon_128x128@2x.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "128x128"
},
{
"filename" : "icon_256x256.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "256x256"
},
{
"filename" : "icon_256x256@2x.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "256x256"
},
{
"filename" : "icon_512x512.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "512x512"
},
{
"filename" : "icon_512x512@2x.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "512x512"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions DanceKunKun/Resources/Assets/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
2 changes: 1 addition & 1 deletion DanceKunKun/Sources/App/DanceKunKunApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct DanceKunKunApp: App {
class AppDelegate: NSObject, NSApplicationDelegate {
private var statusItem: NSStatusItem?
private let animationController = FontAnimationController()
private let fontSize: CGFloat = 17
private let fontSize: CGFloat = 16
private var notificationObserver: Any?
private var cancellables = Set<AnyCancellable>()

Expand Down
5 changes: 3 additions & 2 deletions Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ let project = Project(
"LSUIElement": true, // 设置为纯菜单栏应用
"CFBundleDevelopmentRegion": "zh-Hans", // 设置默认开发区域为简体中文
"CFBundleLocalizations": ["zh-Hans", "zh-Hant", "en"], // 支持的语言列表
"AppleLanguages": ["zh-Hans"] // 设置默认���言为简体中文
"AppleLanguages": ["zh-Hans"] // 设置默认语言为简体中文
]),
sources: ["DanceKunKun/Sources/**"],
resources: [
"DanceKunKun/Resources/**",
.folderReference(path: "DanceKunKun/Resources/zh-Hans.lproj"),
.folderReference(path: "DanceKunKun/Resources/zh-Hant.lproj"),
.folderReference(path: "DanceKunKun/Resources/en.lproj")
.folderReference(path: "DanceKunKun/Resources/en.lproj"),
.folderReference(path: "DanceKunKun/Assets"),
]
)
]
Expand Down

0 comments on commit d9380b2

Please sign in to comment.