Commit Graph

28 Commits (main)

Author SHA1 Message Date
Isaiah Odhner 6276bd588c Highlight focused button or submit button in dialog windows
- Show the button that will be activated if you hit Enter with a special
  style. This is the focused button, if there is one, or else the submit
  button (usually the "OK" button.)
- Mark buttons with type="submit" or type="button". This may or may not
  prevent bad implicit Enter handling in some dialog(s).
- TODO: handle Enter in Edit Colors dialog; test everything
2023-02-13 20:27:03 -05:00
Isaiah Odhner 355fba3ee2 Wrap many modules in IIFEs to track their exports 2022-01-19 00:17:32 -05:00
Isaiah Odhner 8053b38e58 Auto-format code with VS Code
Format JS and HTML using VS Code extension: https://marketplace.visualstudio.com/items?itemName=jbockle.jbockle-format-files

Dedented some files for now to make the diff intelligible:
- tools.js
- menus.js
- speech-recognition.js
- simulate-random-gestures.js
2022-01-18 19:40:58 -05:00
Isaiah Odhner d4ec1fd3c5 Display image previews always with a border (improve GIF and Imgur dialogs) 2021-12-07 18:10:31 -05:00
Isaiah Odhner 6d1a79d146 Add a reasonable amount of padding to dialogs
I had put this off for a long time because I wanted to get it exactly correct, but some is better than none!
And some dialogs are custom anyways, so there's no "right" answer.
2021-12-07 18:10:31 -05:00
Isaiah Odhner e046f7582d Simplify spelling (dialog vs dialogue) 2021-12-07 16:02:52 -05:00
Isaiah Odhner 847fbc394b Update os-gui to 0.3.0, unifying windowing code
Enable resizable windows! And proper dialog window styles!
Tool window titlebar text is truncated with ellipses now instead of making the window ridiculously wide for some languages, e.g. EspaƱol which reads "Herramientas" for "Tools"
2021-11-19 20:31:27 -05:00
Isaiah Odhner 7e2ed671a6 Add default focus to all windows 2021-04-01 21:22:38 -04:00
Isaiah Odhner b2b8607b87 Revoke all object URLs 2021-02-15 12:40:25 -05:00
Isaiah Odhner 88cc100083 Style progress bars 2021-02-02 15:58:59 -05:00
Isaiah Odhner 35415cd7d4 Enlarge windows for Eye Gaze Mode
- Enlarge some dialog windows in Eye Gaze Mode to as big as they can be.
- Treat upscaled Edit Colors dialog as two screens like for small viewports.
- Standardize on setting the width of window content rather than the frame,
  because this method doesn't work with a window with `width` set on the frame.
  This may affect window sizes slightly.
2020-12-24 17:43:43 -05:00
Isaiah Odhner dbcd4cba1f WIP localization 2020-12-07 00:35:13 -05:00
Isaiah Odhner 31edf30064 Unify TODO comments 2020-04-27 20:45:47 -04:00
Isaiah Odhner 5e6b803967 WIP: use os-gui 2020-03-24 14:28:10 -04:00
Isaiah Odhner 593cddac09 Clean up
No more "var" declarations
2019-11-03 10:39:48 -05:00
Isaiah Odhner 6e130de69e Use template strings
lebab --replace src/ --transform template
2019-10-29 17:16:33 -04:00
Isaiah Odhner af6e9a1242 Convert var to let and const
$ lebab --replace src/ --transform let
src/$Component.js:
59:   warning  Unable to transform var  (let)
60:   warning  Unable to transform var  (let)
97:   warning  Unable to transform var  (let)
138:  warning  Unable to transform var  (let)
src/$Window.js:
74:   warning  Unable to transform var  (let)
src/app.js:
662:  warning  Unable to transform var  (let)
460:  warning  Unable to transform var  (let)
612:  warning  Unable to transform var  (let)
613:  warning  Unable to transform var  (let)
614:  warning  Unable to transform var  (let)
src/functions.js:
756:  warning  Unable to transform var  (let)
src/image-manipulation.js:
245:  warning  Unable to transform var  (let)
826:  warning  Unable to transform var  (let)
src/imgur.js:
48:   warning  Unable to transform var  (let)
173:  warning  Unable to transform var  (let)
2019-10-29 16:46:51 -04:00
Isaiah Odhner d0e722d12c Convert to arrow functions with lebab
npm install -g lebab@3.1.0

lebab --replace src/ --transform arrow
2019-10-29 14:46:29 -04:00
Isaiah Odhner 886d14f09e Ditch jQuery.ajax for plain XHR
Handle JSON parsing explicitly and give a better error message in case it ever happens.

Avoid having to avoid things the jQuery.ajax API does by default.
2018-08-13 23:43:02 -04:00
Isaiah Odhner affd1cfada Upload rendered GIFs to Imgur
Rework the UI and add a preview image
2018-08-13 02:59:21 -04:00
Isaiah Odhner 39138a4cee Remove buttons contextually and add OK button 2018-08-13 00:42:29 -04:00
Isaiah Odhner ced33d964b Add progress bar to Imgur uploader 2018-08-13 00:28:55 -04:00
Isaiah Odhner d66f6ad245 Switch to using blobs for Imgur upload 2018-08-12 23:22:12 -04:00
Isaiah Odhner 2127a20d18 Add success check 2018-08-12 22:44:29 -04:00
Isaiah Odhner 95fe4e9bc5 Add a button to delete the uploaded image 2018-08-12 22:42:02 -04:00
Isaiah Odhner d25604d58c Deselect before uploading to Imgur 2018-08-12 22:00:35 -04:00
Isaiah Odhner b2b7949b5f Convert spaces to tabs 2018-01-20 21:25:40 +00:00
Wei-Wei Wu 23d15cefbb Add uploading to Imgur (#52) 2018-01-20 15:25:24 -05:00