Package featurecat.lizzie.theme
Class Theme
- java.lang.Object
-
- featurecat.lizzie.theme.Theme
-
public class Theme extends java.lang.Object
Theme Allow to load the external image & theme config
-
-
Field Summary
Fields Modifier and Type Field Description org.json.JSONObject
config
java.lang.String
path
static java.lang.String
pathPrefix
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.awt.Color
array2Color(org.json.JSONArray a, java.awt.Color defaultColor)
Convert option color array to Colorjava.awt.image.BufferedImage
background()
java.lang.String
backgroundPath()
java.awt.image.BufferedImage
blackStone()
java.lang.String
blackStonePath()
java.awt.Color
blunderBarColor()
The color of the blunder barjava.util.Optional<java.util.Map<java.lang.Double,java.awt.Color>>
blunderNodeColors()
The color list of the blunder nodejava.util.Optional<java.util.List<java.lang.Double>>
blunderWinrateThresholds()
The threshold list of the blunder winratejava.awt.image.BufferedImage
board()
java.lang.String
boardPath()
static org.json.JSONArray
color2Array(java.awt.Color c)
Convert Color to option color arrayjava.awt.Color
commentBackgroundColor()
The background color of the comment paneljava.awt.Color
commentFontColor()
The font color of the commentint
commentFontSize()
The font size of the commentjava.awt.Color
commentNodeColor()
The color of the node with the commentjava.lang.String
fontName()
Use custom font for general textint
minimumBlunderBarWidth()
The minimum width of the blunder barint
nodeColorMode()
The node color modevoid
save()
java.awt.Color
scoreMeanLineColor()
int
shadowSize()
The size of the shadowboolean
showCommentNodeColor()
Show the node with the comment colorint
stoneIndicatorType()
Current stone indicator typejava.lang.String
uiFontName()
Use custom font for the UIjava.awt.image.BufferedImage
whiteStone()
java.lang.String
whiteStonePath()
java.lang.String
winrateFontName()
Use custom font for the Leela Zero winrate on the stonejava.awt.Color
winrateLineColor()
The color of the winrate linejava.awt.Color
winrateMissLineColor()
The color of the line that missed the winrateint
winrateStrokeWidth()
The stroke width of the winrate line
-
-
-
Method Detail
-
blackStone
public java.awt.image.BufferedImage blackStone()
-
whiteStone
public java.awt.image.BufferedImage whiteStone()
-
board
public java.awt.image.BufferedImage board()
-
background
public java.awt.image.BufferedImage background()
-
blackStonePath
public java.lang.String blackStonePath()
-
whiteStonePath
public java.lang.String whiteStonePath()
-
boardPath
public java.lang.String boardPath()
-
backgroundPath
public java.lang.String backgroundPath()
-
fontName
public java.lang.String fontName()
Use custom font for general text
-
uiFontName
public java.lang.String uiFontName()
Use custom font for the UI
-
winrateFontName
public java.lang.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 java.awt.Color commentBackgroundColor()
The background color of the comment panel
-
commentFontColor
public java.awt.Color commentFontColor()
The font color of the comment
-
commentNodeColor
public java.awt.Color commentNodeColor()
The color of the node with the comment
-
winrateLineColor
public java.awt.Color winrateLineColor()
The color of the winrate line
-
scoreMeanLineColor
public java.awt.Color scoreMeanLineColor()
-
winrateMissLineColor
public java.awt.Color winrateMissLineColor()
The color of the line that missed the winrate
-
blunderBarColor
public java.awt.Color blunderBarColor()
The color of the blunder bar
-
blunderWinrateThresholds
public java.util.Optional<java.util.List<java.lang.Double>> blunderWinrateThresholds()
The threshold list of the blunder winrate
-
blunderNodeColors
public java.util.Optional<java.util.Map<java.lang.Double,java.awt.Color>> blunderNodeColors()
The color list of the blunder node
-
array2Color
public static java.awt.Color array2Color(org.json.JSONArray a, java.awt.Color defaultColor)
Convert option color array to Color
-
color2Array
public static org.json.JSONArray color2Array(java.awt.Color c)
Convert Color to option color array
-
save
public void save()
-
-