@@ -355,7 +355,7 @@ def _create_label_group(
355
355
font ,
356
356
scale ,
357
357
height_adjustment ,
358
- background_color = None ,
358
+ font_background_color = None ,
359
359
color = 0xFFFFFF ,
360
360
width_adjustment = 2 ,
361
361
line_spacing = 0.75 ,
@@ -370,7 +370,7 @@ def _create_label_group(
370
370
font ,
371
371
text = text ,
372
372
line_spacing = line_spacing ,
373
- background_color = background_color ,
373
+ background_color = font_background_color ,
374
374
)
375
375
_ , _ , width , _ = create_label .bounding_box
376
376
create_label .x = (self .display .width // (width_adjustment * scale )) - width // 2
@@ -454,7 +454,7 @@ def show_business_card(
454
454
name_scale = 1 ,
455
455
name_font = terminalio .FONT ,
456
456
font_color = 0xFFFFFF ,
457
- background_color = None ,
457
+ font_background_color = None ,
458
458
email_string_one = None ,
459
459
email_scale_one = 1 ,
460
460
email_font_one = terminalio .FONT ,
@@ -500,7 +500,7 @@ def show_business_card(
500
500
color = font_color ,
501
501
scale = name_scale ,
502
502
height_adjustment = 0.73 ,
503
- background_color = background_color ,
503
+ background_color = font_background_color ,
504
504
)
505
505
business_card_label_groups .append (name_group )
506
506
if email_string_one :
@@ -510,7 +510,7 @@ def show_business_card(
510
510
color = font_color ,
511
511
scale = email_scale_one ,
512
512
height_adjustment = 0.84 ,
513
- background_color = background_color ,
513
+ background_color = font_background_color ,
514
514
)
515
515
business_card_label_groups .append (email_one_group )
516
516
if email_string_two :
@@ -520,7 +520,7 @@ def show_business_card(
520
520
color = font_color ,
521
521
scale = email_scale_two ,
522
522
height_adjustment = 0.91 ,
523
- background_color = background_color ,
523
+ background_color = font_background_color ,
524
524
)
525
525
business_card_label_groups .append (email_two_group )
526
526
0 commit comments