How to change color of FontAwesome?

87 views
Skip to first unread message

Stephan Stadler

unread,
Jul 27, 2025, 11:30:29 AMJul 27
to DroidScript
Hi, I coded:
var listItems = "New::[fa-list],Edit::[fa-check],Delete::[fa-close]";
    lstMenu2 = app.CreateList( listItems, drawerWidth, -1, "Menu,Expand" );
    lstMenu2.SetTextColor( ColorTextColor );

The last line changes only the colors of the words, but not the Icons of Font-Awesome.
How to do that?

Ferhat

unread,
Jul 27, 2025, 2:59:41 PMJul 27
to DroidScript
Hello,
To change the color of the Font Awesome icons in the list, use this line:

lstMenu2.SetTextColor2("#22ff22");

SetTextColor only changes the text color, but SetTextColor2 also changes the icon color.

27 Temmuz 2025 Pazar tarihinde saat 18:30:29 UTC+3 itibarıyla stest...@gmail.com şunları yazdı:
Reply all
Reply to author
Forward
0 new messages