refactor: simpler names

This commit is contained in:
graelo 2020-05-23 09:30:09 +02:00
parent 4eca53fd85
commit 0d45a2872a
5 changed files with 276 additions and 139 deletions

View file

@ -15,20 +15,6 @@ pub fn get_color(color_name: &str) -> Box<&dyn color::Color> {
}
}
/// Holds color-related data, for clarity.
///
/// - `focus_*` colors are used to render the currently focused matched text.
/// - `normal_*` colors are used to render other matched text.
/// - `hint_*` colors are used to render the hints.
pub struct RenderingColors<'a> {
pub focus_fg_color: Box<&'a dyn color::Color>,
pub focus_bg_color: Box<&'a dyn color::Color>,
pub normal_fg_color: Box<&'a dyn color::Color>,
pub normal_bg_color: Box<&'a dyn color::Color>,
pub hint_fg_color: Box<&'a dyn color::Color>,
pub hint_bg_color: Box<&'a dyn color::Color>,
}
#[cfg(test)]
mod tests {
use super::*;