Fix color mismatch for two graph template
Browse files- routers/powerpoint.py +2 -2
routers/powerpoint.py
CHANGED
|
@@ -381,7 +381,6 @@ class TwoColumnGraphTemplateGenerator(TemplateGenerator):
|
|
| 381 |
gtl_tf.text = presentation_data.left_graph_title
|
| 382 |
gtl_tf.paragraphs[0].font.size = Pt(12)
|
| 383 |
gtl_tf.paragraphs[0].font.name = "Verdana"
|
| 384 |
-
gtl_tf.paragraphs[0].font.color.rgb = RGBColor(0, 32, 96)
|
| 385 |
|
| 386 |
# === Shape 7 : Ligne horizontale droite ===
|
| 387 |
line3 = slide.shapes.add_connector(
|
|
@@ -401,7 +400,6 @@ class TwoColumnGraphTemplateGenerator(TemplateGenerator):
|
|
| 401 |
gtr_tf.text = presentation_data.right_graph_title
|
| 402 |
gtr_tf.paragraphs[0].font.size = Pt(12)
|
| 403 |
gtr_tf.paragraphs[0].font.name = "Verdana"
|
| 404 |
-
gtr_tf.paragraphs[0].font.color.rgb = RGBColor(0, 32, 96)
|
| 405 |
|
| 406 |
# === Shape 9 : Bloc texte gauche ===
|
| 407 |
text_left = slide.shapes.add_textbox(Inches(4.47), Inches(2.85), Inches(1.8), Inches(3.6))
|
|
@@ -448,6 +446,7 @@ class TwoColumnGraphTemplateGenerator(TemplateGenerator):
|
|
| 448 |
txt12_tf.paragraphs[0].font.size = Pt(14)
|
| 449 |
txt12_tf.paragraphs[0].font.name = "Verdana"
|
| 450 |
txt12_tf.paragraphs[0].font.bold = True
|
|
|
|
| 451 |
|
| 452 |
# === Shape 13 : Texte haut droite ===
|
| 453 |
txt13 = slide.shapes.add_textbox(Inches(7.07), Inches(1.52), Inches(5.9), Inches(0.44))
|
|
@@ -457,6 +456,7 @@ class TwoColumnGraphTemplateGenerator(TemplateGenerator):
|
|
| 457 |
txt13_tf.paragraphs[0].font.size = Pt(14)
|
| 458 |
txt13_tf.paragraphs[0].font.name = "Verdana"
|
| 459 |
txt13_tf.paragraphs[0].font.bold = True
|
|
|
|
| 460 |
|
| 461 |
# === Shape 14 : Graph gauche ===
|
| 462 |
try:
|
|
|
|
| 381 |
gtl_tf.text = presentation_data.left_graph_title
|
| 382 |
gtl_tf.paragraphs[0].font.size = Pt(12)
|
| 383 |
gtl_tf.paragraphs[0].font.name = "Verdana"
|
|
|
|
| 384 |
|
| 385 |
# === Shape 7 : Ligne horizontale droite ===
|
| 386 |
line3 = slide.shapes.add_connector(
|
|
|
|
| 400 |
gtr_tf.text = presentation_data.right_graph_title
|
| 401 |
gtr_tf.paragraphs[0].font.size = Pt(12)
|
| 402 |
gtr_tf.paragraphs[0].font.name = "Verdana"
|
|
|
|
| 403 |
|
| 404 |
# === Shape 9 : Bloc texte gauche ===
|
| 405 |
text_left = slide.shapes.add_textbox(Inches(4.47), Inches(2.85), Inches(1.8), Inches(3.6))
|
|
|
|
| 446 |
txt12_tf.paragraphs[0].font.size = Pt(14)
|
| 447 |
txt12_tf.paragraphs[0].font.name = "Verdana"
|
| 448 |
txt12_tf.paragraphs[0].font.bold = True
|
| 449 |
+
txt12_tf.paragraphs[0].font.color.rgb = RGBColor(0, 32, 96)
|
| 450 |
|
| 451 |
# === Shape 13 : Texte haut droite ===
|
| 452 |
txt13 = slide.shapes.add_textbox(Inches(7.07), Inches(1.52), Inches(5.9), Inches(0.44))
|
|
|
|
| 456 |
txt13_tf.paragraphs[0].font.size = Pt(14)
|
| 457 |
txt13_tf.paragraphs[0].font.name = "Verdana"
|
| 458 |
txt13_tf.paragraphs[0].font.bold = True
|
| 459 |
+
txt13_tf.paragraphs[0].font.color.rgb = RGBColor(0, 32, 96)
|
| 460 |
|
| 461 |
# === Shape 14 : Graph gauche ===
|
| 462 |
try:
|