From 317a5d6226475b6b54a78db7116c373ef84ea923 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Mon, 8 Nov 2021 21:47:02 -0800 Subject: [PATCH] Make it possible to set full screen preview as a default --- manimlib/config.py | 2 +- manimlib/default_config.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/manimlib/config.py b/manimlib/config.py index 8992ce5b..76f5477c 100644 --- a/manimlib/config.py +++ b/manimlib/config.py @@ -282,7 +282,7 @@ def get_configuration(args): mon_index = custom_config["window_monitor"] monitor = monitors[min(mon_index, len(monitors) - 1)] window_width = monitor.width - if not args.full_screen: + if not (args.full_screen or custom_config["full_screen"]): window_width //= 2 window_height = window_width * 9 // 16 config["window_config"] = { diff --git a/manimlib/default_config.yml b/manimlib/default_config.yml index c67dd502..c948a8e5 100644 --- a/manimlib/default_config.yml +++ b/manimlib/default_config.yml @@ -34,6 +34,7 @@ style: # the window on the monitor, e.g. "960,540" window_position: UR window_monitor: 0 +full_screen: False # If break_into_partial_movies is set to True, then many small # files will be written corresponding to each Scene.play and # Scene.wait call, and these files will then be combined