From 54fff5523b6cf63c7f240929335f043edcaf8ecf Mon Sep 17 00:00:00 2001 From: TonyCrane <975062472@qq.com> Date: Tue, 29 Jun 2021 20:55:25 +0800 Subject: [PATCH] change default font size of ControlsExample --- example_scenes.py | 8 ++++---- manimlib/mobject/interactive.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/example_scenes.py b/example_scenes.py index e2454b1e..a3a4171f 100644 --- a/example_scenes.py +++ b/example_scenes.py @@ -639,14 +639,14 @@ class ControlsExample(Scene): self.checkbox = Checkbox() self.color_picker = ColorSliders() self.panel = ControlPanel( - Text("Text", size=0.5), self.textbox, Line(), - Text("Show/Hide Text", size=0.5), self.checkbox, Line(), - Text("Color of Text", size=0.5), self.color_picker + Text("Text", font_size=24), self.textbox, Line(), + Text("Show/Hide Text", font_size=24), self.checkbox, Line(), + Text("Color of Text", font_size=24), self.color_picker ) self.add(self.panel) def construct(self): - text = Text("text", size=2) + text = Text("text", font_size=96) def text_updater(old_text): assert(isinstance(old_text, Text)) diff --git a/manimlib/mobject/interactive.py b/manimlib/mobject/interactive.py index df9e0432..617449be 100644 --- a/manimlib/mobject/interactive.py +++ b/manimlib/mobject/interactive.py @@ -439,7 +439,7 @@ class ControlPanel(Group): }, "opener_text_kwargs": { "text": "Control Panel", - "size": 0.4 + "font_size": 20 } }