diff options
author | 2022-11-03 04:42:46 +0100 | |
---|---|---|
committer | 2022-11-03 04:42:46 +0100 | |
commit | edce457365aae5e1aa20863389cdd28357234908 (patch) | |
tree | 1066d2ff08642314ae51314865603e4778f0275c /examples/multitouch | |
parent | 9a02d60ba51a91049466caa46db73d741520e051 (diff) | |
download | iced-edce457365aae5e1aa20863389cdd28357234908.tar.gz iced-edce457365aae5e1aa20863389cdd28357234908.tar.bz2 iced-edce457365aae5e1aa20863389cdd28357234908.zip |
Fix `multitouch` example
Diffstat (limited to 'examples/multitouch')
-rw-r--r-- | examples/multitouch/src/main.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/multitouch/src/main.rs b/examples/multitouch/src/main.rs index 0345ceb7..f5faae0f 100644 --- a/examples/multitouch/src/main.rs +++ b/examples/multitouch/src/main.rs @@ -2,7 +2,8 @@ //! a circle around each fingertip. This only works on touch-enabled //! computers like Microsoft Surface. use iced::widget::canvas::event; -use iced::widget::canvas::{self, Canvas, Cursor, Geometry, Stroke}; +use iced::widget::canvas::stroke::{self, Stroke}; +use iced::widget::canvas::{self, Canvas, Cursor, Geometry}; use iced::{ executor, touch, window, Application, Color, Command, Element, Length, Point, Rectangle, Settings, Subscription, Theme, @@ -186,7 +187,7 @@ impl canvas::Program<Message> for State { frame.stroke( &path, Stroke { - color: Color::BLACK, + style: stroke::Style::Solid(Color::BLACK), width: 3.0, ..Stroke::default() }, |