From 2dbd99e660fa8a3410907753340912dbad4925a1 Mon Sep 17 00:00:00 2001 From: rememberber Date: Sat, 27 Nov 2021 09:39:34 +0800 Subject: [PATCH] power form added --- .../java/com/luoboduner/moo/info/ui/form/PowerSourceForm.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/luoboduner/moo/info/ui/form/PowerSourceForm.java b/src/main/java/com/luoboduner/moo/info/ui/form/PowerSourceForm.java index a9564fc..8be0bed 100644 --- a/src/main/java/com/luoboduner/moo/info/ui/form/PowerSourceForm.java +++ b/src/main/java/com/luoboduner/moo/info/ui/form/PowerSourceForm.java @@ -113,11 +113,11 @@ public class PowerSourceForm { temperatureLabel.setIcon(new FlatSVGIcon("icons/Charging.svg")); powerTextBuilder.append("Charging"); } else { - temperatureLabel.setIcon(new FlatSVGIcon("icons/indicator_light.svg")); + temperatureLabel.setIcon(new FlatSVGIcon("icons/indicator_light.svg", 10, 10)); powerTextBuilder.append("Remaining Time: " + formatTimeRemaining(powerSource.getTimeRemainingEstimated())); } -// powerTextBuilder.append(String.format(" / Temperature: %.1f°C", powerSource.getTemperature())); + powerTextBuilder.append(String.format(" / %.1f°C", powerSource.getTemperature())); temperatureLabel.setText(powerTextBuilder.toString()); powerPanel.add(temperatureLabel, new GridConstraints(2, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));