mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Add dot_color to BulletedList
This commit is contained in:
parent
3c1a6bb8b1
commit
82d6ad0ef5
1 changed files with 2 additions and 1 deletions
|
@ -257,6 +257,7 @@ class BulletedList(TextMobject):
|
|||
CONFIG = {
|
||||
"buff": MED_LARGE_BUFF,
|
||||
"dot_scale_factor": 2,
|
||||
"dot_color": WHITE,
|
||||
# Have to include because of handle_multiple_args implementation
|
||||
"template_tex_file_body": TEMPLATE_TEXT_FILE_BODY,
|
||||
"alignment": "",
|
||||
|
@ -266,7 +267,7 @@ class BulletedList(TextMobject):
|
|||
line_separated_items = [s + "\\\\" for s in items]
|
||||
TextMobject.__init__(self, *line_separated_items, **kwargs)
|
||||
for part in self:
|
||||
dot = TexMobject("\\cdot").scale(self.dot_scale_factor)
|
||||
dot = TexMobject("\\cdot", color=self.dot_color).scale(self.dot_scale_factor)
|
||||
dot.next_to(part[0], LEFT, SMALL_BUFF)
|
||||
part.add_to_back(dot)
|
||||
self.arrange(
|
||||
|
|
Loading…
Add table
Reference in a new issue