Skip to content

Commit 54f1437

Browse files
committed
update style doc
1 parent 5581ac4 commit 54f1437

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lvgl/src/lv_core/style.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
//! Objects in LVGL can have associated styling information. After a `Style` is
44
//! created and configured, it can be added to any object or widget:
55
//! ```
6-
//! use lvgl::{Color, Widget};
6+
//! use lvgl::{Color, Part};
77
//! use lvgl::style::Style;
88
//!
99
//! let mut my_style = Style::default();
1010
//! my_style.set_text_color(Color::from_rgb((0, 0, 0)));
1111
//!
12-
//! //my_widget.add_style(Part::Main, &mut my_style).unwrap();
12+
//! // my_widget.add_style(my_style.into_raw(), Part::Main.into());
1313
//! // ...
1414
//! ```
1515
//! All methods on the `Style` type directly lower to their C LVGL

0 commit comments

Comments
 (0)