* refactor priorities

* performance report doodling

* shutup pycharm

* more doodling

* doodle tricol

* tweak report, fix bug in insert

* reorder colors

* another metric

* sorting engines, trying to catch exc

* restructure engine err

* restructure engine err

* test stuff

* test report

* test report

* test and readme

* test and readme

* layout

* engine recov

* pixelfix and exes

* readme

* keyboard shortcut override

* oops

* mistakes only deeper

* black and readme

* readme

* fix #421, scale repor

* Add shortcut variables (#420)

* Add shortcut variables

* Address comments and missed shortcuts

* fix shortcuts

* rename, design report, fix report

* make translators work more

* relative mid/opening/endgame bounds

* win size dbg

* more errros

* entry

* jeff mode

* fix

* readme

* edit THEMES.md

* edit katrain/core/ai.py, edit katrain/gui/kivyutils.py

* jp (#423)

* edit THEMES.md

* edit katrain/__main__.py, edit katrain/gui/kivyutils.py and 1 other changes

* Update katrain.po (#425)

1.9 first French .po

* edit katrain/i18n/locales/fr/LC_MESSAGES/katrain.mo

* edit katrain/core/ai.py, edit katrain/gui/popups.py

* bluedabadee

* fix sgf and black

* edit katrain/i18n/locales/fr/LC_MESSAGES/katrain.po

* ko

* Update zh-TW translation (#426)

* cn

* cn

* Some corrections to Chinese translations (#427)

* some corrections in cn and tw

* better trans

* edit CONTRIBUTIONS.md, edit katrain/i18n/locales/cn/LC_MESSAGES/katrain.mo and 1 other changes

* de

* tw

* player what only

* add green background to better value (#428)

* edit katrain/gui/popups.py, edit katrain/gui/theme.py

* Russian for 1.9 (#432)

* edit katrain/i18n/locales/ru/LC_MESSAGES/katrain.po, edit katrain/gui.kv and 1 other changes

* sound fix

* sound fix

* fmt

* fix sound

* edit THEMES.md, edit CONTRIBUTIONS.md and 1 other changes

* sound fix

* Do not use ffpyplayer on Windows (#434)

* edit katrain/gui/sound.py

* no pr

* jeff theme

* stopsound

* sound and theme fix

* font fix and more errs

* French po corrections (#441)

Former translations were misleading. It should be accurate now.

* add mouse scroll to browser through node variations. (#442)

* add mouse scroll to browser through node variations.

* add mouse scroll to browser through node variations.

* add mouse scroll to browser through node variations.

* edit katrain/popups.kv, edit katrain/__main__.py and 2 other changes

* windows binary, black

* linux binary

* edit INSTALL.md

* edit .github/workflows/osxbuild.yaml

* edit .github/workflows/osxbuild.yaml

* edit .github/workflows/osxbuild.yaml

Co-authored-by: Sander Land <sander.land@cognite.com>
Co-authored-by: roux g. buciu <11182210+electricRGB@users.noreply.github.com>
Co-authored-by: kaorahi <38910552+kaorahi@users.noreply.github.com>
Co-authored-by: Dontbtme <66470440+Dontbtme@users.noreply.github.com>
Co-authored-by: Liou, Guan-Cheng <Tony-Liou@users.noreply.github.com>
Co-authored-by: Ching-yu Lin <60384727+chingyulin@users.noreply.github.com>
Co-authored-by: xiaoyifang <105986+xiaoyifang@users.noreply.github.com>
Co-authored-by: Alexander Kiselev <satoshi.yoda.register.264@gmail.com>
Co-authored-by: Sander Land <Sander@bioeng219-lap.isd.kcl.ac.uk>
Co-authored-by: Carton He <cartonhe@gmail.com>
Co-authored-by: Sander Land <sander.land@aroni.fritz.box>
Co-authored-by: Sander Land <sander.land@futurefacts.nl>
This commit is contained in:
50 files changed
+1657 -284

No files matched your search

+58 -2
View File
@@ -25,11 +25,13 @@
#<Label>:
# canvas.before:
# Color:
# rgba: RED
# rgba: [1,0,0,1]
# Line:
# rectangle: (*self.pos,*self.size)
# width: 1
# mixins
<BackgroundMixin>:
canvas.before:
@@ -45,6 +47,49 @@
rounded_rectangle: (self.x + root.outline_width, self.y + root.outline_width, self.width - 2 * root.outline_width, self.height - 2*root.outline_width, root.background_radius,root.background_radius,root.background_radius,root.background_radius,max(1,root.height))
width: root.outline_width or 1
# table cells, stats panel mainly
<TableCellLabel>:
font_size: self.height/3
padding: [Theme.CP_PADDING,Theme.CP_PADDING]
line_height: 0.8
halign: 'center'
canvas.before:
Color:
rgba: root.background_color
Rectangle:
size: self.size
pos: self.pos
canvas:
Color:
rgba: root.outline_color
Line: # left
points: (root.x + root.outline_width,root.y,root.x + root.outline_width,root.y+root.size[1])
width: root.outline_width if 'left' in root.outlines else 1e-6
cap: 'square'
Line: # right
points: (root.x + root.size[0] - root.outline_width,root.y,root.x + root.size[0] - root.outline_width,root.y+root.size[1])
width: root.outline_width if 'right' in root.outlines else 1e-6
cap: 'square'
Line: # top
points: (root.x, root.y+root.size[1]-root.outline_width, root.x + root.size[0], root.y+root.size[1]-root.outline_width)
width: root.outline_width if 'top' in root.outlines else 1e-6
cap: 'square'
Line: # bottom
points: (root.x, root.y+root.outline_width, root.x + root.size[0], root.y+root.outline_width)
width: root.outline_width * int('bottom' in root.outlines) + 1e-6
cap: 'square'
<TableHeaderLabel>:
font_size: self.height/2.5
<TableStatLabel>:
canvas.before:
Color:
rgba: root.bar_color
Rectangle:
pos: root.x if root.side=='right' else root.x+root.size[0]*(1 - min(1,root.value/root.scale)), root.y
size: root.size[0] * min(1,root.value/root.scale), root.size[1]
# new widgets
@@ -273,7 +318,8 @@
padding: [2*CP_PADDING,CP_PADDING,CP_PADDING,CP_PADDING]
subtype_label: subtype_label
CircleWithText:
size_hint: 0.32, 1
size_hint_x: 0.32 if root.alignment=='right' else EPSILON
opacity: 1 if root.alignment=='right' else 0
player: root.player
text: str(root.captures)
BoxLayout:
@@ -299,6 +345,11 @@
valign: 'middle'
shorten: root.player_type==PLAYER_HUMAN # overflow/cut rank off AI names
max_lines: 1
CircleWithText:
size_hint_x: EPSILON if root.alignment=='right' else 0.32
opacity: 0 if root.alignment=='right' else 1
player: root.player
text: str(root.captures)
<PauseButton>:
height: self.width
@@ -765,6 +816,11 @@
icon: 'analysis.png'
shortcut: ''
on_action: root.open_game_analysis_popup()
AnalysisMenuItem:
text: i18n._("analysis:report")
icon: 'analysis.png'
shortcut: 'F3'
on_action: root.open_report_popup()
AnalysisMenuItem:
text: i18n._("analysis:continuous")
icon: 'play.png'