mirror of
https://git.srhtnin.garden/sarah/SaraFem.git
synced 2026-10-14 18:18:12 +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
+10
-2
@@ -2128,7 +2128,11 @@ class Browser(ft.Row):
|
||||
value=Override.Icon if Override else "",
|
||||
label="Custom icon",
|
||||
options=[ft.DropdownOption(key="", text="(Use default)")] + [
|
||||
ft.DropdownOption(key=Name, text=FolderIconLabelOverrides.get(Name, Name.split("_")[0].title()))
|
||||
ft.DropdownOption(
|
||||
key=Name,
|
||||
text=FolderIconLabelOverrides.get(Name, Name.split("_")[0].title()),
|
||||
leading_icon=getattr(ft.Icons, Name),
|
||||
)
|
||||
for Name in FolderIconChoices
|
||||
],
|
||||
)
|
||||
@@ -2319,7 +2323,11 @@ class Browser(ft.Row):
|
||||
value=DefaultBookmarkIcon,
|
||||
label="Icon",
|
||||
options=[
|
||||
ft.DropdownOption(key=Name, text=IconLabelOverrides.get(Name, Name.split("_")[0].title()))
|
||||
ft.DropdownOption(
|
||||
key=Name,
|
||||
text=IconLabelOverrides.get(Name, Name.split("_")[0].title()),
|
||||
leading_icon=getattr(ft.Icons, Name),
|
||||
)
|
||||
for Name in BookmarkIconChoices
|
||||
],
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user