Replies: 2 comments
-
@najaarv the current theme is stored in the settings (user, workspace, or folder). You may want to see previous discussions about multi-tenancy: |
Beta Was this translation helpful? Give feedback.
0 replies
-
@najaarv You will need to customize |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a custom extension where I have cleaned up most preferences and registered Themes as a new standalone Menu Item where I have two options-Light/Dark which is still based on
Themeservice
from@theia/core/lib/browser/theming
. It looks like this:Now, I have started a single instance of theia using yarn start from browser-app directory and hosted it on a server. Multiple users can access the hosted URL and they all could open different widgets and they all have different workspaces. Now the problem is if one of the users changes the theme from the app URL/web page on his browser, the theming in all other users' workspaces changes. Why does this happen? Is the theme value stored as part of the backend application state? I'm pretty sure that's the case because even if I change the theme in browser incognito mode, it is persisted and the last selected theme is brought back up on the next browser reload. If so, what else is part of the backend state? I don't really need other preferences except theming, so how can I move this theme service logic to frontend based state management?
If that is not possible, does every user need to have their own application/backend processes running so that their theming preferences are unique and not shared? Can anyone help with the steps to do that?
Beta Was this translation helpful? Give feedback.
All reactions