diff options
Diffstat (limited to 'src/config/raw/theme/style.rs')
-rw-r--r-- | src/config/raw/theme/style.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/config/raw/theme/style.rs b/src/config/raw/theme/style.rs index fe4d6a8..9c5c144 100644 --- a/src/config/raw/theme/style.rs +++ b/src/config/raw/theme/style.rs @@ -1,7 +1,6 @@ use colors_transform::{Color, Rgb}; use ratatui::style::{self, Style}; use serde::Deserialize; -use unicode_width::UnicodeWidthStr; use crate::config::clean::theme::style::AppStyle; @@ -111,8 +110,6 @@ impl AppStyleRaw { pub fn to_style_theme(&self) -> AppStyle { let bg = Self::str_to_color(self.bg.as_str()); let fg = Self::str_to_color(self.fg.as_str()); - let prefix = self.prefix.clone(); - let prefix_width = prefix.width(); let mut modifier = style::Modifier::empty(); if self.bold { @@ -128,7 +125,7 @@ impl AppStyleRaw { AppStyle::default() .set_fg(fg) .set_bg(bg) - .set_prefix(prefix, prefix_width) + .set_prefix(self.prefix.clone()) .insert(modifier) } |