diff --git a/applets/battery/package/contents/ui/ExpandedRepresentation.qml b/applets/battery/package/contents/ui/ExpandedRepresentation.qml index 73d6d8fa..a313ebf2 100644 --- a/applets/battery/package/contents/ui/ExpandedRepresentation.qml +++ b/applets/battery/package/contents/ui/ExpandedRepresentation.qml @@ -73,7 +73,7 @@ FocusScope { batteryType: model["Type"] percent: pmSource.data["Battery0"]["Percent"] hasBattery: true - pluggedIn: pmSource.data["Battery0"]["State"] === "Charging" && pmSource.data["Battery0"]["Is Power Supply"] + pluggedIn: pmSource.data["Battery0"]["State"] === "Charging" } Column { diff --git a/applets/battery/package/contents/ui/battery.qml b/applets/battery/package/contents/ui/battery.qml index 428171f9..1da78bfb 100644 --- a/applets/battery/package/contents/ui/battery.qml +++ b/applets/battery/package/contents/ui/battery.qml @@ -136,7 +136,7 @@ Item { RowLayout { id: batteryLayout anchors.fill: parent - spacing: 0 + spacing: -10 PlasmaComponents.Label { Layout.fillWidth: true Layout.fillHeight: true @@ -152,7 +152,7 @@ Item { Layout.fillHeight: true hasBattery: true percent: pmSource.data["Battery"]["Percent"] - //pluggedIn: batteryContainer.pluggedIn + pluggedIn: pmSource.data["AC Adapter"]["Plugged in"] // height: batteryContainer.iconSize // width: height }