From 8c7e85b923a7c94e9425f6670d1051de1ebe8f17 Mon Sep 17 00:00:00 2001 From: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> Date: Fri, 9 Apr 2021 15:57:54 -0400 Subject: [PATCH] change: Tweak default light colour scheme (#450) Removes/tweaks some really light colours that might cause issues with a white background. For example, yellow on white didn't look so great, so I adjusted the memory/rx colours for this mode. --- CHANGELOG.md | 2 ++ src/constants.rs | 15 +++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 76d05cb6..51483dea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,6 +49,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - [#449](https://github.com/ClementTsang/bottom/pull/449): Add decimal place to actual memory usage in process widget for values greater or equal to 1GiB. +- [#450](https://github.com/ClementTsang/bottom/pull/450): Tweak `default-light` colour scheme to look less terrible on white terminals. + ## Bug Fixes - [#416](https://github.com/ClementTsang/bottom/pull/416): Fixes grouped vs ungrouped modes in the processes widget having inconsistent spacing. diff --git a/src/constants.rs b/src/constants.rs index c9afbeea..932a66f5 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -43,6 +43,21 @@ pub static DEFAULT_LIGHT_MODE_COLOUR_PALETTE: Lazy = Lazy::new(|| selected_text_color: Some("white".to_string()), graph_color: Some("black".to_string()), disabled_text_color: Some("gray".to_string()), + ram_color: Some("blue".to_string()), + swap_color: Some("red".to_string()), + rx_color: Some("blue".to_string()), + tx_color: Some("red".to_string()), + rx_total_color: Some("LightBlue".to_string()), + tx_total_color: Some("LightRed".to_string()), + cpu_core_colors: Some(vec![ + "LightMagenta".to_string(), + "LightBlue".to_string(), + "LightRed".to_string(), + "Cyan".to_string(), + "Green".to_string(), + "Blue".to_string(), + "Red".to_string(), + ]), ..ConfigColours::default() });