Go back to previous page
Forum URL: http://www.eyrie-productions.com/Forum/dcboard.cgi
Forum Name: The Forum Itself
Topic ID: 121
#0, dark mode...?
Posted by Gryphon on Feb-11-26 at 10:26 PM
Obviously DCF was created long before flip-a-switch dark mode was a Thing, but I was pondering this evening if it would be possible to create one with some parameter changes and an new background image. It might work, but it would be a fair bit of faff and wouldn't be configurable--it would just be "on" for everybody all the time, like the default mode is now.

So before I undertake the project, is that something people would actually want? I can't guarantee that it'll work, either way, but if it seems desirable, I might poke at it a bit and see what things look like.

(This is just for the Forum. Flipping the palette on the stories would require a tweak to the style sheet that I'm not really up for right now, mostly because I didn't implement CSS correctly in the first place and now fixing it would be a massive pain in the ass.)

--G.
-><-
Benjamin D. Hutchins, Co-Founder, Editor-in-Chief, & Forum Mod
Eyrie Productions, Unlimited http://www.eyrie-productions.com/
zgryphon at that email service Google has
Ceterum censeo Carthaginem esse delendam.


#1, RE: dark mode...?
Posted by drakensis on Feb-12-26 at 02:30 AM
In response to message #0
I do generally find dark mode easier on my eyes.

#2, RE: dark mode...?
Posted by rwpikul on Feb-12-26 at 04:09 AM
In response to message #0
Given the lack of an ability for users to change modes within DCF, it might be better to look into coming up with a user-style script for something like Stylus. This would have a few advantages, the main three being:

Little to no risk of breaking the forum.
Users can choose to switch or not.
Once one user-style is created, users who want something different have a template to work from.


#3, RE: dark mode...?
Posted by Zemyla on Feb-12-26 at 09:21 AM
In response to message #0
I generally prefer dark mode, but this is what I'm used to here. It's nostalgic, reminiscent of an earlier era of the Internet. Also, the forum is held together with duct tape and bubblegum, and I'd rather not risk it.

#4, RE: dark mode...?
Posted by Spectrum on Feb-13-26 at 11:02 AM
In response to message #0
I have no preference, I generally just get used to whatever the forum default is unless it's eyesearing.

#5, RE: dark mode...?
Posted by zwol on Feb-13-26 at 11:18 AM
In response to message #0
I prefer light mode for eyesight reasons (halation) so I'd prefer that you didn't do this as the only option for everyone.

However, nowadays it is possible to set things up, using CSS only, so that people get light or dark mode depending on a preference in their browser's settings; this would bypass DCF's limitations. If you have the ability to inject an entire style sheet into Forum pages, then here's how a style sheet that does that would look:

body {
color: #000000;
background-color: #FFFFFF;
background-image: url("/Grill/GFX/forum-bak.gif");
background-repeat: repeat-y;
margin-left: 7px;
margin-right: 3px;
}
a { color: #0000FF; }
a:visited { color: #000099; }
a:hover { color: #AA00FF; }
/* more color settings for light mode go here */

@media (prefers-color-scheme: dark) {
body {
color: #FFFFFF;
background-color: #000000;
background-image: url("/Grill/GFX/forum-bak-dark.gif");
}
a { color: #1E90FF; }
a:visited { color: #B39CD0; }
a:hover { color: #FF0099; }
/* more color settings for dark mode go here */
}

Mess with the color choices to suit your preferences and the forum's aesthetics. The browser toggle should come up if you type "dark" into the search box in the preferences screen.

For this to work properly, though you will need to get rid of all the existing color-control attributes in DCF's generated HTML, which looks like it will be a huge pain in the neck :-/

Incidentally, if you add a stylesheet to the forum at all, please include this rule somewhere:

img { max-width: 90%; }

This will make it so images embedded in posts shrink to fit the post, instead of stretching the post super wide.


#6, RE: dark mode...?
Posted by Gryphon on Feb-13-26 at 06:28 PM
In response to message #5
>This will make it so images embedded in posts shrink to fit the post,
>instead of stretching the post super wide.

Yeah, I don't know what's going on with that. I rescale the pics I put in Eyrie Motors to 1200px wide, but lately it's taken to showing them way wider than that for no reason I can figure out. My new laptop has a 2560x1440 display, and they're rendering wide enough to blow out the right side with my browser window maximized. :/

--G.
-><-
Benjamin D. Hutchins, Co-Founder, Editor-in-Chief, & Forum Mod
Eyrie Productions, Unlimited http://www.eyrie-productions.com/
zgryphon at that email service Google has
Ceterum censeo Carthaginem esse delendam.


#7, RE: dark mode...?
Posted by Kendra Kirai on Feb-14-26 at 09:23 PM
In response to message #6
I went looking for a method to resize within the forum, but couldn't find anything, but I couldn't get images to hide behind clickable links either, so my DCF-fu is clearly highly lacking.

#8, RE: dark mode...?
Posted by Gryphon on Feb-14-26 at 10:36 PM
In response to message #7
>I went looking for a method to resize within the forum, but couldn't
>find anything, but I couldn't get images to hide behind clickable
>links either, so my DCF-fu is clearly highly lacking.

DCF really wants to inline images. Luckily, it's pretty dimwitted about what actually is and isn't one--I think it just looks for filename extensions. To link them instead, you have to trick it by adding a fake query to the end of the filename, such as "foo.jpg?x".

--G.
-><-
Benjamin D. Hutchins, Co-Founder, Editor-in-Chief, & Forum Mod
Eyrie Productions, Unlimited http://www.eyrie-productions.com/
zgryphon at that email service Google has
Ceterum censeo Carthaginem esse delendam.


#10, RE: dark mode...?
Posted by Kendra Kirai on Feb-15-26 at 00:12 AM
In response to message #8
Funny enough, even that wasn't working, for some reason. I must've been doing something wrong.

#9, RE: dark mode...?
Posted by zwol on Feb-14-26 at 11:47 PM
In response to message #6
Yeah I see the exact same thing. I think it's probably DCF's ancient HTML triggering "this must not have been designed for modern screen resolutions" helpiness from browsers. The "img { max-width: 90% }" thing works very well when I poke it in via the developer tools, though.