Skip to content

Commit 1b8e819

Browse files
authored
Update pybadger_base font color
Update to use font-color with background color in custom business card.
1 parent 24dd18e commit 1b8e819

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

adafruit_pybadger/pybadger_base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ def show_business_card(
448448
name_string=None,
449449
name_scale=1,
450450
name_font=terminalio.FONT,
451+
font_color=0xFFFFFF,
451452
background_color=None,
452453
email_string_one=None,
453454
email_scale_one=1,
@@ -491,6 +492,7 @@ def show_business_card(
491492
name_group = self._create_label_group(
492493
text=name_string,
493494
font=name_font,
495+
color=font_color,
494496
scale=name_scale,
495497
height_adjustment=0.73,
496498
background_color=background_color,
@@ -500,6 +502,7 @@ def show_business_card(
500502
email_one_group = self._create_label_group(
501503
text=email_string_one,
502504
font=email_font_one,
505+
color=font_color,
503506
scale=email_scale_one,
504507
height_adjustment=0.84,
505508
background_color=background_color,
@@ -509,6 +512,7 @@ def show_business_card(
509512
email_two_group = self._create_label_group(
510513
text=email_string_two,
511514
font=email_font_two,
515+
color=font_color,
512516
scale=email_scale_two,
513517
height_adjustment=0.91,
514518
background_color=background_color,

0 commit comments

Comments
 (0)