You've already forked HeurAMS-legacy
fix: 若干改进
This commit is contained in:
@@ -15,33 +15,27 @@ import heurams.services.version as version
|
||||
from heurams.context import *
|
||||
|
||||
class AboutScreen(Screen):
|
||||
BINDINGS = [
|
||||
("q", "go_back", "返回"),
|
||||
("escape", "quit_app", "退出"),
|
||||
]
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
yield Header(show_clock=True)
|
||||
with Container(id="about_container"):
|
||||
yield Label("关于 '潜进' 启发式先进记忆调度器", classes="title-label")
|
||||
yield Static(f"\n版本: {version.ver} {version.codename.capitalize()}")
|
||||
yield Static(f"开发者名单:") # TODO: 取消硬编码, 和 git/vcs 集成
|
||||
yield Static(f"@pluvium27 (Wang Zhiyu)") # TODO: 取消硬编码, 和 git/vcs 集成
|
||||
yield Static(f"Copyright 2025")
|
||||
yield Static("\n")
|
||||
|
||||
yield Label("[b]关于与版本信息[/b]")
|
||||
about_text = f"""
|
||||
## 关于 "潜进"
|
||||
# 关于 "潜进"
|
||||
|
||||
版本 {version.ver} {version.stage}
|
||||
版本 {version.ver} {version.stage.capitalize()}
|
||||
|
||||
开发代号: {version.codename}
|
||||
开发代号: {version.codename.capitalize()}
|
||||
|
||||
一个基于启发式算法的开放源代码记忆调度器, 旨在帮助用户更高效地进行记忆工作与学习规划.
|
||||
|
||||
以 AGPL-3.0 开放源代码
|
||||
|
||||
## 参与贡献
|
||||
贡献人员:
|
||||
|
||||
- @pluvium27 (Wang Zhiyu)
|
||||
|
||||
# 参与贡献
|
||||
|
||||
我们是一个年轻且包容的社区, 由技术人员, 设计师, 文书工作者, 以及创意人员共同构成,
|
||||
|
||||
@@ -87,5 +81,6 @@ class AboutScreen(Screen):
|
||||
self.app.exit()
|
||||
|
||||
def on_button_pressed(self, event) -> None:
|
||||
event.stop()
|
||||
if event.button.id == "back_button":
|
||||
self.action_go_back()
|
||||
self.action_go_back()
|
||||
|
||||
Reference in New Issue
Block a user