Skip to content

Commit

Permalink
feat: changed icons (#8)
Browse files Browse the repository at this point in the history
Co-authored-by: GarciaBarreiro <[email protected]>
  • Loading branch information
eerii and GarciaBarreiro authored Jul 21, 2024
1 parent e570d3f commit 195983b
Show file tree
Hide file tree
Showing 28 changed files with 9 additions and 3 deletions.
Binary file modified assets/icons/input/controller/switch_button_home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/controller/switch_buttons_down.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/controller/switch_buttons_up.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/controller/switch_dpad_down.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/controller/switch_dpad_left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/controller/switch_dpad_right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/controller/switch_dpad_up.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/controller/switch_stick_l.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/keyboard/keyboard_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/keyboard/keyboard_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/keyboard/keyboard_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/keyboard/keyboard_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/keyboard/keyboard_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/keyboard/keyboard_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/keyboard/keyboard_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/keyboard/keyboard_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/keyboard/keyboard_8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/keyboard/keyboard_9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/keyboard/keyboard_a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/keyboard/keyboard_arrow_down.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/keyboard/keyboard_arrow_left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/keyboard/keyboard_arrow_right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/keyboard/keyboard_arrow_up.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/keyboard/keyboard_d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/keyboard/keyboard_escape.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icons/input/keyboard/keyboard_s.png
Binary file modified assets/icons/input/keyboard/keyboard_w.png
12 changes: 9 additions & 3 deletions src/ui/menu/mappings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ use crate::{
input::Action,
ui::{
menu::{navigation::FocusableHoverFill, MenuButton, MenuState},
widgets::{UiButtonWidget, UiImageWidget, UiOptionRowWidget, UiTextWidget},
UiRootContainer,
widgets::{UiButtonWidget, UiOptionRowWidget, UiTextWidget},
UiRootContainer, UI_GAP,
},
SCALE,
};

// ·······
Expand Down Expand Up @@ -109,7 +110,12 @@ fn row_mapping(map: &dyn Reflect, row: &mut UiBuilder<Entity>, asset_server: &As
for prompt in prompts {
// Dynamic loading to avoid having all icons in memory
row.option_button(|button| {
button.image(asset_server.load(&prompt));
button.spawn(ImageBundle {
image: UiImage::new(asset_server.load(&prompt)).with_color(Color::srgb(0.812, 0.776, 0.722)),
..default()
}).style()
.height(Val::Px(16. * SCALE))
.width(Val::Px(16. * SCALE));
})
.insert(BorderRadius::all(Val::Px(16.)))
.insert(BorderColor::from(Srgba::NONE))
Expand Down

0 comments on commit 195983b

Please sign in to comment.