summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTau Gärtli <git@tau.garden>2024-09-06 11:55:46 +0200
committerThomas Otto <th1000s@posteo.net>2024-09-08 23:57:24 +0200
commit8220cefb3c7f7b4af289c2813dc86dc3251324f0 (patch)
treeb1171867bd6161f96a02dcd0a174a2cd56c7b937 /src
parent46c72682d5953a7184f66ddaeead81db12c0162f (diff)
Make docs proper module-level docs
Diffstat (limited to 'src')
-rw-r--r--src/options/theme.rs19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/options/theme.rs b/src/options/theme.rs
index 60588d6..a2cd35e 100644
--- a/src/options/theme.rs
+++ b/src/options/theme.rs
@@ -1,13 +1,16 @@
+//! Delta doesn't have a formal concept of a "theme". What it has is
+//!
+//! * (a) the choice of syntax-highlighting theme
+//! * (b) the choice of light-background-mode vs dark-background-mode, which determine certain
+//! default color choices
+//!
+//! This module sets those options. If the light/dark background mode choice is not made explicitly
+//! by the user, it is determined by the classification of the syntax theme into light-background
+//! vs dark-background syntax themes. If the user didn't choose a syntax theme, a dark-background
+//! default is selected.
+
use std::io::{stdout, IsTerminal};
-/// Delta doesn't have a formal concept of a "theme". What it has is
-/// (a) the choice of syntax-highlighting theme
-/// (b) the choice of light-background-mode vs dark-background-mode, which determine certain
-/// default color choices
-/// This module sets those options. If the light/dark background mode choice is not made explicitly
-/// by the user, it is determined by the classification of the syntax theme into light-background
-/// vs dark-background syntax themes. If the user didn't choose a syntax theme, a dark-background
-/// default is selected.
use bat;
use bat::assets::HighlightingAssets;
#[cfg(not(test))]