From 49b0315d05bcb3345614274613e5a345a1ff967d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20A=2E=20Maita?= Date: Sat, 12 Jul 2025 13:33:23 -0400 Subject: [PATCH] Fix typos on "ft.Colors" --- .../input-and-selections/text-field/textfield-style.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python/controls/input-and-selections/text-field/textfield-style.py b/python/controls/input-and-selections/text-field/textfield-style.py index a92cc977..349f76c0 100644 --- a/python/controls/input-and-selections/text-field/textfield-style.py +++ b/python/controls/input-and-selections/text-field/textfield-style.py @@ -10,19 +10,19 @@ def textbox_changed(e): # ft.TextStyle object has 6 properties: size, weight, italic, font_family, color, bgcolor tb = ft.TextField( - text_style=ft.TextStyle(size=15, italic=True, color=ft.colors.DEEP_ORANGE_600, bgcolor='limeaccent200'), + text_style=ft.TextStyle(size=15, italic=True, color=ft.Colors.DEEP_ORANGE_600, bgcolor='limeaccent200'), label="Textbox with 'change' event and style:", - label_style=ft.TextStyle(size=17, weight='bold', italic=True, color=ft.colors.BLUE, bgcolor=ft.colors.RED_700), + label_style=ft.TextStyle(size=17, weight='bold', italic=True, color=ft.Colors.BLUE, bgcolor=ft.Colors.RED_700), hint_text="hint_text", - hint_style=ft.TextStyle(size=15, weight='bold', italic=True, color=ft.colors.PINK_ACCENT, bgcolor="brown400"), + hint_style=ft.TextStyle(size=15, weight='bold', italic=True, color=ft.Colors.PINK_ACCENT, bgcolor="brown400"), helper_text="helper_text", - helper_style=ft.TextStyle(size=14, weight='bold', color=ft.colors.DEEP_PURPLE, bgcolor=ft.colors.BLUE_50), + helper_style=ft.TextStyle(size=14, weight='bold', color=ft.Colors.DEEP_PURPLE, bgcolor=ft.Colors.BLUE_50), counter_text="counter_text", - counter_style=ft.TextStyle(size=14, italic=True, color=ft.colors.YELLOW, bgcolor=ft.colors.GREEN_500), + counter_style=ft.TextStyle(size=14, italic=True, color=ft.Colors.YELLOW, bgcolor=ft.Colors.GREEN_500), on_change=textbox_changed, )