Fix Button styling in iced_web
This commit is contained in:
parent
f5228695a2
commit
38a35ab639
1 changed files with 4 additions and 7 deletions
|
|
@ -144,9 +144,6 @@ where
|
||||||
// TODO: State-based styling
|
// TODO: State-based styling
|
||||||
let style = self.style.active();
|
let style = self.style.active();
|
||||||
|
|
||||||
let width = css::length(self.width);
|
|
||||||
let color = css::color(style.text_color);
|
|
||||||
|
|
||||||
let padding_class =
|
let padding_class =
|
||||||
style_sheet.insert(bump, css::Rule::Padding(self.padding));
|
style_sheet.insert(bump, css::Rule::Padding(self.padding));
|
||||||
|
|
||||||
|
|
@ -166,12 +163,12 @@ where
|
||||||
"style",
|
"style",
|
||||||
bumpalo::format!(
|
bumpalo::format!(
|
||||||
in bump,
|
in bump,
|
||||||
"background: {}; border-radius: {}px; width:{}; min-width: {}px; color: {}",
|
"background: {}; border-radius: {}px; width:{}; min-width: {}; color: {}",
|
||||||
background,
|
background,
|
||||||
style.border_radius,
|
style.border_radius,
|
||||||
width,
|
css::length(self.width),
|
||||||
self.min_width,
|
css::min_length(self.min_width),
|
||||||
color
|
css::color(style.text_color)
|
||||||
)
|
)
|
||||||
.into_bump_str(),
|
.into_bump_str(),
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue