Skip to content

Commit c6d0290

Browse files
author
David Tadokoro
committed
style: change "Patch Hub" instances to "patch-hub"
At the start, I styled references of `patch-hub` inside of it as "Patch Hub", which, IMHO, doesn't fit (really can't explain further than that). In this sense, change the style of those instances to "patch-hub". Also, make the banner at the top of every screen that says "patch-hub" in itallic, just bold. Signed-off-by: David Tadokoro <[email protected]>
1 parent 5b09ef5 commit c6d0290

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/handler/edit_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub fn handle_edit_config(app: &mut App, key: KeyEvent) -> color_eyre::Result<()
5656
pub fn generate_help_popup() -> Box<dyn PopUp> {
5757
let popup = HelpPopUpBuilder::new()
5858
.title("Edit Config")
59-
.description("This screen allows you to edit the configuration options for Patch Hub.\nMore configurations may be available in the configuration file.")
59+
.description("This screen allows you to edit the configuration options for patch-hub.\nMore configurations may be available in the configuration file.")
6060
.keybind("ESC", "Exit")
6161
.keybind("ENTER", "Save changes")
6262
.keybind("?", "Show this help screen")

src/ui.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::app::{screens::CurrentScreen, App};
22
use ratatui::{
33
layout::{Alignment, Constraint, Direction, Layout, Rect},
4-
style::{Color, Modifier, Style},
4+
style::{Color, Style, Stylize},
55
text::Text,
66
widgets::{Block, Borders, Clear, Paragraph},
77
Frame,
@@ -56,13 +56,11 @@ fn render_title(f: &mut Frame, chunk: Rect) {
5656
.style(Style::default())
5757
.title_alignment(Alignment::Center);
5858

59-
let title_content: String = "Patch Hub".to_string();
59+
let title_content: String = "patch-hub".to_string();
6060

6161
let title = Paragraph::new(Text::styled(
6262
title_content,
63-
Style::default()
64-
.fg(Color::Green)
65-
.add_modifier(Modifier::ITALIC),
63+
Style::default().fg(Color::Green).bold(),
6664
))
6765
.centered()
6866
.block(title_block);

0 commit comments

Comments
 (0)