fix: arc example
This commit is contained in:
parent
4f3215f48e
commit
09a531cd44
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ impl<Message> canvas::Program<Message> for Arc {
|
||||||
_cursor: Cursor,
|
_cursor: Cursor,
|
||||||
) -> Vec<Geometry> {
|
) -> Vec<Geometry> {
|
||||||
let geometry = self.cache.draw(bounds.size(), |frame| {
|
let geometry = self.cache.draw(bounds.size(), |frame| {
|
||||||
let palette = theme.palette();
|
let palette = theme.clone().palette();
|
||||||
|
|
||||||
let center = frame.center();
|
let center = frame.center();
|
||||||
let radius = frame.width().min(frame.height()) / 5.0;
|
let radius = frame.width().min(frame.height()) / 5.0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue