This commit is contained in:
Joseph T. Lyons
2021-01-01 23:24:32 -05:00
committed by GitHub
parent 7eb8634ad7
commit a5f7600f6f
24 changed files with 37 additions and 37 deletions

View File

@ -159,11 +159,11 @@ impl TextStyle {
self.color_style.unwrap_or_default().is_strikethrough
}
pub fn fg(&self, foregound: Color) -> TextStyle {
pub fn fg(&self, foreground: Color) -> TextStyle {
TextStyle {
alignment: self.alignment,
color_style: Some(Style {
foreground: Some(foregound),
foreground: Some(foreground),
..self.color_style.unwrap_or_default()
}),
}