diff --git a/app/clients/view.py b/app/clients/view.py index 5a7b196f..a9b4c8f9 100644 --- a/app/clients/view.py +++ b/app/clients/view.py @@ -60,7 +60,7 @@ def build(self): ListTile( leading=Icon( utils.TuttleComponentIcons.client_icon, - size=dimens.ICON_SIZE, + size=dimens.MD_ICON_SIZE, ), title=views.TBodyText(self.client.name), trailing=editor_controls, diff --git a/app/contacts/view.py b/app/contacts/view.py index 8d08fa40..f9b027e4 100644 --- a/app/contacts/view.py +++ b/app/contacts/view.py @@ -48,7 +48,7 @@ def build(self): ListTile( leading=Icon( utils.TuttleComponentIcons.contact_icon, - size=dimens.ICON_SIZE, + size=dimens.MD_ICON_SIZE, ), title=views.TBodyText(utils.truncate_str(self.contact.name)), subtitle=views.TBodyText( diff --git a/app/contracts/view.py b/app/contracts/view.py index d1bdc1fe..f08fb016 100644 --- a/app/contracts/view.py +++ b/app/contracts/view.py @@ -60,7 +60,7 @@ def build(self): ListTile( leading=Icon( utils.TuttleComponentIcons.contract_icon, - size=dimens.ICON_SIZE, + size=dimens.MD_ICON_SIZE, ), title=views.TBodyText(self.contract.title), subtitle=views.TBodyText( diff --git a/app/core/views.py b/app/core/views.py index 34d9d70e..3934e6e4 100644 --- a/app/core/views.py +++ b/app/core/views.py @@ -40,6 +40,20 @@ class Spacer(Container): """Creates a space between controls""" + # FIXME: Unpythonic code, replace with + # class Spacer(Container): + # SPACE_SIZES = { + # 'lg': 40, + # 'md': 20, + # 'sm': 10, + # 'xs': 5, + # None: 15, + # } + + # def __init__(self, size=None, **kwargs): + # self._space_size = self.SPACE_SIZES[size] + # super().__init__(height=self._space_size, width=self._space_size, **kwargs) + def __init__( self, lg_space: bool = False, @@ -827,7 +841,7 @@ def __init__( leading=Container( content=TSubHeading( subtitle=title, - align=utils.START_ALIGNMENT, + align=utils.TXT_ALIGN_LEFT, expand=True, color=colors.GRAY_DARK_COLOR, ), diff --git a/app/projects/view.py b/app/projects/view.py index 0d554dbb..5193ab07 100644 --- a/app/projects/view.py +++ b/app/projects/view.py @@ -58,7 +58,7 @@ def build(self): ListTile( leading=Icon( utils.TuttleComponentIcons.project_icon, - size=dimens.ICON_SIZE, + size=dimens.MD_ICON_SIZE, ), title=views.TBodyText(self.project.title), subtitle=views.TBodyText( @@ -76,6 +76,7 @@ def build(self): on_click=lambda e: self.on_view_details_clicked(self.project.id), ), views.Spacer(md_space=True), + views.Spacer(md_space=True), ResponsiveRow( controls=[ views.TBodyText(