Is there a way to change the background color of the xcassets view in Xcode 5 or Xcode 6?
Asked Answered
Q

3

32

Is there a way to change the background color of the xcassets view in Xcode 5 or Xcode 6?

I have white images that are lost on the white background.

When viewing an image without using xcassets, the image is set against a grey background.

However with xcassets the background is white and the images can't be seen.

I've tried using different different font and color schemes but they only seem to apply to the text editor.

Quality answered 2/12, 2013 at 0:1 Comment(2)
it may be hidden somewhere in com.apple.dt.XCodeBlindage
@PeterLapisu thanks for the tip. I dumped my current settings (in terminal: defaults read com.apple.dt.XCode > xcodeprefs.plist ) but was unable to find anything relevant.Quality
Q
5

If you are happy to add an Xcode plugin (it's available via Alcatraz) then TOCAssetCatalogBackground solves this problem. https://github.com/toco/TOCAssetCatalogBackground

Quality answered 24/5, 2015 at 4:29 Comment(1)
Thanks man, you saved me tons of hours for converting images!Breadfruit
Q
13

A reasonable work around is to select the image asset, (eg click on the 1x or 2x version) and then press the spacebar. This will show the asset in a popover with a light grey background.

Quality answered 31/3, 2014 at 4:21 Comment(1)
@Ixx - I was confused by your comment when I first saw it as the popover still has a very light grey background for me (Xcode 6.3.2). Then today while using an external monitor the same thing happened to me. It turns out that the external display wasn't calibrated properly. (try dragging the pop up from the external display to your laptop display).Quality
Q
5

If you are happy to add an Xcode plugin (it's available via Alcatraz) then TOCAssetCatalogBackground solves this problem. https://github.com/toco/TOCAssetCatalogBackground

Quality answered 24/5, 2015 at 4:29 Comment(1)
Thanks man, you saved me tons of hours for converting images!Breadfruit
D
3

Are the images essentially silhouettes? If so, you could make them in another color (I like to use magenta, because then it’s immediately clear when something isn’t working). Then you can use iOS 7’s -[UIImage imageWithRenderingMode:] (not sure if there is a Mac equivalent) to have the image automatically pick up the tint color of its containing view. Then you would not be looking at white images on a white background.

Doradorado answered 15/4, 2014 at 20:58 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.