How to set a opacity in textbox for background and foreground color in windows phone 7.1? - windows-phone-7.1

I want to set a opacity in textbox in windows phone 7.1. I want to set opacity 20% for the background with #503E28 color code and 50% for foreground with #3B2D1E color code in the textbox in windows phone 7.1.

Try adding the alpha channel into the colour code
<TextBox Foreground="#803B2D1E"
Background ="#33503E28" ... />
I believe WP uses ARGB values, so the first value is A (alpha). Alternatively, you can style it using Expression Blend.

Related

Flutter Text inside Text Field becoming white automatically for iOS Dark mode

When I am using iOS dark mode. Then flutter Text field text color is not visible. How to solve this problem ?
I guess this could work if you use Colors.black as text color. I guess the Cupertino template uses CupertinoColors.black as text color but not the equivalent for the background. Even though this color is called black, it turns white in dark mode. I think this is not the case with Material colors. Otherwise define your own black color with RGB - or even better, use CupertinoColors.white as background (as it will turn black)

Different colors even though RGB values are equal

I'm facing a quite weird color issue with the Interface Builder in Xcode.
I've set the background of my view in my view controller to #1F242C:
So far so good.
Then I create a UITableViewCell in a nib file where I set the background to the exact same color #1F242C:
Now when I start the app, the background of the UITableViewCell is suddenly different from the viewcontroller view's background, even though the RGB values match and the opacity too.
When I analyze a screenshot with Photoshop
The view's background is: #29303A
and the cell's background is: #1F242C
Whey are they different colors despite the RGB values being the same? I don't change the colors programmatically in my source code.
Here's how the different colors look:
This is an issue due to iOS 10 and the new extended color gamut of the new devices screens.
Click on the wheel at the right of "RGB slider" in your color picker, and chose sRGB IEC61966 2-1.
You will see that the RGB values will change at this point. Put them back to the RGB values you previously entered. That should be it!

Transparent text color in a Today View Widget

I'm trying to get the same color/transparent effect as Apple has used on the bottom borders of table view cells in the today view. How can I also use this effect on for example a UILabel?
How do you get the white transparent effect on a UILabel in a today view widget?
I've wondered the same myself. I think They're setting a color of white with 0.4 alpha on the font and a color of black with 0.4 alpha on the background. They overlay the whole thing over a gaussian-blurred and saturated image of what was previously behind the today view.
So the required steps to produce the same effect would be something like the following:
1. Grab background image
2. Blur and saturate image
3. Add below the current view
4. Set black background of 0.4 alpha and white font of 0.4 alpha on the current view.
If you can think of a way to make the background translucent right behind the font that would make the color show more.
Here's an image of what that would look like (including the translucent background behind the text). I did this real quick in photoshop, don't mind the font.
Hope this helps!

Some colors inaccessible from UIColor

I was trying to sample the default colors used by Reminders app in iOS7 and use them in my app.
What I do is to use the DigitalColor Meter (in Generic RGB mode) to sample the RGB value, then I put this value in my app to construct a UIColor. Then I tweak this value until the DigitalColor Meter gives me the same set of RGB value as it gives me for the iOS7 Reminders app.
However, it seems like I cannot reconstruct some of the colors by using UIColor. For example, when reconstructing the blue color, I already have 0 for the R value in my UIColor, yet the DigitalColor Meter does not give me a value smaller than 36, which is still bigger than the value of 30 for the R value of the blue color in the Reminders app.
Does UIColor not cover the entire gamut of colors? Does Apple use some special hidden API to a wider range of colors?
I'm not entirely sure what the problem is here. I took a screenshot of the Reminders app, and measured the blue color as 26, 173, 248 in Decimal mode. Then I went to my app's storyboard and set the view background color to 26, 173, 248 using the sliders. I ran my app on the phone and took a screenshot of it. Digital Color Meter reads 26/173/248 on my app as I would expect.
If you're using UIColor, you can use Percentage mode on Digital Color Meter to give you the correct values. For me, that blue color reads as 10%, 68%, 97%, so I used this code:
[UIColor colorWithRed:.1f green:.68f blue:.97f alpha:1];
I set that as my view background color in code, and running it I can't see any difference between it and the label background I set using the sliders on the storyboard.

Value for UITabelView background color on iPad

Need to make a matching graphic, does anyone know the color value of the iPad UITableView background color?
It is a gradient of different shades of gray, not a solid color.
But a close enough color is 0xdddddd.

Resources