battery indicator optical tweak

This commit is contained in:
Constantin Leue
2026-08-04 14:48:07 +02:00
parent 98c4d7e270
commit f2f2953642
3 changed files with 13 additions and 13 deletions
@@ -1 +1 @@
,AI/Consti,AI,04.08.2026 09:42,file:///C:/Users/Consti/AppData/Roaming/LibreOffice/4; ,AI/Consti,AI,04.08.2026 12:11,file:///C:/Users/Consti/AppData/Roaming/LibreOffice/4;
Binary file not shown.
+12 -12
View File
@@ -34,16 +34,17 @@ class BatteryIndicatorBar extends StatelessWidget {
static const _redZoneEndFraction = 0.20; static const _redZoneEndFraction = 0.20;
static const _amberZoneEndFraction = 0.30; static const _amberZoneEndFraction = 0.30;
static const _barHeight = 10.0; static const _barHeight = 6.0;
static const _pillHeight = 22.0; static const _pillHeight = 22.0;
static const _pillMinWidth = 46.0; static const _pillMinWidth = 46.0;
/// Durchsichtiger als der Fusszeilen-Hintergrund (0.72 in /// Weiss statt schwarz (Doku: "fuer den Indikator-Hintergrund weiss
/// MissionFooterBar) - der Balken liegt ueber diesem bereits halb- /// benutzen, damit die Farben mehr zur Geltung kommen und leuchten") -
/// opaken Hintergrund, ohne eigene zusaetzliche Abdunkelung waere er /// ein heller Hintergrund laesst die gesaettigten Rot/Orange/Gruen-Toene
/// also automatisch schon genauso transparent; dieser niedrige Wert /// der gefuellten Zonen im Kontrast kraeftiger wirken als der zuvor
/// sorgt dafuer, dass er sogar noch etwas heller/durchsichtiger wirkt. /// dunkle, in dem sie eher verschwommen. Weiterhin transparenter als der
static const _trackAlpha = 0.12; /// Fusszeilen-Hintergrund (0.72 in MissionFooterBar).
static const _trackAlpha = 0.35;
static const _fillAlpha = 0.55; static const _fillAlpha = 0.55;
static const _pillNeutralAlpha = 0.55; static const _pillNeutralAlpha = 0.55;
static const _pillWarningAlpha = 0.8; static const _pillWarningAlpha = 0.8;
@@ -96,16 +97,15 @@ class BatteryIndicatorBar extends StatelessWidget {
return Stack( return Stack(
clipBehavior: Clip.none, clipBehavior: Clip.none,
children: [ children: [
// Transparenter Hintergrund fuer den ungefuellten Rest (Doku: // Weisser, transparenter Hintergrund fuer den ungefuellten
// "Transparenz des Hintergrunds hoeher machen als in der // Rest (Doku: "weiss benutzen, damit die Farben mehr zur
// Fusszeile") - nur der dunkle Fusszeilen-Hintergrund scheint // Geltung kommen und leuchten").
// durch.
Positioned( Positioned(
left: 0, left: 0,
right: 0, right: 0,
top: (_pillHeight - _barHeight) / 2, top: (_pillHeight - _barHeight) / 2,
height: _barHeight, height: _barHeight,
child: ColoredBox(color: Colors.black.withValues(alpha: _trackAlpha)), child: ColoredBox(color: Colors.white.withValues(alpha: _trackAlpha)),
), ),
Positioned( Positioned(
left: 0, left: 0,