feat(segmented-button): manually-definable icon colors

This commit is contained in:
Michael Aaron Murphy 2023-02-13 16:09:05 +01:00 committed by Jeremy Soller
parent 4fa61eeafd
commit 75e80857e2
5 changed files with 53 additions and 6 deletions

View file

@ -97,3 +97,11 @@ pub type SecondaryMap<T> = slotmap::SecondaryMap<Entity, T>;
///
/// Sparse maps internally use a `HashMap`, for data that is sparsely associated.
pub type SparseSecondaryMap<T> = slotmap::SparseSecondaryMap<Entity, T>;
/// Defines the color of the icon for a segmented item.
#[derive(Clone, Copy, Debug, Default, PartialEq)]
enum IconColor {
#[default]
None,
Color(crate::iced::Color),
}