new intarfece
This commit is contained in:
@@ -46,7 +46,7 @@ class RegView(ft.View):
|
||||
hint_text="Загрузка...",
|
||||
)
|
||||
|
||||
self._error = ft.Text("", color=ft.Colors.RED_400, size=14, visible=False)
|
||||
self._error = ft.Text("", color=ft.Colors.RED_400, size=ds.s(14), visible=False)
|
||||
|
||||
self._btn = ds.CastomButton(
|
||||
text="Зарегистрироваться",
|
||||
@@ -63,22 +63,22 @@ class RegView(ft.View):
|
||||
bgcolor=ds.clolors.background,
|
||||
horizontal_alignment=ft.CrossAxisAlignment.STRETCH,
|
||||
vertical_alignment=ft.MainAxisAlignment.CENTER,
|
||||
padding=ft.padding.symmetric(horizontal=16, vertical=24),
|
||||
padding=ft.padding.symmetric(horizontal=ds.s(16), vertical=ds.s(24)),
|
||||
scroll=ft.ScrollMode.AUTO,
|
||||
)
|
||||
self.controls = [
|
||||
ft.Text("COPP", color=ds.clolors.ferst, size=30, weight=ft.FontWeight.BOLD,
|
||||
ft.Text("COPP", color=ds.clolors.ferst, size=ds.s(30), weight=ft.FontWeight.BOLD,
|
||||
text_align=ft.TextAlign.CENTER),
|
||||
ft.Container(height=8),
|
||||
ft.Text("Регистрация в системе", color=ds.clolors.ferst, size=16,
|
||||
ft.Container(height=ds.s(8)),
|
||||
ft.Text("Регистрация в системе", color=ds.clolors.ferst, size=ds.s(16),
|
||||
text_align=ft.TextAlign.CENTER),
|
||||
ft.Container(height=24),
|
||||
ft.Container(height=ds.s(24)),
|
||||
ft.Container(
|
||||
padding=ft.padding.all(24),
|
||||
padding=ft.padding.all(ds.s(24)),
|
||||
bgcolor=ds.clolors.laer3,
|
||||
border_radius=16,
|
||||
border_radius=ds.s(16),
|
||||
content=ft.Column(
|
||||
spacing=16,
|
||||
spacing=ds.s(16),
|
||||
controls=[
|
||||
self._first_name,
|
||||
self._last_name,
|
||||
@@ -89,8 +89,8 @@ class RegView(ft.View):
|
||||
self._error,
|
||||
ft.Row(
|
||||
wrap=True,
|
||||
spacing=8,
|
||||
run_spacing=8,
|
||||
spacing=ds.s(8),
|
||||
run_spacing=ds.s(8),
|
||||
controls=[
|
||||
self._btn_cansel,
|
||||
self._btn,
|
||||
|
||||
Reference in New Issue
Block a user