Skip to content
Snippets Groups Projects
Unverified Commit 4efba09b authored by Ygg01's avatar Ygg01
Browse files

Rename the `spinbox` -> `spin_box` and minor refactors

parent ffcf3313
No related branches found
No related tags found
No related merge requests found
...@@ -5,13 +5,13 @@ use bevy::{ ...@@ -5,13 +5,13 @@ use bevy::{
}; };
use kayak_core::Color; use kayak_core::Color;
use kayak_render_macros::use_state; 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::{ use kayak_ui::core::{
render, rsx, render, rsx,
styles::{Style, StyleProp, Units}, styles::{Style, StyleProp, Units},
widget, Index, widget, Index,
}; };
use kayak_ui::widgets::{App, OnChange, TextBox, Window}; use kayak_ui::widgets::{App, OnChange, Window, TextBox};
#[widget] #[widget]
fn TextBoxExample() { fn TextBoxExample() {
......
...@@ -10,7 +10,7 @@ mod inspector; ...@@ -10,7 +10,7 @@ mod inspector;
mod nine_patch; mod nine_patch;
mod on_change; mod on_change;
mod scroll; mod scroll;
mod spinbox; mod spin_box;
mod text; mod text;
mod text_box; mod text_box;
mod tooltip; mod tooltip;
...@@ -28,7 +28,7 @@ pub use inspector::*; ...@@ -28,7 +28,7 @@ pub use inspector::*;
pub use nine_patch::*; pub use nine_patch::*;
pub use on_change::*; pub use on_change::*;
pub use scroll::*; pub use scroll::*;
pub use spinbox::*; pub use spin_box::*;
pub use text::*; pub use text::*;
pub use text_box::*; pub use text_box::*;
pub use tooltip::*; pub use tooltip::*;
......
...@@ -72,7 +72,7 @@ pub struct FocusSpinbox(pub bool); ...@@ -72,7 +72,7 @@ pub struct FocusSpinbox(pub bool);
/// | `on_layout` | ✅ | /// | `on_layout` | ✅ |
/// | `focusable` | ✅ | /// | `focusable` | ✅ |
/// ///
pub fn TextBox(props: SpinBoxProps) { pub fn SpinBox(props: SpinBoxProps) {
let SpinBoxProps { let SpinBoxProps {
on_change, on_change,
placeholder, placeholder,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment