diff --git a/data/config/config.toml b/data/config/config.toml index 6479ca1..fc1c2bc 100644 --- a/data/config/config.toml +++ b/data/config/config.toml @@ -6,10 +6,10 @@ daystamp_override = -1 timestamp_override = -1 # [调试] 一键通过 -quick_pass = 1 +quick_pass = true # 对于每个项目的默认新记忆原子数量 -scheduled_num = 999 +scheduled_num = 8 # UTC 时间戳修正 仅用于 UNIX 日时间戳的生成修正, 单位为秒 timezone_offset = +28800 # 中国标准时间 (UTC+8) @@ -17,7 +17,7 @@ timezone_offset = +28800 # 中国标准时间 (UTC+8) [interface] [interface.memorizor] -autovoice = 0 # 自动语音播放, 仅限于 recognition 组件 +autovoice = false # 自动语音播放, 仅限于 recognition 组件 [algorithm] default = "SM-2" # 主要算法; 可选项: SM-2, SM-15M, FSRS diff --git a/src/heurams/interface/screens/memoqueue.py b/src/heurams/interface/screens/memoqueue.py index a880d89..35f58bf 100644 --- a/src/heurams/interface/screens/memoqueue.py +++ b/src/heurams/interface/screens/memoqueue.py @@ -90,7 +90,7 @@ class MemScreen(Screen): s = f"阶段: {self.procession.phase.name}\n" # 收藏状态 if self.repo is not None: - fav_status = "★" if self._is_current_atom_favorited() else "☆" + fav_status = "已收藏" if self._is_current_atom_favorited() else "未收藏" s += f"收藏: {fav_status}\n" if config_var.get().get("debug_topline", 0): try: @@ -113,7 +113,7 @@ class MemScreen(Screen): s += f"{stat}\n" except Exception as e: s = str(e) - # s += f"当前进度: {self.procession.process() + 1}/{self.procession.total_length()}" + s += f"进度: {self.procession.process() + 1}/{self.procession.total_length()}" return s def update_display(self): diff --git a/src/heurams/interface/widgets/mcq_puzzle.py b/src/heurams/interface/widgets/mcq_puzzle.py index 8499b94..84ed336 100644 --- a/src/heurams/interface/widgets/mcq_puzzle.py +++ b/src/heurams/interface/widgets/mcq_puzzle.py @@ -55,6 +55,8 @@ class MCQPuzzle(BasePuzzleWidget): def _load(self): cfg = self.atom.registry["nucleon"]["puzzles"][self.alia] + if cfg['mapping'] == {}: + self.screen.rating = 5 # type: ignore self.puzzle = pz.MCQPuzzle( cfg["mapping"], cfg["jammer"], int(cfg["max_riddles_num"]), cfg["prefix"] ) @@ -68,9 +70,9 @@ class MCQPuzzle(BasePuzzleWidget): logger.debug(self.puzzle.options) else: current_options = self.puzzle.options[len(self.inputlist)] - yield Label(setting["primary"], id="sentence") - yield Label(self.puzzle.wording[len(self.inputlist)], id="puzzle") - yield Label(f"当前输入: {self.inputlist}", id="inputpreview") + yield Label(setting["primary"], id="sentence") + yield Label(self.puzzle.wording[len(self.inputlist)], id="puzzle") + yield Label(f"当前输入: {self.inputlist}", id="inputpreview") # 渲染当前问题的选项 with Container(id="btn-container"): diff --git a/src/heurams/interface/widgets/recognition.py b/src/heurams/interface/widgets/recognition.py index 3917a7f..f56f963 100644 --- a/src/heurams/interface/widgets/recognition.py +++ b/src/heurams/interface/widgets/recognition.py @@ -90,7 +90,7 @@ class Recognition(BasePuzzleWidget): for item in cfg["secondary"]: if isinstance(item, list): for j in item: - yield Markdown(f"### {j}") #TODO ANNOTATION + yield Markdown(f"### 笔记: {j}") #TODO ANNOTATION continue if isinstance(item, Dict): total = ""