Skip to content

Commit

Permalink
Make docs proper module-level docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bash committed Sep 6, 2024
1 parent 7b02f54 commit 5ab5bfb
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/options/theme.rs
Original file line number Diff line number Diff line change
@@ -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))]
Expand Down

0 comments on commit 5ab5bfb

Please sign in to comment.