feat: rename icon folder to logo folder and update rendering of UI

Former-commit-id: 7eb822d0c583a67a90aaed0c7f1a2ecd0a2613fd
This commit is contained in:
Muhammad Nauman Raza 2023-11-27 22:48:53 +00:00
parent 28274807d2
commit fd9ee79e4f
Signed by: devraza
GPG key ID: 91EAD6081011574B
6 changed files with 30 additions and 18 deletions

View file

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View file

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

View file

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

View file

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View file

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View file

@ -28,7 +28,6 @@ lazy_static!{
fn main() { fn main() {
App::new() App::new()
.insert_resource(ClearColor(HYPERNOVA.get("DARK_GRAY").copied().unwrap()))
.add_plugins(DefaultPlugins) .add_plugins(DefaultPlugins)
.add_systems( .add_systems(
Startup, Startup,
@ -65,18 +64,30 @@ fn render_ui(
commands commands
.spawn(NodeBundle { .spawn(NodeBundle {
style: Style { style: Style {
// fill the entire window
width: Val::Percent(100.), width: Val::Percent(100.),
height: Val::Percent(100.0),
justify_content: JustifyContent::SpaceBetween,
..Default::default()
},
background_color: BackgroundColor(HYPERNOVA.get("DARK_GRAY").copied().unwrap()),
..Default::default()
})
.with_children(|parent| {
parent
.spawn(NodeBundle {
style: Style {
width: Val::Percent(100.),
height: Val::Percent(100.0),
flex_direction: FlexDirection::Column, flex_direction: FlexDirection::Column,
align_items: AlignItems::Center, align_items: AlignItems::Center,
..Default::default() ..Default::default()
}, },
background_color: BackgroundColor(Color::BLACK), background_color: BackgroundColor(HYPERNOVA.get("DARK_GRAY").copied().unwrap()),
..Default::default() ..Default::default()
}) })
.with_children(|builder| { .with_children(|parent| {
builder.spawn( parent
TextBundle::from_section("Ambition", text_style.clone()) .spawn(TextBundle::from_section("Ambition", text_style.clone())
.with_text_alignment(TextAlignment::Center) .with_text_alignment(TextAlignment::Center)
.with_style(Style { .with_style(Style {
position_type: PositionType::Absolute, position_type: PositionType::Absolute,
@ -85,8 +96,9 @@ fn render_ui(
..default() ..default()
}, },
..default() ..default()
}), })
); );
});
} }
); );
} }