Skip to content

Commit

Permalink
Merge branch 'master' of github.com:sanderland/katrain into 1.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander Land committed Jan 18, 2021
2 parents 673827d + 0822ee5 commit 5476be2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ experiments
.buildozer
bin
gtp.log
*.zip
log.txt
sgfout
sgf_selfplay
Expand Down
13 changes: 12 additions & 1 deletion THEMES.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
# Themes
Version 1.7 brings basic support for themes.

## Creating and editing themes

* Look at the `Theme` class in `katrain/gui/theme.py`.
* Make a `theme.json` file in your `<home dir>/.katrain` directory and specify any variables from the above class you want to override, e.g.
```json
{
"BACKGROUND_COLOR": [1,0,0,1]
}
```
* 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.
* 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.

## Available themes

* See [here](https://github.com/sanderland/katrain/blob/master/themes/) for available themes.
* 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.

Binary file added themes/koast-theme.zip
Binary file not shown.
Binary file added themes/koast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5476be2

Please sign in to comment.