native button widget background color
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
native button widget background color
Hello,
from the tools palette I inserted the android native button widget, how can I change the background color?
in the propety inspector it is possible to change only the color of the text.
thank you
from the tools palette I inserted the android native button widget, how can I change the background color?
in the propety inspector it is possible to change only the color of the text.
thank you
Re: native button widget background color
hello link76,
Are you talking about this?
Are you talking about this?
Re: native button widget background color
That is the "Switch Button" widget, bogs!
Try harder!
@link76,
looks like this is not possible.
If the inspector for a widget does not provide this you are out of luck.
But I think this is desired behaviour, if you colorize that one, then it
would propbably not be a "native Android button" anymore.
Try harder!
@link76,
looks like this is not possible.
If the inspector for a widget does not provide this you are out of luck.
But I think this is desired behaviour, if you colorize that one, then it
would propbably not be a "native Android button" anymore.
Re: native button widget background color
We are not talking about caveman painting, Sir!
Re: native button widget background color
Thank you,Klaus wrote: ↑Sat Mar 09, 2019 12:49 pmThat is the "Switch Button" widget, bogs!
Try harder!
@link76,
looks like this is not possible.
If the inspector for a widget does not provide this you are out of luck.
But I think this is desired behaviour, if you colorize that one, then it
would propbably not be a "native Android button" anymore.
I asked, because using the standard button, which allows you to color it, in a mobile environment when I touch the button there seem to be more touches
The native button performs a single correct touch.
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: native button widget background color
Boh-Boh-Bom!
HOWEVER . . .
While I can change the textColor, I cannot change:
the textFont or the textSize, or mess around with anything else via the properties palette,
or via scripting:
- -
Which is "a shame".
-
Oh, and while I'm here: some of my best friends are cavemen, Klaus,
so watch it with the non-PC, Neanderthalist language.
-
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: native button widget background color
You can, if you are getting really desperate, layer the widget over a coloured
rectangular object and set the ink of the widget to blendMultiply, this means,
however, that you had better leave your textColor at the default black:
-
rectangular object and set the ink of the widget to blendMultiply, this means,
however, that you had better leave your textColor at the default black:
-
Re: native button widget background color
I tried but it does not work, the background color is not set.richmond62 wrote: ↑Sat Mar 09, 2019 3:13 pmScreenshot 2019-03-09 at 16.07.01.png
-
Boh-Boh-Bom!
HOWEVER . . .
While I can change the textColor, I cannot change:
the textFont or the textSize, or mess around with anything else via the properties palette,
or via scripting:
-
Screenshot 2019-03-09 at 16.12.58.png
-
Which is "a shame".
-
Oh, and while I'm here: some of my best friends are cavemen, Klaus,
so watch it with the non-PC, Neanderthalist language.
-
bloke.jpg
Code: Select all
on mouseup
set the backGroundColor of widget "test" to "red"
end mouseup
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: native button widget background color
I explained that setting the backGroundColor did not work.
However, what I did do is send you a screenShot of a widget Android button
on top of a rectangular graphic and the Ink/blendLevel of the widget set so
that the underlying rectangular graphic was visible.
- -
Download the stack and play with it: that really will make things clear.
However, what I did do is send you a screenShot of a widget Android button
on top of a rectangular graphic and the Ink/blendLevel of the widget set so
that the underlying rectangular graphic was visible.
- -
Download the stack and play with it: that really will make things clear.
- Attachments
-
- cruddy Android btn fix.livecode.zip
- Here's the stack.
- (893 Bytes) Downloaded 199 times
-
- VIP Livecode Opensource Backer
- Posts: 7229
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: native button widget background color
The Android native button doesn't conform to the current Material design theme so I make my own using a roundrect graphic with a 2 degree corner radius. You can color this however you like. While there's no UI for adding a label, you can do it from the message box or by script with "set the label of graphic x to <text string>".
Note that Material uses flat text buttons with no borders or fill for most things. Only important actions use color filled buttons, and those should be used sparingly. Basically colored buttons are used the same way default buttons are in dialogs.
Note that Material uses flat text buttons with no borders or fill for most things. Only important actions use color filled buttons, and those should be used sparingly. Basically colored buttons are used the same way default buttons are in dialogs.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: native button widget background color
Stick with jacque, even if for the simple reason that this:
- -
is horrible. And the "standard button is awful as well:
- -
and this "Android Native Button" widget does not show its text in a build:
-
- -
is horrible. And the "standard button is awful as well:
- -
and this "Android Native Button" widget does not show its text in a build:
-
-
- VIP Livecode Opensource Backer
- Posts: 7229
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: native button widget background color
It does on Android, the native iOS and Android buttons call the OS to create the button, much like native scrollers do. My objection to the Android native button is that it isn't Material design, it's skeuomorphic, which makes the app look dated. The old 3D style went out some years ago.this "Android Native Button" widget does not show its text in a build:
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com