Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Token Action Button Color

June 24 (1 year ago)
Dink
Pro

Learning a Ton about scripts and greatly appreciate the help here!

Using Scripts to develope token actions, but what are the lines of code to denote color and/or text on token action buttons and change them from that overused purple?  I've read that many folx'z buttons are gray?  again,.. mine are the purple of the below "Post Topic" button...

June 24 (1 year ago)

It sounds like you're using Dark Mode in the game, which is why your Token Actions are purple.  If you use Light Mode they will be grey.

The easiest way to adjust the colors of Token Action buttons is by using the Stylus extension. Scripts cannot change the color of Token Action Buttons.

Here's an example of code that can be used to change the color of individual Token Actions (based on their #ID, which you can find using your browser's Inspect feature): https://app.roll20.net/forum/post/10802054/show-off-your-style-4-a-new-hope/?pageforid=10802064#post-10802064 .


Or if you want all of the Token Actions to have the same background and font color, here is some code for that.

@-moz-document regexp("https://app.roll20.*.net/editor/.*") {
ul.mode.tokenactions button.btn {
    background:red;
    color: blue;
} }

I made it red and blue just so it was clear what you'd need to change to get the color your want.


June 25 (1 year ago)
Dink
Pro

Perfect!  Thanx Muchly!  I'll definitely give that a shot!   also didn't kno You could add emojis?  or icons... That'll be fantastic!

June 25 (1 year ago)

Yep. Emojis are very useful in minimizing the space the Token Action Bar takes up. Here's the Tips & Tricks thread post about that. If you haven't read through that thread then I definitely suggest taking a look as there are lot of gems there.