Skip to content

Run Windows games on Apple Silicon — free, open source, with an open compatibility database that tells you what actually works.

ui: humanized engine names, game-card hover/prominence, empty states, real icon in onboarding, sidebar engine label

Gauthier Piarrette8782aee2ea34
diff --git a/Sources/HighballApp/BottleView.swift b/Sources/HighballApp/BottleView.swift
index edc118b..a7fc306 100644
--- a/Sources/HighballApp/BottleView.swift
+++ b/Sources/HighballApp/BottleView.swift
@@ -89,6 +89,12 @@ struct BottleView: View {
@ViewBuilder private var gamesSection: some View {
let games = state.gamesByBottle[bottle.name] ?? []
+ if games.isEmpty, SteamLibrary.steamRoot(of: bottle) != nil {
+ Section(L("Games")) {
+ Label(L("Your Steam library will appear here — install games inside Steam and they show up with compatibility verdicts."), systemImage: "square.grid.2x2")
+ .foregroundStyle(.secondary).font(.callout)
+ }
+ }
if !games.isEmpty {
Section(L("Games")) {
LazyVGrid(columns: [GridItem(.adaptive(minimum: 210), spacing: 12)], spacing: 12) {
@@ -108,7 +114,8 @@ struct BottleView: View {
Image(systemName: "wineglass.fill").font(.largeTitle).foregroundStyle(.tint)
VStack(alignment: .leading, spacing: 2) {
Text(bottle.name).font(.title2.bold())
- Text("engine \(bottle.settings.engineID)").font(.caption).foregroundStyle(.secondary)
+ Text(engine?.displayName ?? bottle.settings.engineID)
+ .font(.caption).foregroundStyle(.secondary)
}
Spacer()
Button(L("Open C: drive")) { NSWorkspace.shared.open(bottle.driveC) }
@@ -173,6 +180,7 @@ struct GameCard: View {
let entry: GameDBEntry?
let busy: Bool
let play: () -> Void
+ @State private var hovering = false
private var statusLabel: (String, Color)? {
switch entry?.status {
@@ -196,8 +204,8 @@ struct GameCard: View {
}
}
}
- .frame(height: 96)
- .clipShape(RoundedRectangle(cornerRadius: 6))
+ .frame(height: 100)
+ .clipShape(RoundedRectangle(cornerRadius: 7))
Text(game.name).font(.callout.weight(.semibold)).lineLimit(1)
HStack {
@@ -221,8 +229,13 @@ struct GameCard: View {
.font(.caption2).foregroundStyle(.red).lineLimit(2)
}
}
- .padding(8)
- .background(RoundedRectangle(cornerRadius: 8).fill(.background.secondary))
+ .padding(10)
+ .background(RoundedRectangle(cornerRadius: 10).fill(.background.secondary))
+ .overlay(RoundedRectangle(cornerRadius: 10).stroke(.separator.opacity(0.5)))
+ .scaleEffect(hovering ? 1.015 : 1)
+ .shadow(color: .black.opacity(hovering ? 0.18 : 0.06), radius: hovering ? 8 : 3, y: 2)
+ .animation(.easeOut(duration: 0.12), value: hovering)
+ .onHover { hovering = $0 }
.help(entry?.notes ?? game.name)
}
}
@@ -243,7 +256,11 @@ struct OnboardingView: View {
var body: some View {
VStack(spacing: 18) {
- Image(systemName: "wineglass.fill").font(.system(size: 52)).foregroundStyle(.tint)
+ if let url = Bundle.main.url(forResource: "AppIcon", withExtension: "png"), let img = NSImage(contentsOf: url) {
+ Image(nsImage: img).resizable().frame(width: 96, height: 96)
+ } else {
+ Image(systemName: "wineglass.fill").font(.system(size: 52)).foregroundStyle(.tint)
+ }
Text("Highball").font(.system(size: 34, weight: .heavy, design: .rounded))
Text(L("Run Windows games on your Mac. Highball downloads a verified Wine engine (~500 MB) from public upstream releases — nothing is hosted by Highball itself."))
.multilineTextAlignment(.center).frame(maxWidth: 440).foregroundStyle(.secondary)
diff --git a/Sources/HighballApp/L10n.swift b/Sources/HighballApp/L10n.swift
index b73df23..1c1f033 100644
--- a/Sources/HighballApp/L10n.swift
+++ b/Sources/HighballApp/L10n.swift
@@ -86,6 +86,9 @@ enum L10n {
"Check for Updates…": "Rechercher les mises à jour…",
+ "Your Steam library will appear here — install games inside Steam and they show up with compatibility verdicts.":
+ "Votre bibliothèque Steam apparaîtra ici — installez des jeux dans Steam et ils s’afficheront avec leur verdict de compatibilité.",
+
// Status pills
"Verified": "Vérifié",
"Reported": "Signalé",
diff --git a/Sources/HighballKit/EngineStore.swift b/Sources/HighballKit/EngineStore.swift
index 3e23edf..164ace9 100644
--- a/Sources/HighballKit/EngineStore.swift
+++ b/Sources/HighballKit/EngineStore.swift
@@ -191,6 +191,10 @@ public struct InstalledEngine: Sendable {
public let root: URL
public var id: String { manifest.id }
+ /// Short human name for UI ("Wine 10.0 (Sikarugir)" beats a manifest id).
+ public var displayName: String {
+ manifest.components["wine"]?.version ?? manifest.displayName
+ }
public var engineDir: URL { root.appending(path: "engine", directoryHint: .isDirectory) }
public var frameworksDir: URL { root.appending(path: "frameworks", directoryHint: .isDirectory) }
public var renderersDir: URL { root.appending(path: "renderers", directoryHint: .isDirectory) }