From 49f8fb71e478ce25e4ee5f89ccef19c78e79d347 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Sun, 18 Apr 2021 11:11:06 +0200 Subject: [PATCH] show toolbar settings --- packages/web/src/commands/stdCommands.ts | 4 +- .../web/src/settings/SettingsModal.svelte | 52 ++++++++++++------- packages/web/src/stores.ts | 2 +- 3 files changed, 36 insertions(+), 22 deletions(-) diff --git a/packages/web/src/commands/stdCommands.ts b/packages/web/src/commands/stdCommands.ts index 6ed9e6cf..f8502dc3 100644 --- a/packages/web/src/commands/stdCommands.ts +++ b/packages/web/src/commands/stdCommands.ts @@ -46,7 +46,7 @@ registerCommand({ id: 'toolbar.show', category: 'Toolbar', name: 'Show', - onClick: () => visibleToolbar.set(1), + onClick: () => visibleToolbar.set(true), testEnabled: () => !getVisibleToolbar(), }); @@ -54,7 +54,7 @@ registerCommand({ id: 'toolbar.hide', category: 'Toolbar', name: 'Hide', - onClick: () => visibleToolbar.set(0), + onClick: () => visibleToolbar.set(false), testEnabled: () => getVisibleToolbar(), }); diff --git a/packages/web/src/settings/SettingsModal.svelte b/packages/web/src/settings/SettingsModal.svelte index ce824de8..fd14956f 100644 --- a/packages/web/src/settings/SettingsModal.svelte +++ b/packages/web/src/settings/SettingsModal.svelte @@ -1,4 +1,6 @@ -{#if $settings} - - -
Settings
+ + +
Settings
-
Data grid
- - - +
Appearance
+ -
- - -
-
-
-{/if} +
Data grid
+ + + + +
+ + +
+
+