1

I am contributing to a project called CodeEdit, which is looking to make a code editor with a design similar to Xcode. In dark mode, I can't get the toolbar color to be the same as the toolbar in Xcode dark mode, it is always black in dark mode. The video below shows what is happening. All code is in https://github.com/highjeans/CodeEdit. I looked at Customizing the macOS toolbar with Swift UI but that is not what I need. I also looked at SwiftUI macOS Xcode Style Toolbar but that is more for something similar to Notes not Xcode.

https://drive.google.com/file/d/185LQCeiVwSub8GIj19f6svUTHa7hsBCL/view?usp=sharing

Edit: I got the color to work, I don't know how to change the white background under the Tab Bar: Picture of sort of working toolbar color

1 Answer 1

2

I got it working by changing the most random line ever. If you are looking for a toolbar color similar to Xcode, change NSWindow.titlebarSeparatorStyle to .line.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.