Skip to content

Commit

Permalink
Text in colored chunks/popups are no longer styled
Browse files Browse the repository at this point in the history
  • Loading branch information
Xithrius committed Mar 3, 2022
1 parent 6ae25bc commit 33bca69
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
8 changes: 6 additions & 2 deletions src/ui/chunks/chatting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,12 @@ pub fn message_input<T: Backend>(frame: &mut Frame<T>, app: &mut App, verticals:
);

let paragraph = Paragraph::new(input_buffer.as_str())
.style(Style::default().fg(Color::Yellow))
.block(Block::default().borders(Borders::ALL).title("[ Input ]"))
.block(
Block::default()
.borders(Borders::ALL)
.title("[ Input ]")
.border_style(Style::default().fg(Color::Yellow)),
)
.scroll((
0,
((cursor_pos + 3) as u16).saturating_sub(input_rect.width),
Expand Down
4 changes: 2 additions & 2 deletions src/ui/chunks/message_search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ pub fn search_messages<T: Backend>(frame: &mut Frame<T>, app: &mut App, vertical
);

let paragraph = Paragraph::new(input_buffer.as_str())
.style(Style::default().fg(Color::Yellow))
.block(
Block::default()
.borders(Borders::ALL)
.title("[ Message Search ]"),
.title("[ Message Search ]")
.border_style(Style::default().fg(Color::Yellow)),
)
.scroll((
0,
Expand Down
8 changes: 6 additions & 2 deletions src/ui/popups/channels.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ pub fn switch_channels<T: Backend>(frame: &mut Frame<T>, app: &mut App) {
);

let paragraph = Paragraph::new(input_buffer.as_str())
.style(Style::default().fg(Color::Yellow))
.block(Block::default().borders(Borders::ALL).title("[ Channel ]"))
.block(
Block::default()
.borders(Borders::ALL)
.title("[ Channel ]")
.border_style(Style::default().fg(Color::Yellow)),
)
.scroll((
0,
((cursor_pos + 3) as u16).saturating_sub(input_rect.width),
Expand Down

0 comments on commit 33bca69

Please sign in to comment.