mirror of
https://git.srhtnin.garden/sarah/SaraFem.git
synced 2026-10-15 02:23:17 +02:00
Show icon previews in icon pickers
This commit is contained in:
1 parent
c542134f62
commit
efe6a3f948
3 files changed
+19
-4
No files matched your search
+4
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user