mirror of
https://github.com/youwen5/iamb.git
synced 2025-08-03 19:18:28 -07:00
Highlight border of focused window (#470)
This commit is contained in:
parent
52010d44d7
commit
34d3b844af
1 changed files with 4 additions and 1 deletions
|
@ -62,7 +62,7 @@ use modalkit::crossterm::{
|
|||
use ratatui::{
|
||||
backend::CrosstermBackend,
|
||||
layout::Rect,
|
||||
style::{Color, Style},
|
||||
style::{Color, Modifier, Style},
|
||||
text::Span,
|
||||
widgets::Paragraph,
|
||||
Terminal,
|
||||
|
@ -328,6 +328,9 @@ impl Application {
|
|||
.show_dialog(dialogstr)
|
||||
.show_mode(modestr)
|
||||
.borders(true)
|
||||
.border_style(Style::default().add_modifier(Modifier::DIM))
|
||||
.tab_style(Style::default().add_modifier(Modifier::DIM))
|
||||
.tab_style_focused(Style::default().remove_modifier(Modifier::DIM))
|
||||
.focus(focused);
|
||||
f.render_stateful_widget(screen, area, sstate);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue