mirror of
https://github.com/Sygil-Dev/sygil-webui.git
synced 2024-12-14 22:13:41 +03:00
fixed bug in 'flet_gallery_window.py'(flet ui)
This commit is contained in:
parent
46e1cf680c
commit
028cd2c603
@ -88,9 +88,9 @@ def add_as_new_layer(e):
|
|||||||
e.page.asset_manager.add_images_as_layers(gallery_window.selected_images)
|
e.page.asset_manager.add_images_as_layers(gallery_window.selected_images)
|
||||||
gallery_window.selected_images.clear()
|
gallery_window.selected_images.clear()
|
||||||
for tab in gallery_window.content.content.tabs:
|
for tab in gallery_window.content.content.tabs:
|
||||||
for image in tab.content.controls:
|
for image in tab.content.content.controls:
|
||||||
image.border = None
|
image.border = None
|
||||||
tab.update()
|
image.update()
|
||||||
|
|
||||||
def save_to_disk(e):
|
def save_to_disk(e):
|
||||||
pass
|
pass
|
||||||
|
@ -178,7 +178,7 @@ def open_close_layer_properties(e):
|
|||||||
layer_property_header = ft.Column(
|
layer_property_header = ft.Column(
|
||||||
controls = [
|
controls = [
|
||||||
ft.TextButton(
|
ft.TextButton(
|
||||||
text = "layer Properties",
|
text = "Layer Properties",
|
||||||
icon = ft.icons.ARROW_RIGHT,
|
icon = ft.icons.ARROW_RIGHT,
|
||||||
on_click = open_close_layer_properties,
|
on_click = open_close_layer_properties,
|
||||||
disabled = True,
|
disabled = True,
|
||||||
|
@ -95,6 +95,7 @@ def main(page: ft.Page):
|
|||||||
|
|
||||||
# asset manager
|
# asset manager
|
||||||
page.asset_manager = asset_manager
|
page.asset_manager = asset_manager
|
||||||
|
page.active_layer = None
|
||||||
|
|
||||||
# canvas
|
# canvas
|
||||||
page.canvas = canvas
|
page.canvas = canvas
|
||||||
@ -110,7 +111,6 @@ def main(page: ft.Page):
|
|||||||
|
|
||||||
# property manager
|
# property manager
|
||||||
page.property_manager = property_manager
|
page.property_manager = property_manager
|
||||||
page.preview_height = 200
|
|
||||||
|
|
||||||
# settings
|
# settings
|
||||||
def load_settings():
|
def load_settings():
|
||||||
|
Loading…
Reference in New Issue
Block a user