88 */
99import { useCallback , useEffect , useState } from "react" ;
1010import { invoke } from "@tauri-apps/api/core" ;
11- import { Button , EmptyState , Loading , StatusLine } from "../ui/primitives" ;
11+ import { Button , EmptyState , Loading , StatusLine , Text } from "../ui/primitives" ;
1212
1313interface AsrPairView {
1414 wrong : string ;
@@ -89,9 +89,9 @@ export function AsrConfusionPanel() {
8989 < div >
9090 < div style = { { fontSize : 12 , color : "#374151" , marginBottom : 8 } } >
9191 < b > ASR 同音混淆闭环</ b > { " " }
92- < span style = { { color : "#9ca3af" , fontSize : 11 } } >
92+ < Text tone = "ink-3" style = { { fontSize : 11 } } >
9393 画像来自离线精修采纳流;确认=纠错规则(共现才替换)+ 反哺热词;asr_confusion.json 可校准
94- </ span >
94+ </ Text >
9595 </ div >
9696 { msg && (
9797 < div style = { { fontSize : 11 , color : "#047857" , background : "#ecfdf5" , border : "1px solid #6ee7b7" , borderRadius : 6 , padding : "4px 8px" , marginBottom : 6 } } >
@@ -106,7 +106,7 @@ export function AsrConfusionPanel() {
106106 < div style = { { fontSize : 12 , marginBottom : 4 } } >
107107 待确认候选({ candidates . length } )
108108 { view != null && view . dismissed_count > 0 && (
109- < span style = { { color : "#9ca3af" , fontSize : 11 , marginLeft : 6 } } > 已忽略 { view . dismissed_count } 条</ span >
109+ < Text tone = "ink-3" style = { { fontSize : 11 , marginLeft : 6 } } > 已忽略 { view . dismissed_count } 条</ Text >
110110 ) }
111111 </ div >
112112 { candidates . length === 0 ? (
@@ -122,11 +122,11 @@ export function AsrConfusionPanel() {
122122 < span style = { { background : "#fff7ed" , border : "1px solid #fdba74" , borderRadius : 4 , padding : "1px 6px" } } >
123123 { c . wrong }
124124 </ span >
125- < span style = { { color : "#9ca3af" } } > →</ span >
125+ < Text tone = "ink-3" > →</ Text >
126126 < span style = { { background : "#ecfdf5" , border : "1px solid #6ee7b7" , borderRadius : 4 , padding : "1px 6px" } } >
127127 { c . right }
128128 </ span >
129- < span style = { { color : "#9ca3af" , fontSize : 11 } } > ×{ c . count } </ span >
129+ < Text tone = "ink-3" style = { { fontSize : 11 } } > ×{ c . count } </ Text >
130130 < span style = { { marginLeft : "auto" , display : "flex" , gap : 4 } } >
131131 < button style = { { ...rowBtn , color : "#047857" , borderColor : "#6ee7b7" } } onClick = { ( ) => void confirm ( c . wrong , c . right ) } >
132132 确认纠错+热词
0 commit comments