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

MotD -- Dark mode vs light mode

1698337321
Lithl
Pro
Sheet Author
API Scripter
I don't know if it's a recent change with Roll20, but yesterday two of my players complained that the MotD message was blinding them and was difficult to read. As it turned out, they were the two players in the group using Roll20's dark mode theme, and this is what it looked like for them: The color of the text in the MotD handout is just the default; the only text styling here is using headings and italics. After the session when setting up for session 5, I tried doing some testing by toggling dark mode and was able to at least make the text readable by explicitly setting the text color to black in the handout: The shadow still looks like the bloom filter is turned up to 11, though. I don't know if there's a good way to solve that for both dark mode and light mode users, it may be that the shadow needs to be removed entirely.
<a href="https://app.roll20.net/forum/post/11603616/message-of-the-day-background-color/?pageforid=11604808#post-11604808" rel="nofollow">https://app.roll20.net/forum/post/11603616/message-of-the-day-background-color/?pageforid=11604808#post-11604808</a> As I mentioned in the other thread, the code for MotD could be updated: (Smaller box shadow, very light grey background) container: 'display: block; border: 1px solid #999; border-radius: .3em; padding: 1em; background-color: #eee; box-shadow: 0 0 5px 1px #999; margin: 1em 0 1em 0;', (No box shadow, slightly darker grey) background container: 'display: block; border: 1px solid #999; border-radius: .3em; padding: 1em; background-color: #ddd; margin: 1em 0 1em 0;',
1698362614
The Aaron
Roll20 Production Team
API Scripter
Yeah, this is on my (long) list of things to fix.&nbsp; The problem with Darkmode in script output is that it's a per user setting that isn't exposed to the API.&nbsp; It would be really great if there was a class we could add from the API that would permit the styles we're using to have the right coloring.&nbsp; I have some ideas on a slightly more manual way of fixing this that I will likely end up Implementing.
1698366720
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I have taken to writing any new interfaces in "Gray Mode" because of this. One thing to avoid is using pure white #ffffff or pure black #000000. Those are automatically captured by the base css for the VTT, so far as I can tell.
1698376540
The Aaron
Roll20 Production Team
API Scripter
Yeah, I thought about doing that, but the colors and such are taken raw from the handout contents, I'm not creating them with the API.&nbsp; I might have to figure something out with restyling though.
1698408613
Lithl
Pro
Sheet Author
API Scripter
Maybe put a text color on the box, which will be inherited by the text inside it if the handout doesn't style the text to set any particular color?
1698411379
The Aaron
Roll20 Production Team
API Scripter
Right, that's a good first step and I'll do that now.&nbsp; I am hopeful for a way to style things based on the preference of the user for light or dark mode.&nbsp; I'm pretty sure they had to do this with character sheets, I should see if we can get them to add that functionality to sendChat(), possibly as another config parameter, {modifyForDarkmode: true} or something.
1698412455
The Aaron
Roll20 Production Team
API Scripter
I've pushed the update for a default text color to the 1-click, it should show up next week.
1698502233
Pat
Pro
API Scripter
A user's color mode should be exposed to the API, or there should be an option to use the "default" CSS for a mode, if they can't expose the mode. This is an accessibility issue, so if there's a Dev's ear we can bend, or if I need to put it in as a trouble ticket, I can do that.&nbsp;
1698509820
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
That would be helpful, yes. There have been many requests to implement this somehow.
1698525167

Edited 1698525268
Gold
Forum Champion
Yes, please, Pat, I agree with raising this issue from the Accessibility standpoint. I use MotD and Dark Mode, and colorized my text in the handout as-needed (and don't forget you can do Highlights under/over text in the text editor so you can make your own background color line-by-line), and it's been working fine in Dark Mode and Light Mode for different players. No problems for me with it. I still agree and support empowering the script writer and the scripts for Accessibillity and dependability like this entails.&nbsp; The 'bloom' border doesn't bother me at all, looks pretty cool in dark mode IMO.&nbsp; Thank you all contributors, The Aaron et al