Announcement:
I updated the CSS file of our FLTK server to introduce "Dark Mode" and to improve some contrasts, particularly in "Night Mode". This is currently experimental, but I'd like to keep it. See below for details.
https://www.fltk.org/
Looks fine to me..
The FLTK server should now support "Dark Mode" automatically if your system/browser is set to "Dark Mode".
Seems readable in that mode too.
- Blue filter (aka Night Light) on / off
(What a weird mode.. while I like warm incandescent lighting for room light, but I'm not liking it on my screen.. bleh! Subjective I'm sure, but anyway..)
Anyway, I decided to update the web server with the new CSS file to let you test and comment on the new feature.
On 6/28/26 07:05, 'Albrecht Schlosser' via fltk.general wrote:
Announcement:
I updated the CSS file of our FLTK server to introduce "Dark Mode" and to improve some contrasts, particularly in "Night Mode". This is currently experimental, but I'd like to keep it. See below for details.
https://www.fltk.org/
Looks fine to me..
- Blue filter (aka Night Light) on / off
Hmm, ya, I enabled that in Gnome and our page (e.g. "Bugs") is still very readable.
(What a weird mode.. while I like warm incandescent lighting for room light, but I'm not liking it on my screen.. bleh! Subjective I'm sure, but anyway..)
Anyway, I decided to update the web server with the new CSS file to let you test and comment on the new feature.
No problems here..
I guess you're still in progress, but feel free to commit the new unstaged fltk-modernized.css
(I haven't done any dev on the website since the caching newsgroup mods; no load issues since that mod that I'm aware)
On 6/29/26 10:57, duncan gibson wrote:
There's certainly enhanced contrast using Firefox on MacOS in Dark mode but not everywhere, as shown in the screenshot.
OK, fix for that applied; should look like this now in dark
mode:
Albrecht: leaving that change unstaged for now, in case there's a better way to make a centered 'site-news' styled table.
Good catch.There's certainly enhanced contrast using Firefox on MacOS in Dark mode but not everywhere, as shown in the screenshot.
That's probably my fault; when we changed everything around to google groups and such, I made that notice on the "Forums" page by just hand typing the HTML, without using FLTK's css class citations for styling, so it's not being affected by Albrecht's new .css file.
I think I can make a simple tweak to fix that.
OK, fix for that applied [snip]
Found a few other "hand edited" tables; one in submitting new articles, another in the website admin pages.
Fixing those now.
Albrecht, I'll follow up in email as well, as I noticed the entire CMP's code examples have issues in dark mode, probably a small css tweak.
Known issues:
1. The colors of "links" vs. "visited links" are not well distinguishable. This is due to the new color theme and a compromise for all four "modes": normal and dark mode x day and night light.
Working on this now, but this will take some time. It's complex, given all the constraints ...
All link colors clear WCAG AA (contrast ratio 4.5:1) against the
four possible background colors: `data0` and `data1` in both light
and dark mode. Link colors were chosen such that
- unvisited links are red (as before)
- visited links are blue
- hovered links are yellow in dark mode
- hovered links are "dark orange" (brown?) in light mode
The latter is a compromise due to having the contrast requirements.
All modes stay at least readable in `Night Light`, i.e. when applying
a blue filter, and have good properties for some kinds of color
blindness.
That's it. It was a long struggle to get to this solution, I hope
it's acceptable.