mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Make HSVA derive serde (#7132)
This pull request introduces a change to the `Hsva` struct in the `crates/ecolor/src/hsva.rs` file to enable serialization and deserialization when the `serde` feature is enabled. * Closes <https://github.com/emilk/egui/issues/7131> * [x] I have followed the instructions in the PR template
This commit is contained in:
@@ -4,6 +4,7 @@ use crate::{
|
||||
|
||||
/// Hue, saturation, value, alpha. All in the range [0, 1].
|
||||
/// No premultiplied alpha.
|
||||
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
|
||||
#[derive(Clone, Copy, Debug, Default, PartialEq)]
|
||||
pub struct Hsva {
|
||||
/// hue 0-1
|
||||
|
||||
Reference in New Issue
Block a user