feat: 更名「时序图设计」并发布 V1.0.5
- 软件名:时序图设计器 → 时序图设计(窗口标题 / 关于页 / 导出标题 / 文档 / Android 应用名) - 左上角标志区只显示「时序图」 - 版本号 1.0.4+5 → 1.0.5+6
This commit is contained in:
+3
-3
@@ -78,7 +78,7 @@ class _SequenceDiagramAppState extends State<SequenceDiagramApp> {
|
||||
/// 原生窗口标题通道(在 Windows runner 中实现 SetWindowText)。
|
||||
static const MethodChannel _windowChannel = MethodChannel('seqstudio/window');
|
||||
|
||||
/// 更新原生窗口标题为「时序图设计器 - <文件名 | 未命名文件>」,
|
||||
/// 更新原生窗口标题为「时序图设计 - <文件名 | 未命名文件>」,
|
||||
/// 有未保存修改时追加 ` *`。
|
||||
void _updateWindowTitle() {
|
||||
final String name = _controller.filePath == null
|
||||
@@ -86,7 +86,7 @@ class _SequenceDiagramAppState extends State<SequenceDiagramApp> {
|
||||
: _controller.filePath!.split(RegExp(r'[\\/]')).last;
|
||||
final String dirty = _controller.dirty ? ' *' : '';
|
||||
_windowChannel
|
||||
.invokeMethod<void>('setTitle', '时序图设计器 - $name$dirty')
|
||||
.invokeMethod<void>('setTitle', '时序图设计 - $name$dirty')
|
||||
.catchError((Object _) {});
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@ class _SequenceDiagramAppState extends State<SequenceDiagramApp> {
|
||||
builder: (BuildContext context, Widget? child) {
|
||||
final Tokens tokens = Tokens.of(_controller.brightness);
|
||||
return MaterialApp(
|
||||
title: '时序图设计器 · Sequence Diagram Studio',
|
||||
title: '时序图设计 · Sequence Diagram Studio',
|
||||
debugShowCheckedModeBanner: false,
|
||||
theme: buildTheme(tokens),
|
||||
// 固定文本缩放;系统栏图标随主题亮度自动切换(透明系统栏,
|
||||
|
||||
Reference in New Issue
Block a user