Skip to content

Commit

Permalink
Add colors for nm cmds
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevithakannan2 committed Oct 1, 2024
1 parent 8edd12f commit c222247
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tui/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,11 @@ impl AppState {
node.name,
indicator
))
.style(self.theme.cmd_color())
.style(if self.multi_select && !node.multi_select {
self.theme.nm_cmd_color()
} else {
self.theme.cmd_color()
})
.patch_style(style)
}
},
Expand All @@ -347,7 +351,11 @@ impl AppState {
} else {
Line::from(format!("{} ", node.task_list))
.alignment(Alignment::Right)
.style(self.theme.cmd_color())
.style(if self.multi_select && !node.multi_select {
self.theme.nm_cmd_color()
} else {
self.theme.cmd_color()
})
.bold()
}
},
Expand Down
7 changes: 7 additions & 0 deletions tui/src/theme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ impl Theme {
}
}

pub fn nm_cmd_color(&self) -> Color {
match self {
Theme::Default => Color::DarkGray,
Theme::Compatible => Color::DarkGray,
}
}

pub fn tab_color(&self) -> Color {
match self {
Theme::Default => Color::Rgb(255, 255, 85),
Expand Down

0 comments on commit c222247

Please sign in to comment.