bug: fix gruvbox cache colour being invalid (#1148)
* bug: fix gruvbox cache colour being invalid * update changelog
This commit is contained in:
parent
c8da8f16f0
commit
bcca7e2621
|
@ -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/),
|
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).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [0.9.1] - Unreleased
|
||||||
|
|
||||||
|
## Bug Fixes
|
||||||
|
|
||||||
|
- [#1148](https://github.com/ClementTsang/bottom/pull/1148): Fix Gruvbox colour string being invalid when cache usage is enabled.
|
||||||
|
|
||||||
## [0.9.0] - 2023-05-10
|
## [0.9.0] - 2023-05-10
|
||||||
|
|
||||||
## Bug Fixes
|
## Bug Fixes
|
||||||
|
|
|
@ -392,10 +392,10 @@ impl CanvasColours {
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test {
|
mod test {
|
||||||
|
|
||||||
|
use super::{CanvasColours, ColourScheme};
|
||||||
|
use crate::Config;
|
||||||
use tui::style::{Color, Style};
|
use tui::style::{Color, Style};
|
||||||
|
|
||||||
use super::CanvasColours;
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn default_selected_colour_works() {
|
fn default_selected_colour_works() {
|
||||||
let mut colours = CanvasColours::default();
|
let mut colours = CanvasColours::default();
|
||||||
|
@ -423,4 +423,15 @@ mod test {
|
||||||
Style::default().fg(Color::Red).bg(Color::Magenta),
|
Style::default().fg(Color::Red).bg(Color::Magenta),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_built_in_colour_schemes() {
|
||||||
|
let config = Config::default();
|
||||||
|
CanvasColours::new(ColourScheme::Default, &config).unwrap();
|
||||||
|
CanvasColours::new(ColourScheme::DefaultLight, &config).unwrap();
|
||||||
|
CanvasColours::new(ColourScheme::Gruvbox, &config).unwrap();
|
||||||
|
CanvasColours::new(ColourScheme::GruvboxLight, &config).unwrap();
|
||||||
|
CanvasColours::new(ColourScheme::Nord, &config).unwrap();
|
||||||
|
CanvasColours::new(ColourScheme::NordLight, &config).unwrap();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,7 +152,7 @@ pub static GRUVBOX_LIGHT_COLOUR_PALETTE: Lazy<ConfigColours> = Lazy::new(|| Conf
|
||||||
]),
|
]),
|
||||||
ram_color: Some("#427b58".into()),
|
ram_color: Some("#427b58".into()),
|
||||||
#[cfg(not(target_os = "windows"))]
|
#[cfg(not(target_os = "windows"))]
|
||||||
cache_color: Some("d79921".into()),
|
cache_color: Some("#d79921".into()),
|
||||||
swap_color: Some("#cc241d".into()),
|
swap_color: Some("#cc241d".into()),
|
||||||
arc_color: Some("#689d6a".into()),
|
arc_color: Some("#689d6a".into()),
|
||||||
gpu_core_colors: Some(vec![
|
gpu_core_colors: Some(vec![
|
||||||
|
|
Loading…
Reference in New Issue