I need a little help with the Icon color on buttons. I’m using the material icons on buttons but can’t specify a color for the icon.
I added material/arrow_upward to a button and it’s white. I added material/arrow_downward icon to another button and it’s black
To get the icons to show up on the buttons I’ve add an icon property to the image PROPS with ‘color’ and/or ‘style’ but they don’t do anything (I’m showing both in pic but tried them seperately).
I’ve tried to just put the icon path in the image:icon:path PROPS but I still can’t get the color to work.
Just putting the icon path in the source PROPS doesn’t even load the icon
I’m not sure what I’m doing wrong but any advice would be appreciated.
Did you add properties to your button to have “icon” as an option? I drug a button to my screen and the button has “image” but does not have “icon”. I’m assuming you added it or maybe I’m doing something differently.
I found a work around. If you drag a button onto the form and then drag an icon control onto the form you can adjust color from your icon. You could make a view that has a button with an icon overlayed with it and use instances of that as a template to get your desired functionality.
I didn’t have any problem changing the color of an icon control.
Just to add on, since I’ve been trying to do the exact same thing: I’ve noticed that in the button style ‘Shape’ fields, there is a Fill and a Stroke option. If you use Stroke, it adds the stroke to the icon (not the button text). If you use Fill, nothing happens. Is it possible that the Fill option should be the background color of the icon but that functionality currently does not exist?
Fill color for icons is handled on the “Shape” fill under styles. It sounds like it is overridden by a color binding on the icon itself.
What I’m saying is if you drag an icon onto your form without binding it and change the shape fill style on it you will change the bg color. The line color is handled on the stroke as you noticed.
I’m not certain which properties override each other but it sounds like a binding overrides a shape style. Granted, you can bind a shape style also
That’s correct. Further examination revealed 41 other icons which would exhibit the same behavior. I’ve made a note in the ticket to remove that fill property for the offending icons.
Did this bug creep back with version 8.0.13? In version 8.0.12, I was using “material/fiber_manual_record” and changing the color. With version 8.0.13, no matter the color set, it is black.
Yeah, I saw that - I’m trying to locate where it was brought into the application, because it had previously been fixed. I’m betting it’s not the only one.
In the meantime, is there a process for me to manually edit the file, or at a minimum, pull in the file from 8.0.12? If I edit the files, what is required to execute the change: Gateway Restart, Designer Restart, etc?