Fixes the following error:
/usr/share/plasma/plasmoids/org.kde.plasma.battery/contents/ui/CompactRepresentation.qml:74:
ReferenceError: batteryLabel is not defined
batteryLabel does not exist ever since commit
27ac0b7608 back in 2016, so an attempt to
calculate some icon's height based on its size was bound to fail.
Rounding errors made scrolling behave weirdly for devices supplying very
low scroll delta values. This is fixed now. For non-high resolution devices,
scrolling is now also aligned to 5%, just like the keyboard shortcuts.
BUG: 432331
FIXED-IN: 5.22
There's no point, since it always says "-" and just covers up the icon.
Let's only show the overlay if there are actually any batteries.
BUG: 435890
FIXED-IN: 5.22
--Battery monitor in compact representation must align
its battery icon/s in center. That was first noticed
by a user in some systray cases.
BUG: 421038
Summary:
if there is no battery don't show 0%, but a - on
the badge. still show the badge to show the option is not broken,
but don't show a weird 0% of a non existing battery
Test Plan: works on both systems with or without battery
Reviewers: #plasma, davidedmundson
Reviewed By: #plasma, davidedmundson
Subscribers: broulik, davidedmundson, plasma-devel
Tags: #plasma
Differential Revision: https://phabricator.kde.org/D4606
Summary:
add an option to show a text label with the percentage value
in the battery icon. text will be shown bottom-right
of the icon with a background for readability, similar to
unread count for IM or email apps.
code was already there but effectively dead code
Test Plan: tried both with and without label
Reviewers: broulik, #plasma
Reviewed By: broulik, #plasma
Subscribers: broulik, plasma-devel
Tags: #plasma
Differential Revision: https://phabricator.kde.org/D3603
This fixes the battery icon errorneously showing an empty red battery on a desktop
computer with a wireless mouse/keyboard; instead the "no battery" icon with a
red cross is shown.
CHANGELOG: Battery icon no longer errorneously reports an empty battery if computer has none
CCBUG: 362924
Reviewed-By: mgraesslin
Fixes treating a mouse as a regular battery. I have not yet fully decided whether it makes
sense to "randomly" show an input device battery (like in 4.x) when there are no regular
batteries or just, like it does now, only show regular ones on the icon
BUG: 343679
Now that the AC Adapter is back in the dataengine, we can reflect the state properly again.
--Plasma Errata
This reverts commit bb6eabc0c9.
Conflicts:
applets/batterymonitor/package/contents/ui/batterymonitor.qml
If we have a ListView that is not interactive and resizes to show everything,
we can have a Row { Repeater {} } just as well, which will also work faster
and has less reported bugs.
This is the beginning of revision history for this module. If you
want to look at revision history older than this, please refer to the
techbase wiki for how to use Git history grafting. At the time of
writing, this wiki is located here:
http://community.kde.org/Frameworks/GitOldHistory
If you have already performed the grafting and you don't see any
history beyond this commit, try running "git log" with the "--follow"
argument.
Branched from the monolithic repo kde-workspace, frameworks branch, at commit
049113e719dd2fc4446d054fa1a3aada330094f0