Openhab discourse new color scheme

I noticed that the color scheme, especially in dark mode, has changed slightly.

Now, backtick quoted texts no longer have obvious distinction against normal text. I think they used to have a different background, but now they have the same background as normal text.

1 Like

Youā€™re absolutely right. (And Iā€™m not happy)

Can you post a screenshot of what you are seeing? They look the same to me as they were:

image

I donā€™t use darkmode and honestly Iā€™m not sure how to force the forum into dark mode on demand.

Maybe the difference comes from different browsers? Iā€™m using Brave.

For the most part no one really changes the configuration of the forum unless something breaks. There may have been a recent upgrade to the software that changed things.

here you areā€¦
grafik
Unfortunately, I have no old screenshot, But was more like that (fakedā€¦):
Screenshot 2025-02-22 200900
Browser here is (and was) Firefox, but it also worked in Chrome, which I use at work.

just checked on meta.discourse

dark mode

light mode


seems normal on their forum and I havenā€™t seen anything referencing a change. I spend some time in that forum.

Thanks!!! I wasnā€™t able to upload a screenshot at the time, something about aws error.

This is exactly what meant / want. I have also not changed my browser.

This isnā€™t as bad, because their background isnā€™t so dark compared to ours.

user preferences ā†’ interface ā†’ color palette.

also very easy to change from the help & about menu

edit: yeah noā€¦ duhā€¦ :smiling_face: I was thinking the UI not the forum

I havenā€™t checkedā€¦ has this change also affected the mainui?

AAhhhhhā€¦ no, it seems something is screwed up with openHAB forum dark mode. I switch it to dark mode and topic window stays light but header turns black and items in header become un-readable
this is dark mode below!

One thing that has changed recently is the light/dark mode switcher plugin became a Discourse official plugin

openHAB also apparently using a custom plugin for code fences

The deprecated message really isnā€™t that big a deal bt obviously a custom plugin and so that could be what is screwing up the text as per OP

I think that plugin may be only to add the additional code fence buttons not in discourse and may not do anything to the formating of the actual textā€¦ donā€™t know

The syntax highlighting for Ruby is also not quite right

Item_Name_Should_Be_One_Color

Iā€™m not sure who has access to do anything about this. Moderators do not (or I canā€™t find it).

@ysc, @digitaldan, @kai, as the administrators can you shed any light on this situation? Maybe the recent update and our old custom code highlighter are no longer fully compatible.

Itā€™s a CSS variable, --inline-code-bg both here and on meta.discourse.org when switching the theme to ā€œdarkā€ (bottom left), whose value is rgba(0, 0, 0, 0.35) (black, 35% opacity)

Not sure when or why or whether there were a change.
I havenā€™t found a way to override it in the settings, though we could override it directly in CSS.

It uses highlight.js which appears to highlight the same on Demo - highlight.js, so not sure we can do much about this.

1 Like

Should be better now.

Thanks!

The syntax highlighting issue though, it seems that itā€™s a bug in their token parser, so not a theme/styling issue.

Iā€™m not familiar with how it works with discourse. Is it possible to use a different syntax highlighter?

Is the Discourse stuff (for openhab installation) open-sourced?

You can add languages (eg. GitHub - Jai-Community/discourse-highlightjs-jai: Discourse theme component to highlight Jai syntax) but not change the highlighter or (I believe) existing languages.

yes Discourse is open-source. See here

I meant how itā€™s configured and used for this forum community.openhab.org, the actual files and configurations (excluding sensitive login data of course)

Iā€™ve created a PR against highlight.js. Not sure how / when that will ever percolate down to our installation. I guess it will have to go through Discourse first?

Itā€™s a super simple fix. @ysc could we possibly patch our installation with it?

1 Like

Discourse is configured primarily though the interface. An administrator uses the same interface as regular users but has access to a bunch of stuff normal users canā€™t see, tabs and pages where changes can be made. It runs in a docker. For really low level stuff admins have access to a Rails console and the docker file