diff --git a/CHANGELOG.md b/CHANGELOG.md index bcde919..dd8f7af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] - + +### Changes 🔥 + +- `use_color_mode` now supports detection from an url query parameter. (thanks to @mondeja) + + ## [0.10.2] - 2024-02-09 ### New Functions 🚀 diff --git a/src/use_color_mode.rs b/src/use_color_mode.rs index aabf8f1..6047d29 100644 --- a/src/use_color_mode.rs +++ b/src/use_color_mode.rs @@ -353,7 +353,8 @@ where #[builder(into)] initial_value_from_url_param: Option, - /// Update the initial value of the discovered color mode from URL parameter into storage. + /// Write the initial value of the discovered color mode from URL parameter to storage. + /// This only has an effect if `initial_value_from_url_param` is specified. /// Defaults to `false`. initial_value_from_url_param_to_storage: bool,