Commit Graph

808 Commits (689c22b83c03a4cf5321e9c7f6fcff318b8ab75c)

Author SHA1 Message Date
Isaiah Odhner 689c22b83c Rescale pointer position when zooming 2019-10-21 17:10:07 -04:00
Isaiah Odhner 37683461f4 Fix accessing pointer which might not exist
e.g. if you select the brush and zoom the browser without moving the mouse over the canvas beforehand
2019-10-21 17:08:52 -04:00
Isaiah Odhner 08d120d543 Improve performance! 2019-10-21 14:34:03 -04:00
Isaiah Odhner 1501b6a6a4 Abut them buttons! 2019-10-21 13:28:12 -04:00
Isaiah Odhner c87f8b483b Fix text toolbar button icon centering
Don't ask me why that was there
2019-10-21 13:21:44 -04:00
Isaiah Odhner a98cf0f473 Clean up and disable vertical text button 2019-10-21 13:10:55 -04:00
Isaiah Odhner 0ff1ca16f6 Fix font selector showing as empty in some cases
- Case one: Font box shown, then shown again; this didn't work because the serialized value needed was `"Arial"` (quoted) not `Arial`
- Case two: Font box shown before font availability data loaded
- Make it easier to avoid name collision bugs by renaming the global `font` -> `text_tool_font`
- Include other properties that belong to that object in its initialization (as documentation)
2019-10-21 12:17:06 -04:00
Isaiah Odhner 14cb62f2fd Flash is dead; update Font Detective 2019-10-21 12:07:14 -04:00
Isaiah Odhner 779eacf7ee Make window close buttons accessible in small viewports 2019-10-18 20:51:37 -04:00
Christian Liebel d30843a089 Apply window bounds after pointerup 2019-10-18 20:51:36 -04:00
Christian Liebel b051c2b6c9 Assign high z-index to popups instead of menu bar 2019-10-18 20:51:36 -04:00
Isaiah Odhner ce2c5ab45e Fix shape stroke offset (for line width > 1)
Broken in c871f14b6d (found with git bisect)
2019-10-10 20:28:25 -04:00
Isaiah Odhner 61b22adbc6 Redesign layout of About Paint
Move the View Project News button into the header row.
2019-10-10 12:19:20 -04:00
Isaiah Odhner aed00ce022 WIP no relayout on load 2019-10-10 11:23:51 -04:00
Isaiah Odhner b6cf2e0289 Make news window max size smaller
This way it highlights the news at the top more, gives it more importance.
2019-10-10 00:42:53 -04:00
Isaiah Odhner 232af6e981 Simplify news styles 2019-10-10 00:41:49 -04:00
Isaiah Odhner 9eb2a871fe Fix event listeners after closing About Paint 2019-10-10 00:31:32 -04:00
Isaiah Odhner 4b074f6cc4 Move news styles into `#news > style`
This way it'll use the CSS defined for the HTML its using.
2019-10-10 00:11:11 -04:00
Isaiah Odhner 5d7d135ed8 View Project News from Help > About Paint 2019-10-09 23:34:21 -04:00
Isaiah Odhner 59d17eb5ea Enable CORS for index.html 2019-10-09 23:25:03 -04:00
Isaiah Odhner 49785bc415 Disable Draw Randomly for now
TODO:
- avoid user mouse movement interfering with artificial gestures
- add prominent button to stop it
- make selecting the option close the menu so it starts immediately; maybe make all menus close when you select a menu item (like normal MS Paint / Windows menus)
- make gestures more interesting
2019-10-09 14:22:48 -04:00
Isaiah Odhner 0b4d9295d7 Draw Randomly 2019-10-09 14:04:42 -04:00
Isaiah Odhner ead1966b85 DRY 2019-10-08 21:55:23 -04:00
Isaiah Odhner 10c1cde3d9 Simplify 2019-10-08 21:52:03 -04:00
Isaiah Odhner 3b639fab59 Quick-fix eye dropper 2019-10-08 20:31:11 -04:00
Isaiah Odhner 3e5df605f8 Tag tools for easy Ctrl+F in the codebase 2019-10-08 20:20:10 -04:00
Isaiah Odhner c82e6369b0 Twitter please stop cropping off the important parts
Twitter doesn't let you control cropping, they use a neural network for that, and it has the final say.
2019-10-08 16:51:42 -04:00
Isaiah Odhner 3b13c4cc05 Use a card layout with an icon instead of a full screenshot
for sharing on Facebook
2019-10-08 16:45:07 -04:00
Isaiah Odhner 74ea8155ec Fix MS tile icon paths 2019-10-08 12:29:27 -04:00
Isaiah Odhner 10b8dc8c46 Clean up icon names
and delete redundant 96px and 48px icons
2019-10-07 00:12:20 -04:00
Isaiah Odhner fafd250b0c Use a single apple-touch-icon
https://webhint.io/docs/user-guide/hints/hint-apple-touch-icons/#why-is-this-important
2019-10-07 00:12:20 -04:00
Isaiah Odhner 9137e95cbd Hint img sizes 2019-10-06 23:50:43 -04:00
Isaiah Odhner 583a87ebdc Add noscript message 2019-10-06 23:37:44 -04:00
Isaiah Odhner a6ced04eb7 Change MS tile color
- Use the teal from the default Windows 98 background color to make it look like the icon on that desktop
2019-10-06 23:17:10 -04:00
Isaiah Odhner 972f44b234 Change theme and background color
- Use dark blue for the theme color, from the windows 98 titlebar color
- Use dark gray for the background color, from the scrollable canvas area
- Make webhint.io happy by removing the version field and nonstandard categories from the manifest
2019-10-06 23:17:10 -04:00
Christian Liebel 3cdf1913f2 Use official Web App Manifest extension 2019-10-06 22:37:59 -04:00
Isaiah Odhner 432f1bb645 Hide tool preview immediately when canceling
Previously you had to move the mouse for the tool preview to hide after you hit Esc or pressed two mouse buttons while using Free-Form Select.
2019-10-04 09:56:53 -04:00
Isaiah Odhner 017203dee6 Little details for multitools
Determine passivity and immediacy given that there can be multiple tools selected.
2019-10-04 07:34:10 -04:00
Isaiah Odhner 50b0a871b5 Update README 2019-10-03 15:54:51 -04:00
Isaiah Odhner c2edd86184 Fix quick undo behavior for Free-Form Select 2019-10-02 23:53:29 -04:00
Isaiah Odhner 827dcd4c56 Don't store an event object 2019-10-02 15:50:18 -04:00
Isaiah Odhner e17f857b38 Update tool preview cursor on scroll
WIP
2019-10-02 15:37:48 -04:00
Isaiah Odhner add82f1940 Return to a zoom level even if it's less than 1x
Since implementing Custom Zoom, you can now zoom to less than 1x.

Generalize the behavior where it remembers one zoom level to return to, to work with sub-100% zooms.
2019-10-02 13:59:27 -04:00
Isaiah Odhner ad4e5c7cad Disable antialiasing consistently for selections 2019-10-02 13:43:16 -04:00
Isaiah Odhner 9a73f92bbb Make multitools way more fun by not clearing the canvas for shapes 2019-10-02 12:41:41 -04:00
Isaiah Odhner 87fa553f96 Fix shape tools 2019-10-02 10:34:43 -04:00
Isaiah Odhner 678d46c742 Fix middle mouse scrolling while selecting or drawing 2019-10-01 20:34:41 -04:00
Isaiah Odhner 39482d3fe9 Hide tool previews when appropriate 2019-10-01 18:45:32 -04:00
Isaiah Odhner efec7f62bb WIP: hide tool previews when appropriate 2019-10-01 18:41:33 -04:00
Isaiah Odhner 089a09daa8 Fix returning to zoom selected with Custom Zoom 2019-10-01 15:23:44 -04:00