I have one button with blue bg color and I want to add black shadow as shown in the image,
how can be done in codenameone ?
You can do many things.
The simplest is that when you cut the 9-piece border you can just include the shadow as part of the image: http://www.codenameone.com/how-do-i---create-a-9-piece-image-border.html
You can also use a LayeredLayout and place the button within then place a shadow button in the bottom layer.
Related
I'm trying to get the background color which is linear gradient from this template but it appear as background image , any help please?
In Figma, images are actually a type of shape fill. Like colors or gradients.
In the template you linked, you can replace the gradient background with a different one, like a photo background.
This technique won't create a separate layer for the image. Instead, it's a fill for the parent frame.
Steps:
On that file, go a blank area and then insert the photo/picture that you actually want as the new background image for the webpage design.
Select the photo/picture.
On the fill panel, click leftmost part of the Image fill to select it. Then press CTRL+C to copy it.
Select the background frame that has the gradient.
On the Fill Panel, delete the Image. Because the gradient design is actually a pasted image.
With the background frame still selected, press CTRL+V.
I want to change the border color of any element when it gets focused from blue to green. The problem is I don't know the attribute name I should change to override this. Any help would be very much appreciated.
Below is an image for better comprehension:
Go to http://getbootstrap.com/customize/, look for #input-border-focus, enter your desired color code, scroll down and click "Compile and Download".
Does anyone know how to remove the small border around the combobox?
In a Flex3 Combobox (Halo Theme) there is this little gray border at the left, right, and bottom edges. I want to remove those borders so that the button part of the combobox doesn't have any border at all. Instead, I just want the top border.
Any ideas how it can be done?
Thanks.
I think you have to replace the Class that's used by default in the skin css property with one of your own. The docs say that is defined in ComboBase, so you'll need to look there to see what the Class is there and if you can extend or even do away with it (by setting skin to an empty ClassReference).
I'm using PopupManager to display (not modal) popups in Flex.
How can I make the background of my TitleWindow popup completely transparent?
Now it is semi-transparent.. see picture with semi-transparent background (i.e. I just want the label inside visible):
http://dl.dropbox.com/u/72686/semiTransparent.png
Maybe, instead of making it transparent I could try to reduce the padding, in order to make only the children visible ?
thanks
If you want to make it transparent, add
borderAlpha="0.0"
If you also want to remove the side and bottom borders completely, add
borderThicknessLeft="0" borderThicknessRight="0"
You can't remove the header, even thought there is borderThicknessTop option.
Also, the borderThickness="0" option doesn't work as far as I know.
Set the backgroundAlpha style of the TitleWindow to 0.
Edit, oops, my mistake, since it's a subclass of Panel, you'll also need to set the borderAlpha style to 0 as well. If you're using the default flex skins, the white arrow is the "background" and the blue area is the "border".
I would like to customize the shape of the button to different shapes like circle, star, square or of any shape. How would i achieve so?
I apologize because this doesn't answer your question, but:
In order to make sure the user can reliably click on your button, you probably want it to be a convex shape. A rectangle or circle is fine, and you could paint a star on it. But you wouldn't want the user to try to click your star and miss, just because they were not quite inside one of its arms.
Canvas can be used as button.
Take a canvas of required size. Give your required button shape(image) as background image to canvas.
Example:
Explanation: {nextYellowButton} is the embedded button. It is an arrow mark shape button.
It is a .PNG image. So, it doesn't include the background color.
Now your button is of arrow shape. it occupies 50px * 50px area on screen. But it looks exactly like an arrow mark.