mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-25 23:43:25 +03:00
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:
parent
09c98b99c7
commit
4d048d83bd
@ -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),
|
||||||
|
@ -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()
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user