mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-24 15:02:59 +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) {
|
||||
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
|
||||
.read_svg(Box::new(abstio::slurp_bytes))
|
||||
.canvas_settings(options.canvas_settings.clone());
|
||||
.canvas_settings(opts.canvas_settings.clone());
|
||||
widgetry::run(settings, |ctx| {
|
||||
let session = Session {
|
||||
partitioning: Partitioning::empty(),
|
||||
modal_filters: ModalFilters::default(),
|
||||
};
|
||||
map_gui::SimpleApp::new(ctx, options, session, |ctx, app| {
|
||||
map_gui::SimpleApp::new(ctx, opts, session, |ctx, app| {
|
||||
vec![
|
||||
map_gui::tools::TitleScreen::new_state(
|
||||
ctx,
|
||||
|
Loading…
Reference in New Issue
Block a user