Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 2.15 KB

THEMES.md

File metadata and controls

51 lines (33 loc) · 2.15 KB

Themes

Version 1.7 brings basic support for themes, and 1.9 extends it to include keyboard shortcuts and support for multiple theme files.

Creating and editing themes

  • Look at the Theme class in katrain/gui/theme.py.
  • Make a theme<yourthemename>.json file in your <home dir>/.katrain directory and specify any variables from the above class you want to override, e.g.
{
 "BACKGROUND_COLOR": [1,0,0,1],
 "KEY_STOP_ANALYSIS": "f10",
 "MISTAKE_SOUNDS": ["jeff.wav","what.wav"]
}
  • All resources (including icons, which can not be renamed for now) will be looked up in <home dir>/.katrain first, so files with identical names there can be used to override sounds and images.
  • If variables are specified in multiple theme files, the latest alphabetically takes precedence. That is, each later theme file overwrites the settings from any previous one.

Installation

  • To install a theme, simply unzip the theme.zip to your .katrain folder.
    • On Windows you can find it in C:\Users\you\.katrain and on linux in ~/.katrain.
    • When in doubt, the general settings dialog will also show the location.
  • To uninstall a theme, remove theme.json and all relevant images from that folder.

Available themes

Alternate board/stones theme by "koast"

Download

Preview

Lizzie-like theme

  • Theme created by Eric W, includes modified board, stones
  • Images taken from Lizzie by featurecat and contributors.
  • Hides hints for low visit/uncertain moves instead of showing small dots.

Download

Preview

Jeff sounds

  • This theme makes Jeff comment Ahhh? and What?! when you make mistakes.
  • Sounds provided by Mikkgo.

Download