From 41b8dd61d0aa7d04f3d8b58b2529e75b99802bb8 Mon Sep 17 00:00:00 2001 From: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> Date: Thu, 26 Nov 2020 19:14:27 -0500 Subject: [PATCH] bug: Fix inverted battery colours (#331) Fixes colour theming for batteries being flipped. --- CHANGELOG.md | 6 +++++ src/canvas/canvas_colours.rs | 35 +++++++-------------------- src/canvas/widgets/battery_display.rs | 19 +++++---------- 3 files changed, 21 insertions(+), 39 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 24ff2c40..cf257620 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.5.3] - 2020-11-26 + +## Bug Fixes + +- [#331](https://github.com/ClementTsang/bottom/pull/331): Fixes custom battery colour levels being inverted. + ## [0.5.2] - 2020-11-25 ## Bug Fixes diff --git a/src/canvas/canvas_colours.rs b/src/canvas/canvas_colours.rs index 4979f597..316b8e3c 100644 --- a/src/canvas/canvas_colours.rs +++ b/src/canvas/canvas_colours.rs @@ -23,8 +23,9 @@ pub struct CanvasColours { pub text_style: Style, pub widget_title_style: Style, pub graph_style: Style, - // Full, Medium, Low - pub battery_bar_styles: Vec