Trac dark mode

Hello, The dark mode for trac is now available.

If you encounter issues feel free to post here, or add them as tickets in trac directly.

You can also keep using the light mode if you prefer, or switch to it if the dark mode has an issue.

I will prepare a patch after receiving enough user feedback to adress issues :slight_smile:

Known issues:
-Priority for tickets is not seperately highlighted in the ticket lis
-File view of txt files is improveable
-Ticket box Link + yellow BG contrast is improveable
-File view is completely unreadable in some cases
-logout link color (Maybe visited link color?)

5 Likes

How do one do that? Can’t find a setting for it here Making sure you're not a bot!

The contrast is not the best for my eyes, while here, on discourse, it’s fine in dark mode.

1 Like

Is the contrast with the background of the page? If so you can just change the Document background color in the Appearence preferences.

What contrast would you prefer? More or less? There are also prefers more and less contrast media querries that I can implement in subsequent versions

More contrast. I’m currently on an macOS/Chromium

1 Like

Interesting, the Contrast is really high for me on Haiku.


The background color here comes from your User Agent, that is from Chrome itself…

You may be able to use an extension for a per-site overide (I’ve not vetted this extension): GitHub - bramus/chrome-dark-mode-toggle: Real control over Light Mode / Dark Mode on a per-site basis! · GitHub

1 Like

The Timeline page is mostly fine (apart from Logout link). A ticket page is not so much (orange links vs background)

1 Like

Ah, the orange on yellowish? Okay. Noted

1 Like

The builtin attachement viewer is unreadable in dark mode:

For an example:

Interesting. I had tested this, and in my test only the highlighted line and frame had any issues. I suspect there may be severall different types here at play.

In any case, adding to the list, thanks!

Isn’t it possible to use the .css from this site (discuss.haiku-os.org) for Trac?
For cohency?

I like the .css here most!

No, css across websites is not compatible. I could use some colors from the discourse css to achieve a uniform look, but personally I don’t like it much.

The trac dark mode was modellled after the existing dark mode of haiku-os.org and api.haiku-os.org

I would like a bit of opinions/poll, currently the Api docs use Orange as a signal color heavilly, The main site uses orange And blue, and the new trac uses orange and yellow.

Now, as one “idea” here was to make these things a bit more consistent, what would be a good idea going forward:

  • remove yellow from trac, use only orange?
  • remove orange from trac as main color (only decoration) use only yellow?
  • use lightblue for links in trac instead?

Some of these ideas could then propogate back to the api docs.

Thoughts?

1 Like