顶栏去掉重复状态徽标 + 标题输入框与其它统一 (#77)
用户 2026-11-05 两点:
1.「编辑任务那一行,右上角还有个"进行中",那个也去掉吧,
因为在状态那里已经看到"进行中"了。」
2.「台式机采购计划这个任务标题的输入框和其他的都不一样。我感觉没必要,
字体什么的大小,和下面的备注还有什么的保持一致就行了,没必要特别特殊。」
① 删掉顶栏的状态徽标
下面「状态」区三个 chip 已经把当前态高亮出来了,顶栏再挂一个只读徽标
是同一信息画两遍。顶栏现在只剩「编辑任务/属于父任务 + 关闭」。
⚠️ `statusWord() / statusTint() / statusWash()` 三个方法**保留** ——
状态区的 statusChip 还在用。
⚠️ 上一版注释写"只留状态徽标 + 关闭",与现实不符了,已同步改掉。
② 标题输入框与备注完全统一
改前:fontSize(fontTitle=17) + Bold + height(64)
改后:fontSize(fontSmall=13) + 不加粗 + height(84)
三项参数与备注(noteDraft 那个 TextArea)**逐项一致**。
标题的"重要性"由它排在最前 + 标签主题色表达,输入区不必再靠字号放大。
编译通过,已装真机。
This commit is contained in:
@@ -1059,12 +1059,14 @@ export struct FbTaskPanel {
|
|||||||
.layoutWeight(1)
|
.layoutWeight(1)
|
||||||
.flexShrink(1)
|
.flexShrink(1)
|
||||||
|
|
||||||
Text(this.statusWord(this.statusOf()))
|
/* 🔴 #77o(用户 2026-11-05):「编辑任务那一行,右上角还有个"进行中",
|
||||||
.fontSize(FbMetric.fontTiny)
|
那个也去掉吧,因为在状态那里已经看到"进行中"了。」
|
||||||
.fontColor(this.statusTint(this.statusOf()))
|
⇒ 删掉状态徽标。下面「状态」区三个 chip 已经把当前态高亮出来了,
|
||||||
.padding({ left: 8, right: 8, top: 3, bottom: 3 })
|
这里再挂一个只读徽标纯属重复信息。
|
||||||
.backgroundColor(this.statusWash(this.statusOf()))
|
|
||||||
.borderRadius(FbMetric.radiusPill)
|
⚠️ 上一版注释说"只留状态徽标 + 关闭",现在是"只留关闭"。
|
||||||
|
⚠️ `statusWord() / statusTint() / statusWash()` 三个方法**保留** ——
|
||||||
|
状态区(statusChip)还在用它们。 */
|
||||||
|
|
||||||
FbSheetClose({
|
FbSheetClose({
|
||||||
onClose: (): void => {
|
onClose: (): void => {
|
||||||
@@ -1244,17 +1246,25 @@ export struct FbTaskPanel {
|
|||||||
titleRow() {
|
titleRow() {
|
||||||
Column({ space: 6 }) {
|
Column({ space: 6 }) {
|
||||||
this.fieldLb('任务标题')
|
this.fieldLb('任务标题')
|
||||||
|
/* 🔴🔴 #77o(用户 2026-11-05):「台式机采购计划这个任务标题的输入框
|
||||||
|
和其他的都不一样。我感觉没必要,字体什么的大小,和下面的备注还有
|
||||||
|
什么的保持一致就行了,没必要特别特殊。」
|
||||||
|
|
||||||
|
⇒ 去掉 `fontSize(fontTitle=17)` + `Bold` + `height(64)`,
|
||||||
|
改为与备注(以及截止/负责人那些控件行)**完全同一套**:
|
||||||
|
fontSize(fontSmall=13) / 不加粗 / height(84) 与备注一致
|
||||||
|
标题的"重要性"已经由它排在最前 + 标签主题色表达了,
|
||||||
|
输入区不必再靠字号放大来强调。 */
|
||||||
TextArea({ text: this.titleDraft, placeholder: '要做的事…' })
|
TextArea({ text: this.titleDraft, placeholder: '要做的事…' })
|
||||||
.placeholderColor(FbColors.faint)
|
.placeholderColor(FbColors.faint)
|
||||||
.placeholderFont({ size: FbMetric.fontBody })
|
.placeholderFont({ size: FbMetric.fontSmall })
|
||||||
.fontSize(FbMetric.fontTitle)
|
.fontSize(FbMetric.fontSmall)
|
||||||
.fontWeight(FontWeight.Bold)
|
|
||||||
/* 内容用墨黑(用户明确要求)—— 只有标签那四个字是主题色 */
|
/* 内容用墨黑(用户明确要求)—— 只有标签那四个字是主题色 */
|
||||||
.fontColor(FbColors.ink)
|
.fontColor(FbColors.ink)
|
||||||
.backgroundColor(FbColors.inputBg)
|
.backgroundColor(FbColors.inputBg)
|
||||||
.borderRadius(FbMetric.radiusS)
|
.borderRadius(FbMetric.radiusS)
|
||||||
.width('100%')
|
.width('100%')
|
||||||
.height(64)
|
.height(84)
|
||||||
.padding({ left: 12, right: 12, top: 10, bottom: 10 })
|
.padding({ left: 12, right: 12, top: 10, bottom: 10 })
|
||||||
.onChange((v: string): void => {
|
.onChange((v: string): void => {
|
||||||
this.titleDraft = v;
|
this.titleDraft = v;
|
||||||
|
|||||||
Reference in New Issue
Block a user