summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorStephan Dilly <dilly.stephan@gmail.com>2021-08-17 14:51:27 +0200
committerStephan Dilly <dilly.stephan@gmail.com>2021-08-17 14:51:27 +0200
commit3847ec92cff441356ba33f16950fff34d09f7b75 (patch)
tree6a6b4a46af409f9728c015ee6abc984be138d4db /src/ui
parentdad8e8d43de79a3c39a37f118e529dc88fab5495 (diff)
distinct marked commits styling
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/style.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/style.rs b/src/ui/style.rs
index 772cba05..0d8280f1 100644
--- a/src/ui/style.rs
+++ b/src/ui/style.rs
@@ -230,6 +230,15 @@ impl Theme {
selected,
)
}
+
+ pub fn log_marker(&self, selected: bool) -> Style {
+ let mut style = Style::default().add_modifier(Modifier::BOLD);
+
+ style = self.apply_select(style, selected);
+
+ style
+ }
+
pub fn commit_time(&self, selected: bool) -> Style {
self.apply_select(
Style::default().fg(self.commit_time),