I hope anyone can help here: I am trying to add theming to my Forge apps, so that it displays in dark when a user has dark mode enabled. It works fine for an app that opens a modal dialog via issue action. However, for another app, where we have an app project page, I tried to do it exactly the same way.
I added
import { view } from '@forge/bridge';
view.theme.enable()
I’ve just tried to replicate this in my own Custom UI app that displays on a project page, but I was unable to - I tried in a few different project types as well to see if that could be the issue.
Are you seeing this error across multiple different projects?
Have you tried in a different instance with the same result?
I’m wondering if somehow your instance, or project is missing this setting.
Thanks for the answer. I tried it on several instances and in different project types and the behaviour was the same.
Then I checked the version of forge bridge I used. It was 2.4.0, after updating to version 2.6.0 the problem didn’t occur again . So that was the reason why it wasn’t working and I think we can close this topic