Skip to content

Commit

Permalink
fix(color-scale): fixing color of size unit
Browse files Browse the repository at this point in the history
see #684
  • Loading branch information
MartinFillon authored and cafkafk committed Dec 5, 2023
1 parent 458468f commit b7e7946
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/theme/default_theme.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use ansiterm::Colour::*;
use ansiterm::Style;
use std::default::Default;

use crate::output::color_scale::ColorScaleOptions;
use crate::output::color_scale::{ColorScaleMode, ColorScaleOptions};
use crate::theme::ui_styles::*;

impl UiStyles {
Expand Down Expand Up @@ -124,10 +125,10 @@ impl UiStyles {

impl Size {
pub fn colourful(scale: ColorScaleOptions) -> Self {
if scale.size {
Self::colourful_gradient()
} else {
if scale.size && scale.mode == ColorScaleMode::Fixed {
Self::colourful_fixed()
} else {
Self::colourful_gradient()
}
}

Expand Down

0 comments on commit b7e7946

Please sign in to comment.