mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-25 07:25:47 +03:00
Fix default color scheme for the LTN tool
This commit is contained in:
parent
a6cd58346f
commit
778ffc6be3
@ -35,16 +35,17 @@ pub fn main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn run(mut settings: Settings) {
|
fn run(mut settings: Settings) {
|
||||||
let options = map_gui::options::Options::load_or_default();
|
let mut opts = map_gui::options::Options::load_or_default();
|
||||||
|
opts.color_scheme = map_gui::colors::ColorSchemeChoice::DayMode;
|
||||||
settings = settings
|
settings = settings
|
||||||
.read_svg(Box::new(abstio::slurp_bytes))
|
.read_svg(Box::new(abstio::slurp_bytes))
|
||||||
.canvas_settings(options.canvas_settings.clone());
|
.canvas_settings(opts.canvas_settings.clone());
|
||||||
widgetry::run(settings, |ctx| {
|
widgetry::run(settings, |ctx| {
|
||||||
let session = Session {
|
let session = Session {
|
||||||
partitioning: Partitioning::empty(),
|
partitioning: Partitioning::empty(),
|
||||||
modal_filters: ModalFilters::default(),
|
modal_filters: ModalFilters::default(),
|
||||||
};
|
};
|
||||||
map_gui::SimpleApp::new(ctx, options, session, |ctx, app| {
|
map_gui::SimpleApp::new(ctx, opts, session, |ctx, app| {
|
||||||
vec![
|
vec![
|
||||||
map_gui::tools::TitleScreen::new_state(
|
map_gui::tools::TitleScreen::new_state(
|
||||||
ctx,
|
ctx,
|
||||||
|
Loading…
Reference in New Issue
Block a user