Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to revert Open Quickly back to dark theme on Xcode 9.3?

Tags:

xcode

xcode9.3

I've just updated Xcode to 9.3 and I've noticed that "Open Quickly" ( cmdshiftO) interface have reverted to white theme (instead of black on previous versions, which obeyed my Mac's color theme, which is dark):

enter image description here

My Mac's theme is the dark theme and, for example, Spotlight Search obeys it:

enter image description here

Xcode's Open Quickly was also dark like Spotlight Search too, until I updated. Why would have it turned to light theme and how do I make it obey the system theme again?

like image 804
Can Poyrazoğlu Avatar asked Mar 29 '18 22:03

Can Poyrazoğlu


People also ask

How do I switch to dark mode in Xcode?

Using hotkeys is quick and convenient. Pressing Command + Shift + A will help you switch between light and dark mode in the blink of an eye.

Is there a dark mode for Xcode?

Go to the attributes inspector and select 'Any, Dark' in the appearance option. Now you can set the dark appearance color! Enable dark appearance for each color in Xcode.

How do I turn off dark mode in Xcode?

iOS Simulator can toggle between light and dark mode with ⌘ - command + ⇧ - shift + a shortcut. Views from both view controllers change simultaneously.

What is the default Theme in Xcode?

Xcode 10 have Light(default) and Dark (default) theme, in the editor menu on Xcode 10.


1 Answers

As far as I know there's no easy way to get back the dark theme. It's possible, but it involves unsigning Xcode and byte patching the DVTKit binary that's in the Xcode bundle. I wrote a blog post about this a few days ago. In summary, to get back the dark Open Quickly theme in Xcode 9.3*, perform the following steps (at your own risk):

  1. Download Hex Fiend
  2. Open Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Versions/A/DVTKit in Hex Fiend.
  3. Navigate to adress 0x00000000000163cd using Edit > Jump to Offset.
  4. Replace the byte right after the insertion point that says 31 with 09.
  5. Save.
  6. Download unsign and follow the installation instructions.
  7. Unsign the Xcode binary using $ unsign Xcode.app/Contents/MacOS/Xcode. This will produce a new binary.
  8. Replace the signed Xcode binary with the unsigned binary using $ mv Xcode.app/Contents/MacOS/Xcode.unsigned Xcode.app/Contents/MacOS/Xcode
  9. Launch Xcode and revel in the return of the dark Open Quickly theme.

* Only tested on Xcode 9.3 (9E145) downloaded from the Apple Developer Portal

With that said, it's probably not worth the effort :-) Since the dark theme is still there (but disabled) I would expect it to return in one of the next Xcode releases. It might even be there in the Xcode 9.4 beta (I haven't tried it yet).

like image 141
Tim Andersson Avatar answered Oct 13 '22 19:10

Tim Andersson