How to change the iOS Simulator "window background color" (Full Screen, Xcode 10, Mojave, Dark Mode)
Asked Answered
O

3

8

Mojave (macOS 10.14) is great.
Xcode 10.0 (10A254a) is great.
Dark Mode is great.

What is not so great, unless I'm missing something, is this ugly gray background of the iOS simulator window (when in full screen):

iOSSimulatorDarkMode

Any idea on how to change that color?

Overly answered 25/9, 2018 at 7:33 Comment(3)
Please do let me know if you ever get an answer updated for Mojave as I do want to change the same property :)Namedropping
Within the simulator device's files there is a SpringBoard folder containing LockBackgroundThumbnail.jpg & LockBackground.cpbitmap files. Despite the filenames, could it be these are also used for the background image after unlock? /Users/YourUserName/Library/Developer/CoreSimulator/Devices/TheSimulatorDeviceID/data/Library/SpringBoard/Self
Unfortunately these are irrelevant as I'm trying to change the color of the simulator window -- not the contents "inside" the simulator.Overly
U
1

If anybody still struggles with this here is somewhat a solution: toggle "Show Device Bezels" in the window menu of the simulator will do the trick. However this needs to be done each time the simulator is started....

Unreal answered 14/1, 2020 at 7:44 Comment(0)
A
0

I have the answer you seek.

Boot into recovery mode (Cmd+R while booting) and then open the Terminal.

  1. cd /Volumes/Macintosh\ HD //if your drive is named something different, replace accordingly

  2. csrutil disable //disables System Integrity Protection

  3. mkdir AppleInternal //activates testing and custom commands in Apple apps, including Simulator

  4. csrutil enable //re-enable System Integrity Protection

  5. reboot //back to regular environment

Now there's an "Internal" menu in the Simulator. In here, you can change loads of settings including the window's background color. It uses the regular OS X colour picker so you can even choose a hex code.

Antitragus answered 15/11, 2018 at 10:58 Comment(1)
Thanks for sharing this. I tried, but unfortunately the Internal menu doesn't show up. The folder was created successfully. It is working for you in Mojave? It looks like that hidden feature got removed in Mojave: reddit.com/r/OSXTweaks/comments/99vebr/… Any ideas? Thanks.Overly
B
0

The correct answer to this (I'm on Catalina 10.15.7): Change your desktop background to the desired color. The simulator adapts to the color with a different opacity (or alpha?!) value when in fullscreen mode.

Bonucci answered 18/10, 2020 at 16:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.