diff --git a/src/heurams/interface/__main__.py b/src/heurams/interface/__main__.py index fd14a4a..79032ef 100644 --- a/src/heurams/interface/__main__.py +++ b/src/heurams/interface/__main__.py @@ -8,14 +8,13 @@ from heurams.services.logger import get_logger logger = get_logger(__name__) - class HeurAMSApp(App): TITLE = "潜进" CSS_PATH = "css/main.tcss" - SUB_TITLE = "启发式先进记忆调度器" + SUB_TITLE = "启发式辅助记忆调度器" BINDINGS = [ ("q", "quit", "退出"), - ("d", "toggle_dark", "改变色调"), + ("d", "toggle_dark", "切换色调"), ("1", "app.push_screen('dashboard')", "仪表盘"), ("2", "app.push_screen('precache_all')", "缓存管理器"), ("3", "app.push_screen('nucleon_creator')", "创建新单元"), @@ -34,6 +33,9 @@ class HeurAMSApp(App): def on_button_pressed(self, event: Button.Pressed) -> None: self.exit(event.button.id) + def action_do_nothing(self): + print("DO NOTHING") + self.refresh() def environment_check(): from pathlib import Path diff --git a/src/heurams/interface/screens/about.py b/src/heurams/interface/screens/about.py index 7d3c75b..15cbf70 100644 --- a/src/heurams/interface/screens/about.py +++ b/src/heurams/interface/screens/about.py @@ -32,9 +32,14 @@ class AboutScreen(Screen): 以 AGPL-3.0 开放源代码 -贡献人员: +开发人员: - - @pluvium27 (Wang Zhiyu) + - [@pluvium27](https://github.com/pluvium27) (Wang Zhiyu) + +特别感谢: + + - [Piotr A. Woźniak](https://supermemo.guru/wiki/Piotr_Wozniak): SuperMemo-2 算法 + - [Thoughts Memo](https://www.zhihu.com/people/L.M.Sherlock): 文献参考 # 参与贡献 diff --git a/src/heurams/interface/screens/dashboard.py b/src/heurams/interface/screens/dashboard.py index 9bf0063..fec13e0 100644 --- a/src/heurams/interface/screens/dashboard.py +++ b/src/heurams/interface/screens/dashboard.py @@ -25,17 +25,17 @@ import pathlib logger = get_logger(__name__) class DashboardScreen(Screen): - + SUB_TITLE = "仪表盘" def compose(self) -> ComposeResult: yield Header(show_clock=True) yield ScrollableContainer( - Label(f'欢迎使用 "潜进" 启发式先进记忆调度器', classes="title-label"), + Label(f'欢迎使用 "潜进" 启发式辅助记忆调度器', classes="title-label"), Label(f"当前 UNIX 日时间戳: {timer.get_daystamp()}"), Label(f'时区修正: UTC+{config_var.get()["timezone_offset"] / 3600}'), Label("选择待学习或待修改的记忆单元集:", classes="title-label"), ListView(id="union-list", classes="union-list-view"), Label( - f'"潜进" 开放源代码软件项目 | 版本 {version.ver} {version.codename.capitalize()} | Wang Zhiyu 2025' + f'"潜进" 启发式辅助记忆调度器 | 版本 {version.ver} {version.codename.capitalize()} 2025' ), ) yield Footer() diff --git a/src/heurams/interface/screens/memorizor.py b/src/heurams/interface/screens/memorizor.py index 1e6067b..d7cf15c 100644 --- a/src/heurams/interface/screens/memorizor.py +++ b/src/heurams/interface/screens/memorizor.py @@ -23,9 +23,10 @@ logger = get_logger(__name__) class MemScreen(Screen): BINDINGS = [ ("q", "pop_screen", "返回"), - #("p", "prev", "复习上一个"), - ("d", "toggle_dark", "改变色调"), + ("p", "prev", "复习上一个"), + ("d", "toggle_dark", ""), ("v", "play_voice", "朗读"), + ("0,1,2,3", "app.push_screen('about')", ""), ] if config_var.get()["quick_pass"]: diff --git a/src/heurams/interface/screens/preparation.py b/src/heurams/interface/screens/preparation.py index 11b73dd..ab64444 100644 --- a/src/heurams/interface/screens/preparation.py +++ b/src/heurams/interface/screens/preparation.py @@ -17,7 +17,15 @@ from heurams.context import * class PreparationScreen(Screen): - BINDINGS = [("q", "go_back", "返回"), ("p", "precache", "预缓存音频")] + + SUB_TITLE = "准备记忆集" + + BINDINGS = [ + ("q", "go_back", "返回"), + ("p", "precache", "预缓存音频"), + ("d", "toggle_dark", ""), + ("0,1,2,3", "app.push_screen('about')", ""), + ] def __init__(self, nucleon_file: pathlib.Path, electron_file: pathlib.Path) -> None: super().__init__(name=None, id=None, classes=None) @@ -62,6 +70,7 @@ class PreparationScreen(Screen): def action_go_back(self): self.app.pop_screen() + def action_precache(self): from ..screens.precache import PrecachingScreen diff --git a/src/heurams/interface/shim.py b/src/heurams/interface/shim.py index 647df2a..f00bdc0 100644 --- a/src/heurams/interface/shim.py +++ b/src/heurams/interface/shim.py @@ -1,4 +1,4 @@ -"""Kernel 操作先进函数库""" +"""Kernel 操作辅助函数库""" import random import heurams.kernel.particles as pt