From 8cc986ce7be5771e4a9b0bb29643a136ec1289fb Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 7 Jun 2026 02:59:03 +1000 Subject: [PATCH] fix: show bt device batt in sublabel Sublabel instead of icon Also animate sublabel --- modules/nexus/pages/BluetoothPage.qml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/modules/nexus/pages/BluetoothPage.qml b/modules/nexus/pages/BluetoothPage.qml index 60b179a3..af8be06b 100644 --- a/modules/nexus/pages/BluetoothPage.qml +++ b/modules/nexus/pages/BluetoothPage.qml @@ -123,20 +123,14 @@ PageBase { StyledText { Layout.fillWidth: true - text: device.connected ? qsTr("Connected") : qsTr("Saved") + text: device.connected ? qsTr("Connected%1").arg(device.modelData?.batteryAvailable ? " • " + Math.round(device.modelData.battery * 100) + "%" : "") : qsTr("Saved") color: Colours.tPalette.m3outline font: Tokens.font.label.small elide: Text.ElideRight + animate: true } } - MaterialIcon { - visible: device.connected && (device.modelData?.batteryAvailable ?? false) - text: Icons.getBatteryIcon(device.modelData?.battery ?? 0) - color: (device.modelData?.battery ?? 1) < 0.2 ? Colours.palette.m3error : Colours.palette.m3onSurfaceVariant - font: Tokens.font.icon.medium - } - Item { Layout.fillHeight: true implicitWidth: height