Skip to content

Commit

Permalink
Code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
hlsxx committed Dec 23, 2024
1 parent ab73f79 commit 0342bc7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/screens/typing_screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,10 @@ impl TypingScreen {
.map(|(i, c)| {
if i == self.cursor_index {
Span::from(c.to_string())
.style(Style::default().fg(layout.get_text_current_color()).bg(layout.get_text_current_bg_color()))
.style(Style::default()
.fg(layout.get_text_current_color())
.bg(layout.get_text_current_bg_color())
)
} else if i < self.cursor_index {
let color = if self.is_active() { layout.get_primary_color() } else { layout.get_primary_color().to_dark() };

Expand Down

0 comments on commit 0342bc7

Please sign in to comment.