Show icon previews in icon pickers

This commit is contained in:
sarah committed 2026-10-07 17:33:42 +02:00
1 parent c542134f62
commit efe6a3f948
3 files changed
+19 -4

No files matched your search

+4 -1
View File
@@ -181,7 +181,10 @@ def BuildSettingsDialog(
IconDropdown = ft.Dropdown(
value=BandData["Icon"],
options=[ft.DropdownOption(key=Name, text=_FolderIconLabel(Name)) for Name in FolderIconChoices],
options=[
ft.DropdownOption(key=Name, text=_FolderIconLabel(Name), leading_icon=getattr(ft.Icons, Name))
for Name in FolderIconChoices
],
width=150,
)
ImageField = ft.TextField(value=BandData["ImagePath"], label="Or custom image path", expand=True)