mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +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 = {
|
CONFIG = {
|
||||||
"buff": MED_LARGE_BUFF,
|
"buff": MED_LARGE_BUFF,
|
||||||
"dot_scale_factor": 2,
|
"dot_scale_factor": 2,
|
||||||
|
"dot_color": WHITE,
|
||||||
# Have to include because of handle_multiple_args implementation
|
# Have to include because of handle_multiple_args implementation
|
||||||
"template_tex_file_body": TEMPLATE_TEXT_FILE_BODY,
|
"template_tex_file_body": TEMPLATE_TEXT_FILE_BODY,
|
||||||
"alignment": "",
|
"alignment": "",
|
||||||
|
@ -266,7 +267,7 @@ class BulletedList(TextMobject):
|
||||||
line_separated_items = [s + "\\\\" for s in items]
|
line_separated_items = [s + "\\\\" for s in items]
|
||||||
TextMobject.__init__(self, *line_separated_items, **kwargs)
|
TextMobject.__init__(self, *line_separated_items, **kwargs)
|
||||||
for part in self:
|
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)
|
dot.next_to(part[0], LEFT, SMALL_BUFF)
|
||||||
part.add_to_back(dot)
|
part.add_to_back(dot)
|
||||||
self.arrange(
|
self.arrange(
|
||||||
|
|
Loading…
Add table
Reference in a new issue