Skip to content

Commit

Permalink
Bump version and update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
bash committed May 7, 2024
1 parent 8326e6b commit a347376
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ readme = "readme.md"
repository = "https://github.com/bash/terminal-colorsaurus"
categories = ["command-line-interface"]
license = "MIT OR Apache-2.0"
version = "0.3.3"
version = "0.4.0"
edition = "2021"
rust-version = "1.70.0"
exclude = [".github", ".gitignore", "*.sh", "benchmark/**/*"]
Expand Down
9 changes: 9 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
# Changelog
## 0.4.0
* ⚡ Renamed «color scheme» to «color palette».
* ⚡ Removed `is_dark_on_light` and `is_light_on_dark` functions. Use `color_scheme` instead.
* Add new convenience function `color_scheme` which returns a nice `Dark / Light` enum.
* Add support for urxvt's `rgba:` color format.
* Further refined the documentation (more organized terminal list, new terminals tested).
* Improved handling of ambigous color palettes (e.g. when background color is the same as foreground).
* Queries are now terminated with `ST` (the standard string terminator) instead of `BEL` (which is an xterm extension).

## 0.3.3
* Feature: Add new `Color::scale_to_8bit` function.
* Fix: Correctly scale colors up to 16 bits per channel.
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ impl Default for QueryOptions {
}

/// Detects if the terminal is dark or light.
#[doc = include_str!("../doc/caveats.md")]
pub fn color_scheme(options: QueryOptions) -> Result<ColorScheme> {
color_palette(options).map(|p| p.color_scheme())
}
Expand Down

0 comments on commit a347376

Please sign in to comment.