feat(ui): 标题精简为「标题+括号说明」;移除流程图快捷按钮;视图语义移入帮助;发布 v1.3.2
- 画布标题:条形 / 圆周改为单行「标题 +(线型图例)」,不再单独占一行; 导出 PNG / SVG 的标题区同步精简 - 工具栏:移除右上角冗余的「流程图」快捷按钮(入口保留在三段切换中) - 帮助中心「相位分区与视图」:补充三视图图例(FS/SS、同心圆环、流程图读法), 并同步示例动作数 / 默认相位 / 导出入口等过时文案 - 版本号 1.3.2+18,更新说明 release/RELEASE_NOTES_v1.3.2.md
This commit is contained in:
+20
-19
@@ -88,7 +88,7 @@ class CanvasOverlays extends StatelessWidget {
|
||||
left: left,
|
||||
top: 12,
|
||||
right: right,
|
||||
child: IgnorePointer(child: _Title(t: t, mode: mode, project: c.project)),
|
||||
child: IgnorePointer(child: _Title(t: t, mode: mode)),
|
||||
),
|
||||
// 圆周视图左侧信息列:图例 + 选中卡片 + 依赖图例。
|
||||
if (showPanels && showLeftColumn)
|
||||
@@ -180,16 +180,17 @@ class _Card extends StatelessWidget {
|
||||
}
|
||||
}
|
||||
|
||||
/// 顶部标题浮层:显示当前视图名称与双刻度/图例说明。
|
||||
/// 顶部标题浮层:单行展示「视图名 +(线型图例)」。
|
||||
///
|
||||
/// 更完整的视图语义(同心圆环 / 循环换算 / 流程图读法)已收敛到「帮助」中,
|
||||
/// 画布上只保留最精简的一句括号说明,节省纵向空间。
|
||||
class _Title extends StatelessWidget {
|
||||
const _Title({required this.t, required this.mode, required this.project});
|
||||
const _Title({required this.t, required this.mode});
|
||||
|
||||
/// 主题令牌。
|
||||
final Tokens t;
|
||||
/// 当前视图模式。
|
||||
final ViewMode mode;
|
||||
/// 当前项目,用于展示循环时长等文案。
|
||||
final Project project;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -198,22 +199,22 @@ class _Title extends StatelessWidget {
|
||||
ViewMode.circular => '圆周时序视图',
|
||||
ViewMode.flow => '流程图视图',
|
||||
};
|
||||
final String sub = switch (mode) {
|
||||
ViewMode.bar => '箭头表示动作之间关联(绿色实线 FS 严格顺序 / 琥珀虚线 SS 并行重叠)',
|
||||
ViewMode.circular =>
|
||||
'同心圆环 = 动作层;箭头 = 执行顺序(绿色实线 FS 严格顺序,琥珀虚线 SS 并行重叠);1 圈 = 1 循环 = ${tfmt(project.cycle.durationMs, project.units)} = 360° = 100%',
|
||||
// 流程图不重复时序视图的线型说明,仅保留标题。
|
||||
// 括号说明:仅保留线型图例(流程图不重复时序视图的说明)。
|
||||
final String suffix = switch (mode) {
|
||||
ViewMode.bar => '(绿色实线 FS 严格顺序 / 琥珀虚线 SS 并行重叠)',
|
||||
ViewMode.circular => '(绿色实线 FS 严格顺序 / 琥珀虚线 SS 并行重叠)',
|
||||
ViewMode.flow => '',
|
||||
};
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: <Widget>[
|
||||
Text(title, style: TextStyle(color: t.text, fontSize: 16, fontWeight: FontWeight.w600)),
|
||||
if (sub.isNotEmpty) ...<Widget>[
|
||||
const SizedBox(height: 4),
|
||||
Text(sub, style: TextStyle(color: t.dim, fontSize: 11)),
|
||||
],
|
||||
],
|
||||
return Text.rich(
|
||||
TextSpan(children: <InlineSpan>[
|
||||
TextSpan(
|
||||
text: title,
|
||||
style: TextStyle(color: t.text, fontSize: 16, fontWeight: FontWeight.w600)),
|
||||
if (suffix.isNotEmpty)
|
||||
TextSpan(text: ' $suffix', style: TextStyle(color: t.dim, fontSize: 11)),
|
||||
]),
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user