button text

This commit is contained in:
WanderingPenwing 2024-10-06 09:05:54 +02:00
parent 39f45debda
commit 245cf2b5a2

View file

@ -280,9 +280,10 @@ fn ui_setup(mut commands: Commands, asset_server: Res<AssetServer>) {
let button_text_node = TextBundle::from_section(
format!("Button {}", i),
TextStyle {
font: asset_server.load("fonts/FiraSans-Bold.ttf"), // Load font
font_size: 40.0,
//font: asset_server.load("fonts/FiraSans-Bold.ttf"), // Load font
font_size: 15.0,
color: Color::srgb(0.9, 0.9, 0.9),
..default()
},
);