Added ability to customize accessory content.

This commit is contained in:
Casper Rogild Storm 2022-11-29 11:36:00 +01:00
parent 8d67e21d48
commit 0974e9e865
No known key found for this signature in database
GPG key ID: 8F52569F9DDB2ECC
4 changed files with 87 additions and 19 deletions

View file

@ -16,8 +16,6 @@ pub struct Appearance {
pub border_width: f32,
/// The border color of the pick list.
pub border_color: Color,
/// The size of the arrow icon of the pick list.
pub icon_size: f32,
}
/// A set of rules that dictate the style of a container.

View file

@ -537,7 +537,6 @@ impl pick_list::StyleSheet for Theme {
border_radius: 2.0,
border_width: 1.0,
border_color: palette.background.strong.color,
icon_size: 0.7,
}
}
PickList::Custom(custom, _) => custom.active(self),
@ -556,7 +555,6 @@ impl pick_list::StyleSheet for Theme {
border_radius: 2.0,
border_width: 1.0,
border_color: palette.primary.strong.color,
icon_size: 0.7,
}
}
PickList::Custom(custom, _) => custom.active(self),