I'm trying to set the barColor for one of my windows to #ffffff or even white but it stays gray.
Setting the barColor to anything else (any hex code or color name) changes the bar color without a problem.
Is there a reason white color is not acceptable?
I think its not grey but translucent white. Try setting your window to "translucent:false"
Related
I'm using pdf images in Xcode 10.
The settings are as follows:
As you can see the image has been set to be rendered as Template Image
Now when setting the image in an imageView and setting the tint color, this weird thing happens:
If the tint color is not white or any white hue, it is rendered correctly on the phone
If the tint color is set to white or any hue that is white (light gray, etc), then it's rendered fine in the Interface Builder, but it appears black on the phone
I even tried setting the tint color at runtime, but same thing happens.
Any clues why this is happening?
I'm starting to think this is a bug in Xcode, but wondering if I missed something!
Ok, this seems to be indeed a bug.
Found this:
http://openradar.appspot.com/23759908
And yes, calling tintColorDidChange in viewWillAppear does solve the problem.
How to change the background colour of highlighted text on windows cmd?
The background colour changes to white however highlighted text background still seems to show as black even though I have changed all the background colours to white.
For example if there is a failure, it will show the exception text background as black instead of white.
Any ideas?
I have an SKView with a picture of a keyboard in a window as shown below. I would like the background color of the SKScene it's presenting to be the same color as the window behind it, so that it would appear as if the keyboard was just in the window, and not in something else that was in the window. After consulting the NSColor documentation, I tried setting the background color of the SKScene as NSColor.windowBackgroundColor(). The color below is what I got. I'm assuming there was some kind of error and so it defaulted to black. That being said, how do I access the default color of a window?
Set the SKView's allowsTransparency to true and then set the SKScene's backgroundColor to NSColor.clearColor().
I think that using windowBackgroundColor() gives black if the view doesn't allow transparency and works if it does because it's effectively being translated to clearColor() by "accident". windowBackgroundColor() is a bit strange. It's not in either an RGB nor a gray-scale color space and it can't be converted to either of those. I'm guessing that SKScene tries to convert the background color to the RGB color space and, when that fails, it uses clearColor() as a fallback.
I have an NSTextField. I want it to draw text and have a background color. But when I set drawsBackground to YES, the text seems to draw partially transparently. For example, if I set the text color to white and background to black, the text comes out gray. Why is this?
Make sure isEnabled set to true.
I was seeing this as well and changing this fixed it for me.
Have any one else noticed in iOS7, the translucent navigation bar only shows color underneath if barTintColor is set to default?
I tried setting barTintColor to various different colors, but anything that is below the navigation bar is displayed a a black blur. Whereas if the barTintColor is set to default, all the elements display correctly underneath.
Is there a way to force it to show the correct colors?
You have to use background color instead of tint color.
self.navigationController.navigationBar.backgroundColor = [UIColor yellowColor];
If you are using tint color it changes only barbutton background color change.
In MyTabBarController in the storyboard select the color tint. You will change the button active color background. No idea for the inactive one.