Skip to content

Commit 534ed30

Browse files
committed
Add package and class name to icon classes
Updated CupertinoIcons and Icons classes to include package_name and class_name arguments in their inheritance. This change clarifies the source and identity of the icon sets for downstream usage.
1 parent 4fe82c2 commit 534ed30

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ci/templates/cupertino_icons.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
__all__ = ["CupertinoIcons"]
1414

1515

16-
class CupertinoIcons(IconData):
16+
class CupertinoIcons(IconData, package_name="flet", class_name="CupertinoIcons"):
1717
{% for name, code in icons -%}
1818
{{ name.upper() }} = {{ "0x%X" % code }}
1919
{% endfor -%}

ci/templates/material_icons.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
__all__ = ["Icons"]
1414

1515

16-
class Icons(IconData):
16+
class Icons(IconData, package_name="flet", class_name="Icons"):
1717
{% for name, code in icons -%}
1818
{{ name.upper() }} = {{ "0x%X" % code }}
1919
{% endfor -%}

0 commit comments

Comments
 (0)