fix: alter the help box link underlining

This commit is contained in:
Jack Wills
2023-03-29 17:20:20 +00:00
parent 7a9bdc9699
commit f906799782
5 changed files with 9 additions and 11 deletions
+1 -3
View File
@@ -628,7 +628,6 @@ impl HelpInfo {
/// Generate the final lines, GitHub link etc, + metadata
fn gen_final() -> Self {
let top_bar = (0..REPO.chars().count()).map(|_|"").collect::<String>();
let spans = [
Self::empty_span(),
Spans::from(vec![Self::black_span(
@@ -636,9 +635,8 @@ impl HelpInfo {
)]),
Spans::from(vec![Span::styled(
REPO.to_owned(),
Style::default().fg(Color::White), // .add_modifier(Modifier::BOLD),
Style::default().fg(Color::White).add_modifier(Modifier::UNDERLINED),
)]),
Spans::from(vec![Self::white_span(&top_bar)]),
];
let height = spans.len();
let width = Self::calc_width(&spans);
+1 -1
View File
@@ -1,8 +1,8 @@
use ratatui::layout::{Constraint, Rect};
use std::{
collections::{HashMap, HashSet},
fmt,
};
use ratatui::layout::{Constraint, Rect};
use uuid::Uuid;
use crate::app_data::Header;
+5 -5
View File
@@ -5,6 +5,11 @@ use crossterm::{
terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen},
};
use parking_lot::Mutex;
use ratatui::{
backend::{Backend, CrosstermBackend},
layout::{Constraint, Direction, Layout},
Frame, Terminal,
};
use std::{
io::{self, Stdout, Write},
sync::{atomic::Ordering, Arc},
@@ -13,11 +18,6 @@ use std::{
use std::{sync::atomic::AtomicBool, time::Instant};
use tokio::sync::mpsc::Sender;
use tracing::error;
use ratatui::{
backend::{Backend, CrosstermBackend},
layout::{Constraint, Direction, Layout},
Frame, Terminal,
};
mod color_match;
mod draw_blocks;