Skip to content

Commit 54229a2

Browse files
committed
feat: game ui tweak
1 parent d3b08f6 commit 54229a2

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

prpr/src/scene/ending.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -552,11 +552,10 @@ impl Scene for EndingScene {
552552
let w = s * 2. + pad + ui.text(&self.player_name).size(0.6).measure().w.min(mw) + 0.02;
553553
let r = Rect::new(-0.96, -top + 0.04, w, s * 2.);
554554
ui.fill_path(&r.feather(0.01).rounded(s + 0.01), semi_black(0.6));
555-
ui.fill_rect(Rect::new(r.x, r.y + s + 0.003, r.w + 0.01, 0.).nonuniform_feather(-0.01, 0.002), WHITE);
556555
ui.avatar(r.x + s, r.y + s, s, t, Ok(Some(self.player.clone())));
557556
let lf = r.x + s * 2. + pad;
558557
ui.text(&self.player_name)
559-
.pos(lf, r.y + s - 0.007)
558+
.pos(lf, r.y + s)
560559
.anchor(0., 1.)
561560
.max_width(mw)
562561
.size(0.6)
@@ -570,7 +569,7 @@ impl Scene for EndingScene {
570569
})
571570
.pos(lf, r.y + s + 0.008)
572571
.size(0.4)
573-
.color(semi_white(0.6))
572+
.color(semi_white(0.7))
574573
.draw();
575574
});
576575

prpr/src/scene/loading.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ impl Scene for LoadingScene {
187187

188188
rounded_rect_shadow(ui, r, &config);
189189
clip_rounded_rect(ui, r, config.radius, |ui| {
190-
ui.fill_rect(r, Color { a: 0.65, ..self.theme_color });
190+
ui.fill_rect(r, Color { a: 0.6, ..self.theme_color });
191191
ui.fill_rect(ir, (*self.illustration, ir));
192192
ui.fill_rect(ir, (semi_black(0.5), (ir.x, ir.bottom()), Color::default(), (ir.x, ir.y)));
193193
});

0 commit comments

Comments
 (0)