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::{
};
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() {
......
......@@ -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::*;
......
......@@ -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,
......
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