Skip to first unread message

Mysterious Dalenkgu

unread,
Mar 25, 2017, 10:11:54 PM3/25/17
to MIT App Inventor Forum
In my app, I wanted to create buttons with a specific color using the "make color" function. I also want the background color to be the same color as well. However, there is no way to distinguish the actual button and the background, making it hard to click and overall unappealing. Is there a way to add a border to the button that can separate it from the background?

What I've tried:
I tried placing a background image of a black, transparent square, but then I learned that an image and color can't be in the button at the same time.

If nothing works, I'll change the color of the button to a lighter shade to contrast with the background a bit. However, I still hope there is a way to make a border. Please respond with any ideas, suggestions, anything! Thanks.

Tim Carter

unread,
Mar 26, 2017, 11:32:41 AM3/26/17
to MIT App Inventor Forum
No border feature for buttons unfortunately (or anything for that matter!)

A couple of suggestions:

  • add a border to all your button images using imagemagick or similar software
    • convert image.jpg -bordercolor black -border 20x20 imagewithborder.jpg

  • set each button inside a vertical/horizontal arrangement which is slightly bigger than the button, then do centreing and set colour of arrangement
Reply all
Reply to author
Forward
0 new messages