Change color of scroll element form

7 views
Skip to first unread message

Peter Bell

unread,
Aug 15, 2020, 11:48:47 AM8/15/20
to CodenameOne Discussions
Hi  i like to change the color of de scroll element of the form. How do i do that?

Ciao 
Peter Bell

Shai Almog

unread,
Aug 15, 2020, 9:48:59 PM8/15/20
to CodenameOne Discussions
It's called a "ScrollThumb" just style its background color to anything you want.

pbellpi...@gmail.com

unread,
Aug 16, 2020, 1:56:00 PM8/16/20
to CodenameOne Discussions
how do i do that ? 

Op zondag 16 augustus 2020 om 03:48:59 UTC+2 schreef Shai Almog:

Shai Almog

unread,
Aug 16, 2020, 9:48:14 PM8/16/20
to CodenameOne Discussions
Do you use the designer tool or CSS?
If the former just open the resource file theme. Click add and type in ScrollThumb. Then set the background transparency to 255 and color to whatever you want.

For CSS:
ScrollThumb {
    background: #ff0000; /* red */

Peter Bell

unread,
Aug 17, 2020, 9:40:26 AM8/17/20
to codenameone...@googlegroups.com
Thanks Shai , this worked for me. 

Op ma 17 aug. 2020 om 03:48 schreef Shai Almog <shai....@gmail.com>:
--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/qmkbAb1OXvE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/0216acb3-d725-4235-940e-05fe053dc54cn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages