Skip to content

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

ui: brand sidebar with version, amber bottle header, launcher tiles with icons; refresh marketing screenshot

Gauthier Piarrettebd565fc1d3f2
diff --git a/.github/assets/app.png b/.github/assets/app.png
index 1156e8c..81958c9 100644
Binary files a/.github/assets/app.png and b/.github/assets/app.png differ
diff --git a/Sources/HighballApp/BottleView.swift b/Sources/HighballApp/BottleView.swift
index a7fc306..6607d4b 100644
--- a/Sources/HighballApp/BottleView.swift
+++ b/Sources/HighballApp/BottleView.swift
@@ -5,6 +5,12 @@ struct BottleView: View {
@Environment(AppState.self) private var state
let bottle: Bottle
+ static let launcherSymbols: [String: String] = [
+ "steam": "gamecontroller.fill", "epic-games": "e.circle.fill", "battle-net": "shield.fill",
+ "gog-galaxy": "g.circle.fill", "ea-app": "e.square.fill", "ubisoft-connect": "u.circle.fill",
+ "rockstar": "r.circle.fill",
+ ]
+
private var engine: InstalledEngine? { state.engine(for: bottle) }
private var d3dmetalAvailable: Bool { engine?.rendererDir("d3dmetal") != nil }
private var d3dmetalPossible: Bool {
@@ -48,14 +54,27 @@ struct BottleView: View {
}
}
Section(L("Install a launcher")) {
- HStack(spacing: 8) {
+ LazyVGrid(columns: [GridItem(.adaptive(minimum: 118), spacing: 10)], spacing: 10) {
ForEach(AppState.launcherRecipes.filter { id in !bottle.settings.recipes.contains(id) }, id: \.self) { id in
if let recipe = AppState.recipe(id) {
- Button(recipe.title) { state.applyRecipe(id, to: bottle) }
- .disabled(state.busy)
+ Button {
+ state.applyRecipe(id, to: bottle)
+ } label: {
+ VStack(spacing: 6) {
+ Image(systemName: Self.launcherSymbols[id] ?? "shippingbox.fill")
+ .font(.title2).foregroundStyle(.tint)
+ Text(recipe.title).font(.caption).lineLimit(1)
+ }
+ .frame(maxWidth: .infinity).padding(.vertical, 10)
+ }
+ .buttonStyle(.plain)
+ .background(RoundedRectangle(cornerRadius: 9).fill(.background.secondary))
+ .overlay(RoundedRectangle(cornerRadius: 9).stroke(.separator.opacity(0.5)))
+ .disabled(state.busy)
}
}
}
+ .padding(.vertical, 4)
Text(L("Kernel anti-cheat titles (Valorant, Fortnite, Destiny 2…) can’t work through Wine — check the compatibility database before big downloads."))
.font(.caption).foregroundStyle(.secondary)
}
@@ -111,15 +130,27 @@ struct BottleView: View {
private var header: some View {
HStack(spacing: 14) {
- Image(systemName: "wineglass.fill").font(.largeTitle).foregroundStyle(.tint)
- VStack(alignment: .leading, spacing: 2) {
- Text(bottle.name).font(.title2.bold())
- Text(engine?.displayName ?? bottle.settings.engineID)
- .font(.caption).foregroundStyle(.secondary)
+ ZStack {
+ RoundedRectangle(cornerRadius: 12)
+ .fill(LinearGradient(colors: [Color(red: 0.85, green: 0.60, blue: 0.27), Color(red: 0.65, green: 0.41, blue: 0.11)],
+ startPoint: .top, endPoint: .bottom))
+ .frame(width: 52, height: 52)
+ .shadow(color: Color(red: 0.85, green: 0.60, blue: 0.27).opacity(0.35), radius: 8, y: 3)
+ Image(systemName: "wineglass.fill").font(.title2).foregroundStyle(.white)
+ }
+ VStack(alignment: .leading, spacing: 3) {
+ Text(bottle.name).font(.system(.title2, design: .rounded).bold())
+ HStack(spacing: 6) {
+ Text(engine?.displayName ?? bottle.settings.engineID)
+ Text("·")
+ Text(bottle.settings.renderer.rawValue.uppercased()).font(.caption.monospaced())
+ }
+ .font(.caption).foregroundStyle(.secondary)
}
Spacer()
Button(L("Open C: drive")) { NSWorkspace.shared.open(bottle.driveC) }
}
+ .padding(.vertical, 4)
}
@ViewBuilder private var settings: some View {
diff --git a/Sources/HighballApp/HighballApp.swift b/Sources/HighballApp/HighballApp.swift
index fa62089..ee79c9c 100644
--- a/Sources/HighballApp/HighballApp.swift
+++ b/Sources/HighballApp/HighballApp.swift
@@ -77,6 +77,19 @@ struct ContentView: View {
} else {
NavigationSplitView {
List(selection: $state.selectedBottle) {
+ Section {
+ HStack(spacing: 9) {
+ if let url = Bundle.main.url(forResource: "AppIcon", withExtension: "png"), let img = NSImage(contentsOf: url) {
+ Image(nsImage: img).resizable().frame(width: 34, height: 34)
+ }
+ VStack(alignment: .leading, spacing: 0) {
+ Text("Highball").font(.system(size: 16, weight: .heavy, design: .rounded))
+ Text("v\(Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "dev")")
+ .font(.caption2.monospaced()).foregroundStyle(.tertiary)
+ }
+ }
+ .padding(.vertical, 2)
+ }
Section(L("Bottles")) {
ForEach(state.bottles, id: \.name) { bottle in
Label(bottle.name, systemImage: "wineglass")
diff --git a/docs/app.png b/docs/app.png
index 1156e8c..81958c9 100644
Binary files a/docs/app.png and b/docs/app.png differ