-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
blitz/ui/components/buttons/icon.py
Outdated
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, | ||
) |
There was a problem hiding this comment.
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
blitz_ui = get_blitz_ui() | ||
namespace["blitz_ui"] = blitz_ui |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove Useless variable
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() |
There was a problem hiding this comment.
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 ?
No description provided.