How the info button dark style should look like? - ios7

I use the system type of info button dark for creating an instance from the UIButton cluster. It looks the same as for the info light type: the encircled "i" character and all coloured depending on a tint colour property.
Shouldn't the dark button style provide a solid circle instead and filled completely but the "i" character inside?

Related

Changing default highlight color of NSDatePicker

I am subclassing NSDatePicker to implement calendar widget. I am able to change text color by setting textColor property of NSDatePicker but when I click on any field of NSDatePicker like Month/Year/Day the default color is somewhat blue.
I want to change highlight color to some custom color but I am not able to do that. I tried overriding highlightColorWithFrame:inView: and highlight:withFrame:inView: but no effect.
This is how it looks at present
I would not recommend to change the selection color of a control since maxOS Mojave will allow the user to customise the Accent color in system preferences.
If ever you are still looking for customisation you must customise the drawing of the NSDatePickerCell and not of the control itself. I would try to overwrite
draw(withFrame cellFrame: NSRect, in controlView: NSView)
but for NSDatePickerCell it may be some more difficult since there are multiple datePicker elements.

Setting UISearchBar to minimal with translucency

Is it possible to make a UISearchBar translucent with a background color and search field color that can be changed separately?
This is what I'm currently getting with a search style of minimal and a background of light blue. If I want the search field to be white, I have to not use minimal for the search style, but then my search bar isn't translucent.
What can I do?

XAML Theme Brushes - Switching Dynamically, cursor doesn't change

First Off, I found this extremely useful page on theme brushes:
http://metro.excastle.com/xaml-system-brushes
So Roughly, on startup for WinRT/XAML I am setting my theme brush for a textbox in a stylesheet:
Foreground = TextBoxDisabledForegroundThemeBrush
Background = TextBoxDisabledBackgroundThemeBrush
Which at run time makes the textbox appear as: white border, transparent background and grey text. Which I was hoping it would make it transparent, white border and white text.
On my Tapped event, I change the textbox to:
Foreground = TextBoxButtonPressedForegroundThemeBrush
Background = TextBoxButtonPressedForegroundThemeBrush
Which is supposed to be black background, white text and white border. Which seems right, but the cursor is back and you cannot see it.
First question is, am I doing this right to change my text color? I want to change the textbox so once it is selected it stays a changed color. I think this is correct. But I am not sure if I should be setting Foreground or maybe a Font Style instead?
Unfortunately you can't change caret color so if you want your TextBox editable - you should keep the background white or otherwise light. Otherwise, controlling the look of your control in its various states is best done using VisualStateManager and that is easiest to manipulate using Blend.

Can we set the foreground color on TileTemplateType.TileWideImageAndText01 to a colour of my choosing

Just wondering if there is any way to set the foreground colour of the text on a TileWideAndText01 tile template or are we limited to dark or light only?
You are limited to dark or light only. From here:
Only two text colors are available—default dark and default light—and
are set by Windows. Choose the text color that will look best with
your choice of background color and the opacity of your logo image.

Background color of NSSearchfield not working

I have a NSSearchField and I want to change its background color but i am not able to do it i tried out few things:
1) I tried to set DrawBackground TRUE and then setBackgroundColor but the value of DrawBackGround is always False either I try to set it trough code or Nib.(i don't know why?)
2)I tried out setting NSText's BackgroundColor but it is not looking good because it is not covering whole NSSearchField the extreme corners where the small search icon and cancel icon is present are left uncolored.
3)I want the searchField to have the color of the view it is lying so i decreased the alpha value of the searchField which looks good but the alpha value of text is also decreased so is there any way to make text's alpha value to remain always 1.
Thanks :)
If you look at the documentation, Apple prevents background color rendering for rounded-rectangle fields:
"In order to prevent inconsistent rendering, background color rendering is disabled for rounded-bezel text fields."
https://developer.apple.com/library/prerelease/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSTextField_Class/#//apple_ref/occ/instm/NSTextField/setDrawsBackground:
NSSearchField is extension of NSTextField, NSTextField again extension of NSView,
Not sure, but its possible to make a custom clas and overwrite drawRect function and paint with the background color.