From 8c2d93a79fa5e2e23d61c44243046ff38cab66f6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 30 May 2026 19:49:37 +0800 Subject: [PATCH] =?UTF-8?q?refactor(gui):=20=E5=88=A0=E9=99=A4=E5=B7=B2?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E8=A2=AB=20main=20=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E7=9A=84=20log=5Fcolor=5Fconfig=20fallback=20=E6=AE=B5=20(201?= =?UTF-8?q?=20=E2=86=92=20183)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gui/gui_app.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/gui/gui_app.py b/gui/gui_app.py index a4255af..d98eed2 100644 --- a/gui/gui_app.py +++ b/gui/gui_app.py @@ -42,24 +42,6 @@ from gui.components.periodic_refreshers import ( setup_close_handler, ) -# 导入日志颜色配置模块 -try: - from gui.components.log_color_config import ( - get_color_config, - apply_operation_color, - get_operation_type, - ) -except ImportError: - # 如果模块不存在,使用空函数作为回退 - def get_color_config(theme: str = "litera"): - return {} - - def apply_operation_color(*args, **kwargs): - pass - - def get_operation_type(line: str) -> str | None: - return None - # 抑制 PyTorch DataLoader 的 pin_memory 警告(当没有 GPU 时,EasyOCR 会触发此警告) warnings.filterwarnings("ignore", message=".*pin_memory.*", category=UserWarning)