How to set Default Color Theme, File Icon Theme?

As we are customizing extensions, plugins in package.json , In the same way how can we configure all other things like Color theme, File Icon Theme etc.,

Yes, you can set a default theme. Here is an example. Please note, there are limitations. By the way, you can initialize your app with any default preferences; see here.

1 Like

@kittaakos I tried Below config,

{
    "private": true,
    "theia": {
        "frontend": {
            "config": {
                "applicationName": "Theia Python IDE",
                "preferences": {
                    "files.enableTrash": true
                },
                "defaultTheme": "Dracula",
                ...

Still Dark(theia) theme is reflecting …

@DilLip_Chowdary I believe the default preference should be placed under preferences like so:

"theia": {
    "target": "electron",
    "frontend": {
      "config": {
        "applicationName": "Theia Electron Example",
        "preferences": {
          "workbench.colorTheme": "Default Light+"
        }
      }
    }
  },

I believe it does not work properly at the moment due to the limitation mentioned previously (https://github.com/eclipse-theia/theia/issues/6999#issuecomment-602573882). We should find a way to properly apply the default theme, and avoid the current race condition.

1 Like

Has anyone had any luck yet in getting the theme they declare in workbench.colorTheme to trigger on startup as their default theme?