Function
push_section
(
lines: &mut Vec<Line<'_>>,
title: &'static str,
values: &[String],
t: &crate::theme::Theme,
)
Source from the content-addressed store, hash-verified
| 644 | } |
| 645 | |
| 646 | fn push_section( |
| 647 | lines: &mut Vec<Line<'_>>, |
| 648 | title: &'static str, |
| 649 | values: &[String], |
| 650 | t: &crate::theme::Theme, |
| 651 | ) { |
| 652 | lines.push(Line::from("")); |
| 653 | lines.push(Line::from(Span::styled(title, t.heading))); |
| 654 | for value in values { |
| 655 | lines.push(Line::from(vec![ |
| 656 | Span::styled(" - ", t.muted), |
| 657 | Span::styled(value.clone(), t.text), |
| 658 | ])); |
| 659 | } |
| 660 | } |
| 661 | |
| 662 | // --------------------------------------------------------------------------- |
| 663 | // Update provider modal |
Tested by
no test coverage detected