Make iced_core::Button customizable
Now it supports: - Any kind of content - Custom border radius - Custom background
This commit is contained in:
parent
a0234d5bce
commit
10e10e5e06
35 changed files with 288 additions and 160 deletions
|
|
@ -74,12 +74,12 @@ impl Style {
|
|||
self
|
||||
}
|
||||
|
||||
pub(crate) fn align_items(mut self, align: Align) -> Self {
|
||||
pub fn align_items(mut self, align: Align) -> Self {
|
||||
self.0.align_items = into_align_items(align);
|
||||
self
|
||||
}
|
||||
|
||||
pub(crate) fn justify_content(mut self, justify: Justify) -> Self {
|
||||
pub fn justify_content(mut self, justify: Justify) -> Self {
|
||||
self.0.justify_content = into_justify_content(justify);
|
||||
self
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue