diff --git a/examples/text_box.rs b/examples/text_box.rs index db9adcf8056737731fa4686a51f1f044125d4120..9de464e692eb7d8a9799e1db8797f3b02984d89c 100644 --- a/examples/text_box.rs +++ b/examples/text_box.rs @@ -5,13 +5,13 @@ use bevy::{ }; use kayak_core::Color; use kayak_render_macros::use_state; -use kayak_ui::bevy::{BevyContext, BevyKayakUIPlugin, FontMapping, UICameraBundle}; +use kayak_ui::{bevy::{BevyContext, BevyKayakUIPlugin, FontMapping, UICameraBundle}}; use kayak_ui::core::{ render, rsx, styles::{Style, StyleProp, Units}, widget, Index, }; -use kayak_ui::widgets::{App, OnChange, TextBox, Window}; +use kayak_ui::widgets::{App, OnChange, Window, TextBox}; #[widget] fn TextBoxExample() { diff --git a/src/widgets/mod.rs b/src/widgets/mod.rs index 4bce189c0468110f7c49eef71e6401f16036c27b..a8c19d61c4284cae1dffa1abb6252ad3700bce06 100644 --- a/src/widgets/mod.rs +++ b/src/widgets/mod.rs @@ -10,7 +10,7 @@ mod inspector; mod nine_patch; mod on_change; mod scroll; -mod spinbox; +mod spin_box; mod text; mod text_box; mod tooltip; @@ -28,7 +28,7 @@ pub use inspector::*; pub use nine_patch::*; pub use on_change::*; pub use scroll::*; -pub use spinbox::*; +pub use spin_box::*; pub use text::*; pub use text_box::*; pub use tooltip::*; diff --git a/src/widgets/spinbox.rs b/src/widgets/spin_box.rs similarity index 99% rename from src/widgets/spinbox.rs rename to src/widgets/spin_box.rs index 453a19c56c278b31307013441dab3edc05e775ca..34d756c20384781a3636650dcbf042ca2846295c 100644 --- a/src/widgets/spinbox.rs +++ b/src/widgets/spin_box.rs @@ -72,7 +72,7 @@ pub struct FocusSpinbox(pub bool); /// | `on_layout` | ✅ | /// | `focusable` | ✅ | /// -pub fn TextBox(props: SpinBoxProps) { +pub fn SpinBox(props: SpinBoxProps) { let SpinBoxProps { on_change, placeholder,