summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorextrawurst <776816+extrawurst@users.noreply.github.com>2023-08-18 17:19:18 +0200
committerGitHub <noreply@github.com>2023-08-18 17:19:18 +0200
commit3c5131ad27592b892a7af33d6fd22ffcd14fe7e4 (patch)
tree6c22f43014387fa22767a5fbd579d91178f54a10 /src/ui
parentb50d44a4b82304d1c77329bdf4230d229bd06022 (diff)
commit log filtering (#1800)
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/style.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ui/style.rs b/src/ui/style.rs
index de282910..fa570e33 100644
--- a/src/ui/style.rs
+++ b/src/ui/style.rs
@@ -212,6 +212,10 @@ impl Theme {
)
}
+ pub fn commit_unhighlighted(&self) -> Style {
+ Style::default().fg(self.disabled_fg)
+ }
+
pub fn log_marker(&self, selected: bool) -> Style {
let mut style = Style::default()
.fg(self.commit_author)
@@ -255,6 +259,10 @@ impl Theme {
.bg(self.push_gauge_bg)
}
+ pub fn attention_block() -> Style {
+ Style::default().fg(Color::Yellow)
+ }
+
fn load_patch(theme_path: &PathBuf) -> Result<ThemePatch> {
let file = File::open(theme_path)?;