diff --git a/katrain/gui/badukpan.py b/katrain/gui/badukpan.py index b93f6ed..4c4221a 100644 --- a/katrain/gui/badukpan.py +++ b/katrain/gui/badukpan.py @@ -409,27 +409,6 @@ class BadukPanWidget(Widget): self.canvas.after.clear() self.active_pv_moves = [] - # children of current moves in undo / review - alpha = GHOST_ALPHA - if katrain.analysis_controls.show_children.active: - for child_node in current_node.children: - points_lost = child_node.points_lost - move = child_node.move - if move and move.coords is not None: - if child_node.analysis_ready: - self.active_pv_moves.append( - (move.coords, [move.gtp()] + child_node.candidate_moves[0]["pv"], current_node) - ) - Color(*CHILDREN_BORDER_COLOR) - Line( - circle=( - self.gridpos_x[move.coords[0]], - self.gridpos_y[move.coords[1]], - self.stone_size - 1.2, - ), - width=dp(1.2), - ) - # hints or PV if katrain.analysis_controls.hints.active and not game_ended: hint_moves = current_node.candidate_moves @@ -473,6 +452,29 @@ class BadukPanWidget(Widget): width=dp(1.2), ) + + # children of current moves in undo / review + alpha = GHOST_ALPHA + if katrain.analysis_controls.show_children.active: + for child_node in current_node.children: + points_lost = child_node.points_lost + move = child_node.move + if move and move.coords is not None: + if child_node.analysis_ready: + self.active_pv_moves.append( + (move.coords, [move.gtp()] + child_node.candidate_moves[0]["pv"], current_node) + ) + Color(*STONE_COLORS[child_node.player]) + for s in range(0,360,30): + Line( + circle=( + self.gridpos_x[move.coords[0]], + self.gridpos_y[move.coords[1]], + self.stone_size - 1.2,s,s+15 + ), + width=dp(1.2), + ) + # hover next move ghost stone if self.ghost_stone: self.draw_stone(*self.ghost_stone, next_player, alpha=ghost_alpha) diff --git a/katrain/gui/style.py b/katrain/gui/style.py index fdf9108..df3d8f9 100644 --- a/katrain/gui/style.py +++ b/katrain/gui/style.py @@ -63,8 +63,7 @@ VISITS_FRAC_SMALL = 0.1 GHOST_ALPHA = 0.5 TOP_MOVE_ALPHA = 0.4 -TOP_MOVE_BORDER_COLOR = [46 / 255, 65 / 255, 88 / 255, 0.9] -CHILDREN_BORDER_COLOR = [188 / 255, 65 / 255, 46 / 255, 0.9] +TOP_MOVE_BORDER_COLOR = [10 / 255, 200 / 255, 250 / 255, 1.0] CHILD_SCALE = 0.95 # ponder light