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::Rgb(255, 255, 0)) | Some(Color::Rgb(0, 255, 255)) | Some(Color::Rgb(98, 114, 164)) | Some(Color::Rgb(139, 233, 253)) | Some(Color::Rgb(94, 129, 172)) | Some(Color::Rgb(136, 192, 208)) | Some(Color::Rgb(88, 110, 117)) | Some(Color::Rgb(131, 148, 150)) | 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::Rgb(80, 80, 80)) | Some(Color::Rgb(140, 140, 140)) | Some(Color::Rgb(68, 71, 90)) | Some(Color::Rgb(80, 83, 100)) | Some(Color::Rgb(59, 66, 82)) | Some(Color::Rgb(67, 76, 94)) | Some(Color::Rgb(7, 54, 66)) | 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)
}