From 1a056277c92c751ad20a74eb3553c9e1de75a6ae Mon Sep 17 00:00:00 2001 From: "Elijah C. Voigt" Date: Thu, 18 Apr 2024 22:47:57 -0700 Subject: [PATCH] Fixed a small amount of jank with the alpha on the title Still a small amount of alpha jank on buttons sadly... --- assets/images/title.png | 4 ++-- src/credits.rs | 8 ++++---- src/game.rs | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/assets/images/title.png b/assets/images/title.png index 9c3791b..a8e4c25 100644 --- a/assets/images/title.png +++ b/assets/images/title.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1062a2d4df9a58a543f7d6215ca7aba86bb36fa2c0c325c83e1dd1f64c0f3323 -size 822327 +oid sha256:afc4dfc003acfbb008bde814f29348ffe90c7046fc10dff71b506ec0ed58ed89 +size 1480940 diff --git a/src/credits.rs b/src/credits.rs index 4adc336..9b92bc6 100644 --- a/src/credits.rs +++ b/src/credits.rs @@ -44,7 +44,7 @@ fn init_credits_ui( Credits, NodeBundle { style: Style { - padding: UiRect::all(Val::Px(25.0)), + padding: UiRect::all(Val::Px(15.0)), ..default() }, background_color: Color::BLACK.with_a(0.9).into(), @@ -71,8 +71,8 @@ fn init_credits_ui( menu::ButtonAction(menu::MenuState::On), ButtonBundle { style: Style { - padding: UiRect::all(Val::Px(5.0)), - margin: UiRect::all(Val::Px(5.0)), + padding: UiRect::all(Val::Px(2.0)), + margin: UiRect::all(Val::Px(2.0)), ..default() }, image: UiImage { @@ -96,7 +96,7 @@ fn init_credits_ui( ..default() }, style: Style { - margin: UiRect::all(Val::Px(20.0)), + margin: UiRect::all(Val::Px(10.0)), ..default() }, ..default() diff --git a/src/game.rs b/src/game.rs index b8b261f..ea587f2 100644 --- a/src/game.rs +++ b/src/game.rs @@ -806,14 +806,14 @@ fn set_endgame( value: "N e w G a m e".into(), style: TextStyle { color: Color::WHITE, - font_size: 16.0, + font_size: 12.0, font: font_handle.clone(), }, }], ..default() }, style: Style { - margin: UiRect::all(Val::Px(20.0)), + margin: UiRect::all(Val::Px(10.0)), ..default() }, ..default() @@ -845,14 +845,14 @@ fn set_endgame( value: "Q u i t".into(), style: TextStyle { color: Color::WHITE, - font_size: 16.0, + font_size: 12.0, font: font_handle.clone(), }, }], ..default() }, style: Style { - margin: UiRect::all(Val::Px(20.0)), + margin: UiRect::all(Val::Px(10.0)), ..default() }, ..default()