Skip to content

Commit

Permalink
fix hex color example in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiving committed Jul 28, 2024
1 parent ac1ddea commit 81db0c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
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

- **fixed**: Fix HEX color example in `README`

## 0.4.0 (July 29th, 2024)

- **added**: Add support for `no_std` environments
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ An unofficial port of the `material-color-utilities` library for creating Materi
From HEX color:

```rust
use std::str::FromStr;
use material_colors::{color::Argb, theme::ThemeBuilder};

fn main() {
let theme = ThemeBuilder::with_source(Argb::from_32(0xffaae5a4)).build();
let theme = ThemeBuilder::with_source(Argb::from_u32(0xffaae5a4)).build();

// Do whatever you want...
}
Expand Down

0 comments on commit 81db0c4

Please sign in to comment.