Class IntelliJTheme


  • public class IntelliJTheme
    extends java.lang.Object
    This class supports loading IntelliJ .theme.json files and using them as a Laf. .theme.json files are used by Theme plugins for IntelliJ IDEA and other JetBrains IDEs that are based on IntelliJ platform. Here you can find IntelliJ Theme plugins: https://plugins.jetbrains.com/search?tags=Theme The IntelliJ .theme.json file are documented here: http://www.jetbrains.org/intellij/sdk/docs/reference_guide/ui_themes/themes_customize.html
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  IntelliJTheme.ThemeLaf  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String author  
      boolean dark  
      java.lang.String name  
    • Constructor Summary

      Constructors 
      Constructor Description
      IntelliJTheme​(java.io.InputStream in)
      Loads a IntelliJ .theme.json file from the given input stream.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static FlatLaf createLaf​(IntelliJTheme theme)
      Creates a Laf instance for the given IntelliJ theme.
      static FlatLaf createLaf​(java.io.InputStream in)
      Loads a IntelliJ .theme.json file from the given input stream and creates a Laf instance for it.
      static boolean install​(java.io.InputStream in)
      Loads a IntelliJ .theme.json file from the given input stream, creates a Laf instance for it and installs it.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        public final java.lang.String name
      • dark

        public final boolean dark
      • author

        public final java.lang.String author
    • Constructor Detail

      • IntelliJTheme

        public IntelliJTheme​(java.io.InputStream in)
                      throws java.io.IOException
        Loads a IntelliJ .theme.json file from the given input stream. The input stream is automatically closed. Using a buffered input stream is not necessary.
        Throws:
        java.io.IOException
    • Method Detail

      • install

        public static boolean install​(java.io.InputStream in)
        Loads a IntelliJ .theme.json file from the given input stream, creates a Laf instance for it and installs it. The input stream is automatically closed. Using a buffered input stream is not necessary.
      • createLaf

        public static FlatLaf createLaf​(java.io.InputStream in)
                                 throws java.io.IOException
        Loads a IntelliJ .theme.json file from the given input stream and creates a Laf instance for it. The input stream is automatically closed. Using a buffered input stream is not necessary.
        Throws:
        java.io.IOException
      • createLaf

        public static FlatLaf createLaf​(IntelliJTheme theme)
        Creates a Laf instance for the given IntelliJ theme.