ui: Settings overlay 에 연결된 Device 이름 표시
기존 App / Firmware / Serial 정보 섹션에 "Device" 행 추가. 연결된 BLE 디바이스명 (예: VBT26050202) 노출. connectedDeviceName 이 비어있으면 행 자체 안 그림 → 미연결 상태에선 이전과 동일하게 깔끔. (feature/tab-navigation 의 설정 → 앱 정보에도 동일 표시 추가)
This commit is contained in:
+16
@@ -1655,6 +1655,22 @@ fun PiezoMonitoringView(appState: AppState) {
|
|||||||
color = MlPrimary,
|
color = MlPrimary,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
// Device Name (연결된 디바이스명 — VBT...)
|
||||||
|
val devName by bleManager.connectedDeviceName
|
||||||
|
if (devName.isNotEmpty()) {
|
||||||
|
Row(
|
||||||
|
modifier = Modifier.fillMaxWidth(),
|
||||||
|
verticalAlignment = Alignment.CenterVertically
|
||||||
|
) {
|
||||||
|
Text("Device", fontSize = 13.sp, color = MlSecondaryText)
|
||||||
|
Spacer(modifier = Modifier.weight(1f))
|
||||||
|
Text(devName,
|
||||||
|
fontSize = 13.sp,
|
||||||
|
fontWeight = FontWeight.SemiBold,
|
||||||
|
color = MlPrimary,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
// Firmware Version (mid? → rid: 응답에서 파싱, 연결 시 자동)
|
// Firmware Version (mid? → rid: 응답에서 파싱, 연결 시 자동)
|
||||||
val fwVersion by bleManager.firmwareVersion
|
val fwVersion by bleManager.firmwareVersion
|
||||||
Row(
|
Row(
|
||||||
|
|||||||
Reference in New Issue
Block a user