fixed bug in 'flet_gallery_window.py'(flet ui)

This commit is contained in:
aedhcarrick 2022-12-20 14:20:58 -06:00
parent 46e1cf680c
commit 028cd2c603
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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,

View File

@ -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():