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 -1
View File
@@ -1,7 +1,7 @@
use bollard::models::ContainerSummary; use bollard::models::ContainerSummary;
use core::fmt; use core::fmt;
use std::time::{SystemTime, UNIX_EPOCH};
use ratatui::widgets::{ListItem, ListState}; use ratatui::widgets::{ListItem, ListState};
use std::time::{SystemTime, UNIX_EPOCH};
mod container_state; mod container_state;
+1 -1
View File
@@ -8,11 +8,11 @@ use crossterm::{
execute, execute,
}; };
use parking_lot::Mutex; use parking_lot::Mutex;
use ratatui::layout::Rect;
use tokio::{ use tokio::{
sync::mpsc::{Receiver, Sender}, sync::mpsc::{Receiver, Sender},
task::JoinHandle, task::JoinHandle,
}; };
use ratatui::layout::Rect;
mod message; mod message;
use crate::{ use crate::{
+1 -3
View File
@@ -628,7 +628,6 @@ impl HelpInfo {
/// Generate the final lines, GitHub link etc, + metadata /// Generate the final lines, GitHub link etc, + metadata
fn gen_final() -> Self { fn gen_final() -> Self {
let top_bar = (0..REPO.chars().count()).map(|_|"").collect::<String>();
let spans = [ let spans = [
Self::empty_span(), Self::empty_span(),
Spans::from(vec![Self::black_span( Spans::from(vec![Self::black_span(
@@ -636,9 +635,8 @@ impl HelpInfo {
)]), )]),
Spans::from(vec![Span::styled( Spans::from(vec![Span::styled(
REPO.to_owned(), 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 height = spans.len();
let width = Self::calc_width(&spans); let width = Self::calc_width(&spans);
+1 -1
View File
@@ -1,8 +1,8 @@
use ratatui::layout::{Constraint, Rect};
use std::{ use std::{
collections::{HashMap, HashSet}, collections::{HashMap, HashSet},
fmt, fmt,
}; };
use ratatui::layout::{Constraint, Rect};
use uuid::Uuid; use uuid::Uuid;
use crate::app_data::Header; use crate::app_data::Header;
+5 -5
View File
@@ -5,6 +5,11 @@ use crossterm::{
terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen}, terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen},
}; };
use parking_lot::Mutex; use parking_lot::Mutex;
use ratatui::{
backend::{Backend, CrosstermBackend},
layout::{Constraint, Direction, Layout},
Frame, Terminal,
};
use std::{ use std::{
io::{self, Stdout, Write}, io::{self, Stdout, Write},
sync::{atomic::Ordering, Arc}, sync::{atomic::Ordering, Arc},
@@ -13,11 +18,6 @@ use std::{
use std::{sync::atomic::AtomicBool, time::Instant}; use std::{sync::atomic::AtomicBool, time::Instant};
use tokio::sync::mpsc::Sender; use tokio::sync::mpsc::Sender;
use tracing::error; use tracing::error;
use ratatui::{
backend::{Backend, CrosstermBackend},
layout::{Constraint, Direction, Layout},
Frame, Terminal,
};
mod color_match; mod color_match;
mod draw_blocks; mod draw_blocks;