More style work
This commit is contained in:
parent
82f1a2f612
commit
d9d3001d5e
|
@ -2,26 +2,30 @@
|
||||||
pub mod dioxus_elements {
|
pub mod dioxus_elements {
|
||||||
pub use crate::events::events;
|
pub use crate::events::events;
|
||||||
|
|
||||||
|
const NAME_SPACE: Option<&'static str> = Some("bevy_ui");
|
||||||
pub type AttributeDescription = (&'static str, Option<&'static str>, bool);
|
pub type AttributeDescription = (&'static str, Option<&'static str>, bool);
|
||||||
|
|
||||||
pub struct node;
|
pub struct node;
|
||||||
impl node {
|
impl node {
|
||||||
pub const TAG_NAME: &'static str = "node";
|
pub const TAG_NAME: &'static str = "node";
|
||||||
pub const NAME_SPACE: Option<&'static str> = Some("bevy_ui");
|
pub const NAME_SPACE: Option<&'static str> = NAME_SPACE;
|
||||||
|
|
||||||
// TODO: The rest of Style
|
// TODO: The rest of Style
|
||||||
|
pub const display: AttributeDescription = ("display", None, false);
|
||||||
|
pub const position: AttributeDescription = ("position", None, false);
|
||||||
|
pub const flex_direction: AttributeDescription = ("flex-direction", None, false);
|
||||||
|
pub const background_color: AttributeDescription = ("background-color", None, false);
|
||||||
|
pub const padding: AttributeDescription = ("padding", None, false);
|
||||||
pub const width: AttributeDescription = ("width", None, false);
|
pub const width: AttributeDescription = ("width", None, false);
|
||||||
pub const height: AttributeDescription = ("height", None, false);
|
pub const height: AttributeDescription = ("height", None, false);
|
||||||
pub const justify_content: AttributeDescription = ("justify-content", None, false);
|
pub const justify_content: AttributeDescription = ("justify-content", None, false);
|
||||||
pub const flex_direction: AttributeDescription = ("flex-direction", None, false);
|
pub const align_content: AttributeDescription = ("align-content", None, false);
|
||||||
pub const padding: AttributeDescription = ("padding", None, false);
|
|
||||||
pub const background_color: AttributeDescription = ("background-color", None, false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct text;
|
pub struct text;
|
||||||
impl text {
|
impl text {
|
||||||
pub const TAG_NAME: &'static str = "text";
|
pub const TAG_NAME: &'static str = "text";
|
||||||
pub const NAME_SPACE: Option<&'static str> = Some("bevy_ui");
|
pub const NAME_SPACE: Option<&'static str> = NAME_SPACE;
|
||||||
|
|
||||||
pub const text: AttributeDescription = ("text", None, false);
|
pub const text: AttributeDescription = ("text", None, false);
|
||||||
pub const text_alignment: AttributeDescription = ("text-alignment", None, false);
|
pub const text_alignment: AttributeDescription = ("text-alignment", None, false);
|
||||||
|
@ -29,11 +33,14 @@ pub mod dioxus_elements {
|
||||||
pub const font_color: AttributeDescription = ("font-color", None, false);
|
pub const font_color: AttributeDescription = ("font-color", None, false);
|
||||||
// TODO: The rest of Style
|
// TODO: The rest of Style
|
||||||
// TODO: Reduce duplication
|
// TODO: Reduce duplication
|
||||||
|
pub const display: AttributeDescription = ("display", None, false);
|
||||||
|
pub const position: AttributeDescription = ("position", None, false);
|
||||||
|
pub const flex_direction: AttributeDescription = ("flex-direction", None, false);
|
||||||
|
pub const background_color: AttributeDescription = ("background-color", None, false);
|
||||||
|
pub const padding: AttributeDescription = ("padding", None, false);
|
||||||
pub const width: AttributeDescription = ("width", None, false);
|
pub const width: AttributeDescription = ("width", None, false);
|
||||||
pub const height: AttributeDescription = ("height", None, false);
|
pub const height: AttributeDescription = ("height", None, false);
|
||||||
pub const justify_content: AttributeDescription = ("justify-content", None, false);
|
pub const justify_content: AttributeDescription = ("justify-content", None, false);
|
||||||
pub const flex_direction: AttributeDescription = ("flex-direction", None, false);
|
pub const align_content: AttributeDescription = ("align-content", None, false);
|
||||||
pub const padding: AttributeDescription = ("padding", None, false);
|
|
||||||
pub const background_color: AttributeDescription = ("background-color", None, false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue