make key bindings look more like the achievement list

This commit is contained in:
yuni 2024-05-14 18:43:38 +02:00
parent 49314bc6bb
commit 122a1e49ec
3 changed files with 6 additions and 4 deletions

View file

@ -1,4 +1,3 @@
Key Bindings:
Space: Slow down, match velocity
E: Interact
F: Flashlight

View file

@ -222,7 +222,7 @@ pub fn setup(
},
)).with_children(|builder| {
let mut sections = vec![
TextSection::new("Achievements\n", style_achievement_header)
TextSection::new("Achievements\n", style_achievement_header.clone())
];
sections.extend(Vec::from_iter((0..achievement_count).map(|_|
TextSection::new("", style_achievement.clone())
@ -267,7 +267,10 @@ pub fn setup(
builder.spawn((
TextBundle {
text: Text {
sections: vec![TextSection::new(keybindings, style_keybindings)],
sections: vec![
TextSection::new("Key Bindings\n", style_achievement_header),
TextSection::new(keybindings, style_keybindings)
],
justify: JustifyText::Right,
..default()
},

View file

@ -200,7 +200,7 @@ impl Default for Settings {
hud_color_achievement_header: Color::hex("#BE1251").unwrap(),
hud_color_death: Color::hex("#CCCCCC").unwrap(),
hud_color_death_achievements: Color::hex("#CCCCCC").unwrap(),
hud_color_keybindings: Color::hex("#999999").unwrap(),
hud_color_keybindings: Color::hex("#666666").unwrap(),
chat_speed: DEFAULT_CHAT_SPEED * if dev_mode { 2.5 } else { 1.0 },
flashlight_active: false,
hud_active: true,