Skip to content

Commit d923b15

Browse files
committed
Show paused gameplay in iOS layout editor
- Make the portrait editor top area transparent (Color.clear) so the paused Metal game view underneath is visible, providing useful context for placing controls. - Keep the bottom controller deck at black.opacity(0.85) so draggable controls and outlines remain readable against the background. - Make the landscape editor background transparent (Color.clear) so the paused game is visible behind the full-screen landscape controls. - The editor overlay still captures touches globally via contentShape, preventing accidental game input while editing.
1 parent 2af0564 commit d923b15

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

app/src/main/swift/Views/Settings/PadLayoutEditView.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ struct PadLayoutEditView: View {
7878
// MARK: - Landscape editor canvas (always shown when device is landscape)
7979
private func landscapeEditorCanvas(width: CGFloat, height: CGFloat) -> some View {
8080
ZStack {
81-
Color.black.opacity(0.4)
81+
Color.clear
8282
.allowsHitTesting(false)
8383

8484
// Subtle safe zone guide
@@ -108,14 +108,14 @@ struct PadLayoutEditView: View {
108108
let gameHeight = min(width * 3 / 4, height * 0.55)
109109
let padHeight = height - gameHeight
110110
VStack(spacing: 0) {
111-
// Top: game viewport area
112-
Color.black
111+
// Top: reveal paused gameplay underneath
112+
Color.clear
113113
.allowsHitTesting(false)
114114
.frame(height: gameHeight)
115115

116-
// Bottom: controller deck editing area
116+
// Bottom: controller deck editing area (dark enough for controls)
117117
ZStack {
118-
Color.black
118+
Color.black.opacity(0.85)
119119
customSkinPreview(isLandscape: false, width: width, height: padHeight)
120120
editorPortraitContent(areaW: width, areaH: padHeight)
121121
}

0 commit comments

Comments
 (0)