Class Theme

java.lang.Object
featurecat.lizzie.theme.Theme

public class Theme extends Object
Theme Allow to load the external image invalid input: '&' theme config
  • Field Details

    • pathPrefix

      public static String pathPrefix
    • path

      public String path
    • config

      public org.json.JSONObject config
  • Constructor Details

    • Theme

      public Theme(org.json.JSONObject uiConfig)
    • Theme

      public Theme(String themeName)
  • Method Details

    • blackStone

      public BufferedImage blackStone()
    • whiteStone

      public BufferedImage whiteStone()
    • board

      public BufferedImage board()
    • background

      public BufferedImage background()
    • blackStonePath

      public String blackStonePath()
    • whiteStonePath

      public String whiteStonePath()
    • boardPath

      public String boardPath()
    • backgroundPath

      public String backgroundPath()
    • fontName

      public String fontName()
      Use custom font for general text
    • uiFontName

      public String uiFontName()
      Use custom font for the UI
    • winrateFontName

      public String winrateFontName()
      Use custom font for the Leela Zero winrate on the stone
    • stoneIndicatorType

      public int stoneIndicatorType()
      Current stone indicator type
    • showCommentNodeColor

      public boolean showCommentNodeColor()
      Show the node with the comment color
    • shadowSize

      public int shadowSize()
      The size of the shadow
    • winrateStrokeWidth

      public int winrateStrokeWidth()
      The stroke width of the winrate line
    • minimumBlunderBarWidth

      public int minimumBlunderBarWidth()
      The minimum width of the blunder bar
    • commentFontSize

      public int commentFontSize()
      The font size of the comment
    • nodeColorMode

      public int nodeColorMode()
      The node color mode
    • commentBackgroundColor

      public Color commentBackgroundColor()
      The background color of the comment panel
    • commentFontColor

      public Color commentFontColor()
      The font color of the comment
    • commentNodeColor

      public Color commentNodeColor()
      The color of the node with the comment
    • winrateLineColor

      public Color winrateLineColor()
      The color of the winrate line
    • scoreMeanLineColor

      public Color scoreMeanLineColor()
    • winrateMissLineColor

      public Color winrateMissLineColor()
      The color of the line that missed the winrate
    • blunderBarColor

      public Color blunderBarColor()
      The color of the blunder bar
    • blunderWinrateThresholds

      public Optional<List<Double>> blunderWinrateThresholds()
      The threshold list of the blunder winrate
    • blunderNodeColors

      public Optional<Map<Double,Color>> blunderNodeColors()
      The color list of the blunder node
    • array2Color

      public static Color array2Color(org.json.JSONArray a, Color defaultColor)
      Convert option color array to Color
    • color2Array

      public static org.json.JSONArray color2Array(Color c)
      Convert Color to option color array
    • save

      public void save()