This commit is contained in:
2026-04-06 15:58:29 +05:00
parent 7435992e15
commit 0528393f2f

View File

@@ -48,13 +48,14 @@ class colors:
border = "#DDE3EA" # Светло-серая граница border = "#DDE3EA" # Светло-серая граница
class CastomText(ft.Text): class CastomText(ft.Text):
def __init__(self, text, size=14, color=colors.text_primary, weight=ft.FontWeight.NORMAL): def __init__(self, text, size=14, color=colors.text_primary, weight=ft.FontWeight.NORMAL, **kwargs):
super().__init__( super().__init__(
value=text, value=text,
color=color, color=color,
size=s(size), size=s(size),
weight=weight, weight=weight,
max_lines=99, max_lines=99,
**kwargs,
) )