IFWiki now offers syntax highlighting and dark mode!

IFWiki has two new features!

IFWiki now offers dark mode!

On IFWiki, you can select “Dark mode” at the bottom of the navigation menu to try it out!

IFWiki now has a syntax highlighting extension!

See David Cornelson’s page for an example of code that uses syntax highlighting:

To use syntax highlighting on an IFWiki page, you can enclose the code in <syntaxhighlight> tags. For details, please see the extension’s page on MediaWiki.

13 Likes

Love the Dark Mode!

Just FYI…

…it’s hard to read the calendar links.

1 Like

I think I’ve fixed that problem… could you look again? You might need to do a hard refresh (or whatever it’s called) to reload the CSS.

3 Likes

I was also experiencing the same problem, and it’s now fixed for me.

2 Likes

It’s more legible now. However…

Dark Mode is about light text on a dark background. It’s a bit jarring to see the calendar links next to the rest of the site content, in its current state. I suggest changing the calendar links to white text on a darker blue background.

Another concern I have is that the site doesn’t remember your Dark Mode choice. The Dark Mode link must be clicked constantly with every page visit. This was observed without logging into IFWiki.

I really appreciate the effort to get dark mode working for IFWiki. I don’t mean my bluntness to sound like a complaint; just constructive criticism.

1 Like

Dark mode (on the wiki now) just does filter: invert( 1 ) hue-rotate( 180deg ) on everything.

However, it’s possible to exclude or change specific elements. We’ve done that for the header bar to stop it turning from dark to light. If you could give me the exact colours you want for exact things I could look into that.

If you’re not logged in I don’t think MediaWiki stores any cookies for you. When you log in it does, and the dark mode persists. The answer is to stay logged in.

1 Like

Perhaps the Dark Mode link can be hidden if you are not logged in? It’s just unexpected to have the option always flip back automatically, if you’re just visiting (arguably the largest percentage of the website’s audience).

Maybe something like this? It’s a similar colour to the existing links in the rest of the site. I just edited the browser’s inspector to get the colour to show, but with the colour shifting happening it was harder for me to find the right tone. The pixel colour you see is #1D5094, but with Dark Mode hue inverting, I used #77AAFF in the browser inspector and that’s the colour it gave me.

Anyway, it’s not my intention to demand specific changes. I’m really only trying to provide feedback. I hope that’s coming across.

1 Like

Ok, I’ve done this – what do people think?

1 Like

What I did instead was just exclude the calendar items from dark mode entirely. There are different colours for different types of event (have a look at NarraScope in June, which has a green background) and I didn’t want to play around with each individually. And with the standard dark mode, the blue/green boxes seemed to be becoming brighter in dark mode!

Does it look all right now?

1 Like

I’ve never logged into IFWiki before. I use it as a hub for jams, competitions and authoring tools. However, I can make a login later tonight and take a peek.

I did notice that calendar events have both a border and background of the same colour in the website code. If you make the links blue or white and just keep the border colour (to the 4 possible colours, even if they are brighter) with a transparent background colour background-color: transparent;, it should allow for text legibility without worrying about colours interfering. Just a suggestion, but I hope that makes sense.

Edit: You may want to tweak the border-width if you want to implement my suggestion.


Update: I logged in and checked out the site. Seems pretty good as is right now. Thanks so much for making Dark Mode happen! :slight_smile:

1 Like

I just noticed that text formatted with the <blockquote> tag has pretty bad contrast in dark mode. Example.

2 Likes

TBH I was already thinking that that contrast is not great in light mode either. (It made me think twice about using <blockquote> on this page.)

3 Likes

We can change this easily. Just give us a new colour to use, or some other CSS to apply.

2 Likes

I would suggest not changing the color at all—just the indentation is sufficient imo.

Ok, done. You might need to do a hard refresh to reload the CSS.

1 Like

Dark mode issue I just discovered (unless it’s just my browser being weird)—the text in the “image upload” dialogue doesn’t change color.

3 Likes

You were right. I think it’s fixed now though. Try it out!

3 Likes

Yep, it looks good now—thanks!

2 Likes