Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/add components system #14

Closed
wants to merge 19 commits into from
Closed

Conversation

mde-pach
Copy link
Collaborator

No description provided.

Comment on lines 8 to 25
class IconButton(BaseIconButton): # type: ignore
def __init__(
self,
icon: str,
on_click: Any | None = None,
color: str = "transparent",
icon_color: str = "secondary",
icon_size: str = "xm",
props: str = "",
classes: str = "",
):
super().__init__(
on_click=on_click,
color=color,
icon=icon,
props=f"{props} color={icon_color} size={icon_size}",
classes=classes,
)
Copy link
Collaborator Author

@mde-pach mde-pach Feb 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sure we can find better implementation for case like this with a dictionary instead of a string for example but idk how yet

pbrochar
pbrochar previously approved these changes Feb 21, 2024
Comment on lines +10 to +11
blitz_ui = get_blitz_ui()
namespace["blitz_ui"] = blitz_ui
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove Useless variable

Suggested change
blitz_ui = get_blitz_ui()
namespace["blitz_ui"] = blitz_ui
namespace["blitz_ui"] = get_blitz_ui()

else:
self.classes = classes

self.blitz_ui = get_blitz_ui()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the class has a metaclass and this line ?

@mde-pach mde-pach closed this Mar 3, 2024
@mde-pach mde-pach deleted the feature/add-components-system branch March 20, 2024 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants