mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-26 03:07:18 +02:00
Merge pull request #138 from kdheepak/add-color-for-label
Add color for label
This commit is contained in:
commit
322262f03e
1 changed files with 16 additions and 2 deletions
18
src/app.rs
18
src/app.rs
|
@ -493,7 +493,14 @@ impl TTApp {
|
||||||
Style::default().add_modifier(Modifier::BOLD),
|
Style::default().add_modifier(Modifier::BOLD),
|
||||||
)])),
|
)])),
|
||||||
)
|
)
|
||||||
.header_style(Style::default().add_modifier(Modifier::UNDERLINED))
|
.header_style(
|
||||||
|
self.config
|
||||||
|
.color
|
||||||
|
.get("color.label")
|
||||||
|
.cloned()
|
||||||
|
.unwrap_or_default()
|
||||||
|
.add_modifier(Modifier::UNDERLINED),
|
||||||
|
)
|
||||||
.highlight_style(highlight_style)
|
.highlight_style(highlight_style)
|
||||||
.highlight_symbol(&self.config.uda_selection_indicator)
|
.highlight_symbol(&self.config.uda_selection_indicator)
|
||||||
.widths(&constraints);
|
.widths(&constraints);
|
||||||
|
@ -726,7 +733,14 @@ impl TTApp {
|
||||||
Span::styled("Calendar", Style::default().add_modifier(Modifier::DIM)),
|
Span::styled("Calendar", Style::default().add_modifier(Modifier::DIM)),
|
||||||
])),
|
])),
|
||||||
)
|
)
|
||||||
.header_style(Style::default().add_modifier(Modifier::UNDERLINED))
|
.header_style(
|
||||||
|
self.config
|
||||||
|
.color
|
||||||
|
.get("color.label")
|
||||||
|
.cloned()
|
||||||
|
.unwrap_or_default()
|
||||||
|
.add_modifier(Modifier::UNDERLINED),
|
||||||
|
)
|
||||||
.highlight_style(highlight_style)
|
.highlight_style(highlight_style)
|
||||||
.highlight_symbol(&self.config.uda_selection_indicator)
|
.highlight_symbol(&self.config.uda_selection_indicator)
|
||||||
.widths(&constraints);
|
.widths(&constraints);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue