personalizedrefrigerator / js-draw

Draw pictures using a pen, touchscreen, or mouse! JS-draw is a freehand drawing library for JavaScript and TypeScript.
https://personalizedrefrigerator.github.io/js-draw/typedoc/
MIT License
79 stars 8 forks source link

Rework toolbar dropdowns #21

Closed personalizedrefrigerator closed 9 months ago

personalizedrefrigerator commented 1 year ago

Summary

Currently, toolbar dropdowns in js-draw look the same on all platforms. This is the current appearance (and can be seen here): Screenshot: rectangular dropdown is positioned directly below a toolbar button Some users have found these dropdowns initially unintuitive (e.g. discovering that they exist) and their design differs significantly from that of other apps.

The redesign will likely have different dropdown layouts for different platforms (e.g. small screen width vs large screen width).

To-dos

Design drafts

Note: The below sketches don't include the exact icons/colors/theming I plan to use.

Redesign possibility 1: Sidebars

On large screens, one option is to display tool options in a sidebar, rather than a dropdown. For example,

Design mockup: Text tool options shown in a sidebar, rather than a dropdown

While this is a closer experience to many other applications and may be easier to navigate to, it is unclear whether the pan tool/page dropdown should have a similar sidebar or a completely different design.

At present, the "pan" dropdown looks like this: screenshot: pan tool dropdown: A list of buttons with icons

The "page" dropdown looks like this: screenshot: page tool dropdown

The pan dropdown might, with a sidebar, look like this:

Image

Redesign possibility 2: Drawer-like menu from the bottom of the screen

On narrow-width screens, it may make sense to use a menu that comes up from the bottom of the screen:

Drawer coming up from bottom of screen

Tapping on a tool twice or long-pressing could show the dropdown.

personalizedrefrigerator commented 9 months ago

Closing for now: Possibility 2 has been implemented for quite some time.