Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different colors for icon and text #71

Open
ocwendel opened this issue Mar 11, 2017 · 3 comments
Open

Different colors for icon and text #71

ocwendel opened this issue Mar 11, 2017 · 3 comments

Comments

@ocwendel
Copy link

Hi,

Is there any way to get different colors for the icon and the text? I have a button that has both icon and text, and I would like to use different colors for the two parts. However, button.setFATitleColor() sets the color fot both icon and text.

@Vaberer
Copy link
Owner

Vaberer commented Mar 15, 2017

Hello, thanks for the enhancement tip. However, you can achieve this effect by having multiple labels in one line.

@TCOA
Copy link

TCOA commented May 3, 2017

While it is true you can create the effect by having multiple labels, it really defeats the (really cool, IMHO) feature of setFAText all being in one place (with pre and post text).

So, as in the example given in the docs, a scenario where I would like to have a Twitter log be blue (to better match their coloring), while I have pre and post text that I want to have in black (for example), I would then have to have THREE labels..........

And, then, the spacing between the text and icon might not be the same - or, even difficult to set, etc......

I.e., I am a big fan of the idea to have ONE line to do this! (my particular example at this moment is to show a rating number and FAStar next to it - I will do multiple labels {no other choice!}, though it would be great not to have to do this...)

BTW, a suggestion on settings:

field.setFAIconColor()
field.setFATextColor()

or (if you really wanted to get 'fancy' and give ultimate control...):
field.setFAPrefixTextColor()
field.setFAPostfixTextColor()

@bbdroid
Copy link

bbdroid commented Jul 24, 2018

Opened a PR for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants