A few misc fixes after the grand button/color refactor:

- Always draw traffic signal stage numbers as white, even in day mode
- Always draw loading screen text as white, in any theme
- Double the scrollbar thickness from 4px to 8px (still way thinner than
  the original design)

[rebuild] [release]
This commit is contained in:
Dustin Carlino 2021-02-28 10:31:00 -08:00
parent 09c98b99c7
commit 4d048d83bd
3 changed files with 4 additions and 3 deletions

View File

@ -208,7 +208,7 @@ pub fn draw_stage_number(
Circle::new(center, radius).to_polygon(), Circle::new(center, radius).to_polygon(),
); );
batch.append( batch.append(
Text::from(Line(format!("{}", idx + 1))) Text::from(Line(format!("{}", idx + 1)).fg(Color::WHITE))
.render_autocropped(prerender) .render_autocropped(prerender)
.scale(0.075) .scale(0.075)
.centered_on(center), .centered_on(center),

View File

@ -186,7 +186,8 @@ impl<'a> EventCtx<'a> {
.centered_vert(), .centered_vert(),
Widget::draw_batch( Widget::draw_batch(
self, self,
txt.inner_render(&self.prerender.assets, svg::LOW_QUALITY), txt.change_fg(Color::WHITE)
.inner_render(&self.prerender.assets, svg::LOW_QUALITY),
) )
.container() .container()
.fill_width() .fill_width()

View File

@ -24,7 +24,7 @@ enum Style {
Area { width: f64 }, Area { width: f64 },
} }
pub const SCROLLBAR_BG_WIDTH: f64 = 4.0; pub const SCROLLBAR_BG_WIDTH: f64 = 8.0;
pub const AREA_SLIDER_BG_WIDTH: f64 = 10.0; pub const AREA_SLIDER_BG_WIDTH: f64 = 10.0;
impl Style { impl Style {