From 3d3c8e489a2796dba928a74eb601bda9191e8c20 Mon Sep 17 00:00:00 2001 From: cardosofede Date: Wed, 11 Oct 2023 12:07:33 -0300 Subject: [PATCH] (feat) move apply to top --- ui_components/editor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui_components/editor.py b/ui_components/editor.py index 66b04f7..a99963f 100644 --- a/ui_components/editor.py +++ b/ui_components/editor.py @@ -66,6 +66,7 @@ class Editor(Dashboard.Item): for label in self._tabs.keys(): mui.Tab(label=label) with mui.Grid(item=True, xs=2, sx={"display": "flex", "justifyContent": "flex-end"}): + mui.Button("Apply", variant="contained", onClick=sync()) mui.IconButton(mui.icon.Save, onClick=self.save_file, sx={"mx": 1}) for index, (label, tab) in enumerate(self._tabs.items()): @@ -84,6 +85,4 @@ class Editor(Dashboard.Item): ) with mui.Stack(direction="row", spacing=2, alignItems="center", sx={"padding": "10px"}): - mui.Button("Apply", variant="contained", onClick=sync()) event.Hotkey("ctrl+s", sync(), bindInputs=True, overrideDefault=True) - mui.Typography("Or press ctrl+s", sx={"flex": 1})