initial commit
This commit is contained in:
1 parent
e22e45b1ac
commit
e580080a98
137 files changed
+23845
-9
No files matched your search
@@ -0,0 +1,16 @@
|
||||
from fabric.widgets.label import Label
|
||||
|
||||
|
||||
def MaterialIcon(icon_name: str, size: int = 24, props=None):
|
||||
label_props = {
|
||||
"label": str(icon_name), # Directly use the provided icon name
|
||||
"name": "material_icon",
|
||||
"style": f"font-size: {size}px;", # Set font family for Material Icons
|
||||
"h_align": "center", # Align horizontally
|
||||
"v_align": "center", # Align vertically
|
||||
}
|
||||
|
||||
if props:
|
||||
label_props.update(props)
|
||||
|
||||
return Label(**label_props)
|
||||
Reference in new issue
Block a user