Skip to content

Commit

Permalink
manual_font_settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ogkalu2 committed Aug 11, 2024
1 parent cedeea1 commit c5c0ca1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/ui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ def _create_main_content(self):

return content_widget

def set_font_settings_enabled(self, enabled: bool):
def set_manual_font_settings_enabled(self, enabled: bool):
self.min_font_spinbox.setEnabled(enabled)
self.max_font_spinbox.setEnabled(enabled)
self.block_font_color_button.setEnabled(enabled)
Expand Down Expand Up @@ -651,3 +651,4 @@ def brush_redo(self):

def delete_selected_box(self):
self.image_viewer.delete_selected_rectangle()

2 changes: 2 additions & 0 deletions comic.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,13 @@ def batch_mode_selected(self):
self.disable_hbutton_group()
self.translate_button.setEnabled(True)
self.cancel_button.setEnabled(True)
self.set_manual_font_settings_enabled(False)

def manual_mode_selected(self):
self.enable_hbutton_group()
self.translate_button.setEnabled(False)
self.cancel_button.setEnabled(False)
self.set_manual_font_settings_enabled(True)

def on_image_processed(self, index: int, rendered_image: np.ndarray, image_path: str):
if index == self.current_image_index:
Expand Down

0 comments on commit c5c0ca1

Please sign in to comment.