Remove appearance from Handle
... and pass it directly to `Renderer::draw` instead.
This commit is contained in:
parent
314b0f7dc5
commit
b205a66347
14 changed files with 112 additions and 75 deletions
|
|
@ -39,8 +39,8 @@ impl Sandbox for SvgStyleExample {
|
|||
"{}/resources/go-next-symbolic.svg",
|
||||
env!("CARGO_MANIFEST_DIR")
|
||||
)))
|
||||
.style(theme::Svg::Custom(|_theme| Appearance {
|
||||
fill: Some(Color {
|
||||
.style(theme::Svg::custom_fn(|_theme| Appearance {
|
||||
color: Some(Color {
|
||||
r: 0.0,
|
||||
g: 0.28627452,
|
||||
b: 0.42745098,
|
||||
|
|
@ -55,8 +55,8 @@ impl Sandbox for SvgStyleExample {
|
|||
"{}/resources/go-next-symbolic.svg",
|
||||
env!("CARGO_MANIFEST_DIR")
|
||||
)))
|
||||
.style(theme::Svg::Custom(|_theme| Appearance {
|
||||
fill: Some(Color {
|
||||
.style(theme::Svg::custom_fn(|_theme| Appearance {
|
||||
color: Some(Color {
|
||||
r: 0.5803922,
|
||||
g: 0.92156863,
|
||||
b: 0.92156863,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue