Installing Black Theme in IDE 1.8.19 failed

IDE 2.3.6 uses the Black High Contrast theme, which I like and want to use in 1.8.19 too.

I downloaded it from github
and placed the extracted \theme folder in C:\Program Files (x86)\Arduino\lib\theme, replacing the One Dark theme. But after restarting IDE 1.8.19, the Preferences > Theme dropdown list still does not include it.

Hi @Terrypin. I'll provide instructions you can follow to install the theme:

  1. Select File > Preferences... (or Arduino > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Take note of the path shown in the "Sketchbook location" field in the "Preferences" dialog.
    This is the path to your "sketchbook folder".
  3. Click the "Cancel" button.
  4. Select File > Quit (or Arduino > Quit Arduino for macOS users) from the Arduino IDE menus.
    All Arduino IDE windows will close.
  5. Click the following link to open the homepage of the theme's GitHub repository in your web browser:
    https://github.com/JairajJangle/Arduino-Black-Theme
  6. Click the "Code ▾" button you see on that page.
  7. Select Download ZIP from the menu.
    A download of the ZIP file of the library will start.
  8. Wait for the download to finish.
  9. Extract the downloaded file.
  10. Copy the theme subfolder of the extracted folder to the sketchbook folder path you saw at step 2 of these instructions.

The folder structure must look like this:

<sketchbook folder>
|_ theme
   |_ syntax
   |   |_ etc...
   |_ theme.txt
   |_ etc...

(where <sketchbook folder> is the path set in Arduino IDE's "Sketchbook location" preference)

The instructions I provided are for use in the case where you only need a single theme. With this installation method, Arduino IDE will simply use the theme you installed as its "default theme".

If you want to be able to switch between multiple themes via the "Theme" preference, then a different installation method is required. I chose the single theme installation approach because the multi-theme installation approach is a bit more complicated. However, if you do want to switch between multiple themes I'd be happy to provide the alternative installation instructions.

Found the solution shortly afterwards. There was another version of \theme in my \SKETCHES folder. That's presumably the recommended location for themes, not the method I used from my source. It holds multiple themes as ZIPs. Preferences > Theme now has it listed as 'Default'.

Thanks @ptillisch, we crossed in the post. As you see I arrived at essentially the same conclusion; my choice was for multiple options. :slightly_smiling_face:

Yes.

There are a couple of problems with installing themes into the Arduino IDE installation folder:

The installation is not modifiable if you are using the Microsoft Store package, or using macOS.

In addition, you would need to reinstall the theme after each update. Of course that isn't really a problem anymore since Arduino IDE 1.x is no longer maintained and thus Arduino will not release any new versions, but it is was at the time the feature of being able to install themes in the sketchbook was added.