We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5581ac4 commit 54f1437Copy full SHA for 54f1437
lvgl/src/lv_core/style.rs
@@ -3,13 +3,13 @@
3
//! Objects in LVGL can have associated styling information. After a `Style` is
4
//! created and configured, it can be added to any object or widget:
5
//! ```
6
-//! use lvgl::{Color, Widget};
+//! use lvgl::{Color, Part};
7
//! use lvgl::style::Style;
8
//!
9
//! let mut my_style = Style::default();
10
//! my_style.set_text_color(Color::from_rgb((0, 0, 0)));
11
12
-//! //my_widget.add_style(Part::Main, &mut my_style).unwrap();
+//! // my_widget.add_style(my_style.into_raw(), Part::Main.into());
13
//! // ...
14
15
//! All methods on the `Style` type directly lower to their C LVGL
0 commit comments