fix
This commit is contained in:
@@ -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,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user