kde-workspace/plasma/applets/batterymonitor
Ivailo Monev f4d40c28e9 plasma: semi-working notifications applet reimplementation
the application notifications works and is nearly complete, the jobs
notification is yet to be done. so far it looks like this:
https://ibb.co/GTGMKtQ

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-17 07:50:27 +03:00
..
battery-oxygen-inkscape.svgz plasma: organize sub-directories 2015-12-24 22:48:47 +02:00
battery-oxygen.svgz plasma: organize sub-directories 2015-12-24 22:48:47 +02:00
batterymonitor.cpp plasma: do not even set preferred size for batterymonitor and devicenotifier applets 2023-09-16 06:49:42 +03:00
batterymonitor.h plasma: do not even set preferred size for batterymonitor and devicenotifier applets 2023-09-16 06:49:42 +03:00
CMakeLists.txt plasma: semi-working notifications applet reimplementation 2023-09-17 07:50:27 +03:00
Messages.sh plasma: organize sub-directories 2015-12-24 22:48:47 +02:00
plasma-applet-batterymonitor.desktop plasma: reimplement battery applet 2023-09-02 22:18:05 +03:00
README.txt plasma: organize sub-directories 2015-12-24 22:48:47 +02:00

Obviously, this is a battery monitor applet for Plasma.

The catch of those four .svg files is the following:

battery-inkscape.svg is an so-called "Inkscape SVG", it's the one
		you want to edit end export to
battery.svg as plain .svg file.

Likewise, for the Oxygen theme.

This file contains various layers:

* Battery The "background", an empty battery
* AcAdapter A flash, saying "Ac is plugged in"
* Fill10 10% filled, red
* Fill20 20% filled, orange
* Fill20 30% filled, green (and so on...)
* Fill30
* Fill40
* Fill50
* Fill60
* Fill70
* Fill80
* Fill90
* Fill010
* Shadow An Oxygen-style shadow under the battery

The Battery layer is always rendered as the first step. On top
of that, we render only one of the FillN layers. If the AC
Adapter is plugged in, we paint that layer on top of the cake.
It makes no difference when we paint the Shadow, there's no
overlap between shadow and other layers.