We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fce6f64 commit f063933Copy full SHA for f063933
kintree/gui/views/settings.py
@@ -306,7 +306,8 @@
306
307
# Settings AppBar
308
settings_appbar = ft.AppBar(
309
- title=ft.Text('Ki-nTree Settings'),
+ title=ft.WindowDragArea(ft.Container(ft.Text('Ki-nTree Settings'),
310
+ width=10000), maximizable=True),
311
bgcolor=ft.colors.SURFACE_VARIANT
312
)
313
@@ -374,6 +375,15 @@ def __init__(self, page: ft.Page):
374
375
376
# Init view
377
super().__init__(page=page, appbar=settings_appbar, navigation_rail=settings_navrail)
378
+ if not self.appbar.actions:
379
+ self.appbar.actions.extend(
380
+ [
381
+ ft.IconButton(
382
+ ft.icons.CLOSE,
383
+ on_click=lambda _: page.window.close(),
384
+ ),
385
+ ]
386
+ )
387
388
# Update navigation rail
389
self.navigation_rail.on_change = self.nav_rail_redirect
0 commit comments