I want to style Monotouch Dialog Section like this (change the blue background to an image of my own)...
How do I do that?
Thanks
You need to set the HeaderView of your Section to a new UILabel object. UILabels are descendant of UIView, so they fit perfectly for this.
Make sure you set the background to black, the font to the one you want, and the frame size to (320,22). MonoTouch uses that frame size to figure how big the header should be.
Related
Trying to understand how to make component sets and use variance to make designing more simplified. I have a tile that has an icon on the right that I want to be able to change both what type of icon it is as well as its colour. Is there a way to create the two-component properties using variance? Do all the icons need to be grouped by color and do I need to adjust their naming conventions (still not to sure how that works as well)h
There is a more efficient way to do this, by taking advantage of Color Styles. With this method, you only have to create your icons once, and no need for variants. Color Style swapping will handle that.
Create your icon components, but using a boring black color. Avoid creating variants of the icons, if it's only the fill color that's changing.
Instead create a standard set of Color Styles for your icons.
Your designers then, could place an instance of a black icon from your library. Then use the Selection Panel to replace the black color with one of your defined color styles.
I'm using svg as a background image (logo) in a WP menu plugin and i want it to change a color (fill) when hovered. As it's a free version of the plugin i can't use image, object etc - i have to use my svg as a background image. I've to support IE (9+) so masks/filters are out of question and i'm pretty much left with svg-sprites. That's okey, i know how to do it (using use/xlink:href).
But now comes a tricky part. I want my svg to change only fills of some groups/paths while hovered leaving others untouched. I can only change colors of all paths/groups together in a background image with svg-sprites afaik. Is there a way to do it? Thank you in advance!
I am new to jQuery and although I have got 90% of what I want to do sorted out I am not able to change the colour of the frame in ColorBox from gray. I have been through the code and have read through the settings section of http://www.jacklmoore.com/colorbox but cannot see where it is set. Help would be much appeciated.
There is no javascript option for you to change the color. You will have to do it via CSS. It will vary depending on which "theme" you are using, and you may have to edit or create new images for it.
I have created a circular UIButton by setting the cornerRadius property to half of the width and height values of the UIButton.
btn.layer.cornerRadius = 75.f;
That works fine but I would like to also create a label for the UIButton where the label text curves around the edge of the UIButton.
If this is even possible could somebody post a snippet of code as to how this curved text around the button edge could be accomplished?
You might have a look at this question: Curve text on existing circle
It's not actually a UIButton, but you will certainly get an idea of how to draw text on a curve.
There's especially talk of the sample project CoreTextArcCocoa from Apple. It's for OS X instead for iOS, but you might want to check this out.
When I set the badge value, it's red background with white font.
Is it possible to change the background color of the badge to eg. blue?
I had to do this recently and there isn't a built-in way.
But really, it's not that hard to write your own:
Have a graphic designer make you 3 images: left side, right side, and a 1 pixel wide image you can stretch for larger numbers
Make a new control and inherit from UIView
Use a UILabel and three UIImageViews for each picture
The only slightly difficult part is going to be measuring the length of the text for centering.
Rolling your own let's you make it exactly how you need. I exposed a int? Value property that made extremely easy to use from within my apps as well as a ValueChanged event.