mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Merge pull request #1112 from vivek3141/patch-1
Add dot_color to BulletedList
This commit is contained in:
commit
53756ea140
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