diff --git a/katrain/__main__.py b/katrain/__main__.py index 8356483..d93237c 100644 --- a/katrain/__main__.py +++ b/katrain/__main__.py @@ -160,7 +160,6 @@ class KaTrainGui(Screen, KaTrainBase): return cn = self.game.current_node last_player, next_player = self.players_info[cn.player], self.players_info[cn.next_player] - print('update state',self.play_analyze_mode == MODE_PLAY , self.nav_drawer.state != "open" , self.popup_open is None) if self.play_analyze_mode == MODE_PLAY and self.nav_drawer.state != "open" and self.popup_open is None: teaching_undo = cn.player and last_player.being_taught and cn.parent if ( diff --git a/katrain/gui.kv b/katrain/gui.kv index 97ba841..93ab688 100644 --- a/katrain/gui.kv +++ b/katrain/gui.kv @@ -826,13 +826,20 @@ AnalysisToggle: id: ownership text: i18n._('analysis:territory') - AutoSizedRectangleButton: - background_color: BOX_BACKGROUND_COLOR - size_hint_y: 0.5 - id: analysis_button - on_release: root.toggle_dropdown() - text: i18n._("btn:Analyze") - pos_hint: {'center_y':0.5} + MDFloatLayout: + AutoSizedRectangleButton: + background_color: BOX_BACKGROUND_COLOR + size_hint_y: 0.5 + pos_hint: {'center_y': 0.5, 'x': 0} + id: analysis_button + on_release: root.toggle_dropdown() + text: ' ' + i18n._("btn:Analyze") + Image: + pos_hint: {'center_y': 0.5, 'x': 0} + size_hint: None, 0.5 + width: self.height/2 + source: 'img/menu.png' + mipmap: True diff --git a/katrain/img/menu.png b/katrain/img/menu.png new file mode 100644 index 0000000..62c68e4 Binary files /dev/null and b/katrain/img/menu.png differ