use ratatui::style::{Color, Style};
pub fn is_scrollbar_thumb_style(style: Style) -> bool {
matches!(
style.bg,
Some(Color::DarkGray) | Some(Color::Gray) | Some(Color::White) | Some(Color::Rgb(180, 180, 180)) | Some(Color::Rgb(140, 140, 140)) | Some(Color::Rgb(170, 170, 170)) | Some(Color::Rgb(255, 255, 255)) | Some(Color::Yellow) | Some(Color::Cyan) )
}
pub fn is_scrollbar_track_style(style: Style) -> bool {
matches!(
style.bg,
Some(Color::Black) | Some(Color::DarkGray) | Some(Color::Gray) | Some(Color::Rgb(220, 220, 220)) | Some(Color::Rgb(200, 200, 200)) | Some(Color::Rgb(0, 0, 128)) | Some(Color::White) )
}
pub fn is_scrollbar_style(style: Style) -> bool {
is_scrollbar_thumb_style(style) || is_scrollbar_track_style(style)
}
pub fn has_scrollbar_background(style: Style) -> bool {
style.bg.is_some() && style.bg != Some(Color::Reset)
}