From 12fc330952b34a590f845f8e291c23cce336711c Mon Sep 17 00:00:00 2001 From: Keavon Chambers Date: Tue, 27 Jul 2021 18:28:21 -0700 Subject: [PATCH] Add features to NumberInput widget; refactor widgets and tool options (#311) Closes #310 * Add features to NumberInput widget; refactor widgets and tool options * Fix swap/reset working colors using @click instead of :action --- client/web/src/components/panels/Document.vue | 50 ++++-- .../web/src/components/panels/LayerTree.vue | 14 +- .../components/widgets/buttons/IconButton.vue | 4 +- .../widgets/buttons/PopoverButton.vue | 7 +- .../widgets/floating-menus/ColorPicker.vue | 15 +- .../widgets/floating-menus/MenuList.vue | 4 +- .../widgets/inputs/DropdownInput.vue | 2 +- .../components/widgets/inputs/NumberInput.vue | 163 +++++++++++++----- .../widgets/inputs/ShelfItemInput.vue | 2 +- .../widgets/options/ToolOptions.vue | 144 ++++++++-------- .../widgets/separators/Separator.vue | 13 +- client/web/src/components/widgets/widgets.ts | 77 +++++++++ .../window/status-bar/StatusBar.vue | 5 +- client/web/src/components/workspace/Panel.vue | 2 +- 14 files changed, 330 insertions(+), 172 deletions(-) create mode 100644 client/web/src/components/widgets/widgets.ts diff --git a/client/web/src/components/panels/Document.vue b/client/web/src/components/panels/Document.vue index 3f6cfb87..300299c1 100644 --- a/client/web/src/components/panels/Document.vue +++ b/client/web/src/components/panels/Document.vue @@ -34,10 +34,10 @@ - - - - + + + +

View Mode

@@ -46,17 +46,27 @@ - + - - - + + + - + @@ -97,8 +107,8 @@
- - + +
@@ -202,20 +212,23 @@ diff --git a/client/web/src/components/widgets/inputs/ShelfItemInput.vue b/client/web/src/components/widgets/inputs/ShelfItemInput.vue index 5ff3a208..7b3eb979 100644 --- a/client/web/src/components/widgets/inputs/ShelfItemInput.vue +++ b/client/web/src/components/widgets/inputs/ShelfItemInput.vue @@ -1,6 +1,6 @@ diff --git a/client/web/src/components/widgets/options/ToolOptions.vue b/client/web/src/components/widgets/options/ToolOptions.vue index 85f58fc3..451af7f9 100644 --- a/client/web/src/components/widgets/options/ToolOptions.vue +++ b/client/web/src/components/widgets/options/ToolOptions.vue @@ -1,13 +1,25 @@