Skip to content

Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.

Launcher: keep the Dock progress bar inside the icon body

v0lumehi9056f69f7ce0
diff --git a/frontend/Sources/NSPortBuilder/DockProgress.swift b/frontend/Sources/NSPortBuilder/DockProgress.swift
index 66489e92..405549c2 100644
--- a/frontend/Sources/NSPortBuilder/DockProgress.swift
+++ b/frontend/Sources/NSPortBuilder/DockProgress.swift
@@ -19,8 +19,8 @@ enum DockProgress {
iconView.imageScaling = .scaleProportionallyUpOrDown
tile.addSubview(iconView)
- let inset = size * 0.1
- let bar = NSProgressIndicator(frame: NSRect(x: inset, y: size * 0.08, width: size - 2 * inset, height: 14))
+ let inset = size * 0.18
+ let bar = NSProgressIndicator(frame: NSRect(x: inset, y: size * 0.17, width: size - 2 * inset, height: 14))
bar.style = .bar
bar.isIndeterminate = false
bar.minValue = 0