mirror of
https://github.com/eza-community/eza.git
synced 2025-12-23 05:36:50 +00:00
parent
458468f902
commit
b7e7946e9e
1 changed files with 5 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue