Commit Graph

70 Commits (main)

Author SHA1 Message Date
Isaiah Odhner 2a3ae1c0eb Patch UPNG.js to fix bad global check
Fixes #272
2023-01-13 21:00:35 -05:00
Isaiah Odhner 4332f6935d Fix fieldset border in Firefox (but not supporting theme)
Cherry-picking this pull request: https://github.com/jdan/98.css/pull/117/files
2021-12-08 09:50:18 -05:00
Isaiah Odhner b56b0a8879 Patch os-gui to fix Fonts box focus behavior when clicking controls 2021-12-08 09:50:18 -05:00
Isaiah Odhner 424e1e11bd Update os-gui to pre-release version
- Fixes dragging windows with Eye Gaze Mode with special pointerId === 1234567890 logic for jspaint
- Improves performance with zooming/panning by reducing unnecessary DOM updates (specifically with the code for closing menus when you click outside of them)
- Fixes random key misinterpretation like F6 as 'u' in the menus, due to keyCode being interpreted as ASCII (case-insensitively); it now uses key instead of keyCode
- Menu item checkboxes and submenu indicators are now done in CSS, so need to be included in the Modern theme.
2021-12-08 09:50:18 -05:00
Isaiah Odhner bafe17bded Fix duplicate select styling, and Text tool textarea
Disable select styling in 98.css to use tweaked 98.css select styling that I forgot I had added.
2021-12-07 16:02:52 -05:00
Isaiah Odhner c6a4c8dc70 Add 98.css custom build
Styles radio buttons, checkboxes, dropdowns, fieldsets, and sliders.
2021-12-07 16:02:52 -05:00
Isaiah Odhner db371a97c7 Patch os-gui: handle synthetic events (which don't define pointerId) 2021-11-20 12:58:49 -05:00
Isaiah Odhner d7e66471de Update os-gui to 0.6.0 2021-11-20 12:58:26 -05:00
Isaiah Odhner e688a67903 Update os-gui to 0.5.0 2021-11-20 12:58:25 -05:00
Isaiah Odhner b7e276a996 Update deprecated menu bar API 2021-11-20 12:54:11 -05:00
Isaiah Odhner 4ce17e34bd Update os-gui to 0.4.0 2021-11-20 12:54:05 -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 628d780a12 Reduce noise in error message 2021-08-11 21:33:32 -04:00
Isaiah Odhner f2c136190e Ditch PEP.js 2021-07-30 03:36:57 -04:00
Isaiah Odhner 56afd5eea7 Ditch canvas.toBlob polyfill 2021-07-30 03:31:23 -04:00
Isaiah Odhner 96ad657bf9 Update FileSaver.js
not for any particular fix
2021-07-30 03:31:23 -04:00
Isaiah Odhner 5f98090007 Support RGBA TIFFs 2021-07-29 23:10:25 -04:00
Isaiah Odhner 2ceadafa52 Add UTIF.js 2021-07-29 18:28:06 -04:00
Isaiah Odhner 3658119059 Add pdf.js distribution 2021-07-10 18:02:16 -04:00
Isaiah Odhner e786e99139 Use UPNG.js to write tiny PNG files
- Already had UPNG.js for BMP support
- Downloaded pako from https://bundle.run/pako@2.0.3 because I'm too lazy to browserify it myself. I don't really want it minified, but oh well.
2021-07-10 10:29:13 -04:00
Isaiah Odhner d900ef1129 git subrepo clone https://github.com/1j01/tracky-mouse.git lib/tracky-mouse
subrepo:
  subdir:   "lib/tracky-mouse"
  merged:   "e98eac3"
upstream:
  origin:   "https://github.com/1j01/tracky-mouse.git"
  branch:   "main"
  commit:   "e98eac3"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2021-05-22 14:10:45 -04:00
Isaiah Odhner 0e7dde674f Unify todos 2021-02-15 13:02:39 -05:00
Isaiah Odhner cec0c49c6d Use non-native BMP decoding for pixel data too, not just palette 2021-02-13 13:37:47 -05:00
Isaiah Odhner 916a8e7921 Massively restructure file handling
Make way for adding support for reading new image formats.
2021-02-13 13:14:15 -05:00
Isaiah Odhner 7aac32c903 When bpp <= 8, zero means max possible colors 2021-02-12 10:13:53 -05:00
Isaiah Odhner b1a19561bd Clean up 2021-02-06 21:40:19 -05:00
Isaiah Odhner afe15a8817 Load palette from BMP files when opening 2021-02-06 14:25:17 -05:00
Isaiah Odhner 40189ff28c Fix signed/unsigned 2021-02-06 13:55:15 -05:00
Isaiah Odhner 23c8ba8bc0 WIP: decode BMP files 2021-02-06 13:55:15 -05:00
Isaiah Odhner f700a1c2a9 Export buffer, not view 2021-02-06 11:22:47 -05:00
Isaiah Odhner 8be2f33615 Reorder code 2021-02-05 15:21:26 -05:00
Isaiah Odhner 2e94a45fa8 Use UPNG.js for quantization for BMP files 2021-02-05 14:59:29 -05:00
Isaiah Odhner fb893b1412 Refactor (not sure if positive) 2021-02-05 13:23:00 -05:00
Isaiah Odhner 5b24089db2 Refactor: avoid unary increment (++) 2021-02-05 13:22:01 -05:00
Isaiah Odhner 956304e59d Refactor: share pixel offset calculation 2021-02-05 13:22:01 -05:00
Isaiah Odhner 7d5d11b453 Refactor: join loops together 2021-02-05 13:22:01 -05:00
Isaiah Odhner c024e2c352 Refactor nibble dribbling (not sure if positive change) 2021-02-05 13:22:01 -05:00
Isaiah Odhner 067676168f Support different bit depths for BMP export
(also I think the padding calculation was wrong)
2021-02-05 12:53:45 -05:00
Isaiah Odhner a04f2d2845 Clean 2021-02-04 22:05:18 -05:00
Isaiah Odhner 553fbcb78a Unify file saving, and write BMP files manually 2021-02-04 22:05:17 -05:00
Isaiah Odhner bf95aec553 Preview window frame with ghost when component will become a window 2021-02-02 15:59:02 -05:00
Isaiah Odhner efc65e5403 Loosen constraints on window positions 2021-02-01 12:23:42 -05:00
Isaiah Odhner 436fe1baef Update AnyPalette.js to 0.6.0
New formats, fixes, saving support, and duplicate colors are included by default.

https://github.com/1j01/anypalette.js/blob/master/CHANGELOG.md#060---2021-01-27
2021-01-28 11:34:42 -05:00
Isaiah Odhner d63d4b5997 Update AnyPalette.js to 0.5.0
- Unhandled file types, such as images, are no longer loaded as garbage palette data
- Can now load Skencil palettes (.spl) ("Sketch RGBPalette" - Skencil was formerly called Sketch)
- Can now load Sketch palettes (.sketchpalette) (unrelated to Skencil .spl files)
- Can now load sK1 palettes (.skp)
- Can now load KolourPaint palettes (.colors)
- Can now load various tabular RGB color formats, such as mtPaint palettes (.txt)
- Fixes Gimp palette loader sometimes missing the first color
2020-12-22 21:16:15 -05:00
Isaiah Odhner d14135fdc4 Handle RTL layout in menus 2020-12-17 13:36:21 -05:00
Isaiah Odhner d21b37404f WIP: RTL layout with RTLCSS 2020-12-17 13:36:21 -05:00
Isaiah Odhner 90a5ad4a8f Update os-gui to 0.2.2 2020-05-28 14:56:07 -04:00
Isaiah Odhner f07c60ab41 Sketch things with voice commands
- "draw a dog"
- "do a rendition of the mona lisa"
- etc.
2020-05-09 21:47:14 -04:00
Isaiah Odhner 31edf30064 Unify TODO comments 2020-04-27 20:45:47 -04:00
Isaiah Odhner 55ba2f294e Update os-gui 2020-03-31 20:43:47 -04:00