Commit Graph

1641 Commits (70975b0730b030c704132a0ba21d235a5f72b3b8)

Author SHA1 Message Date
Isaiah Odhner 33beddbf72 Rebuild RTL CSS!
I need to set it up to automatically rebuild!
2021-01-30 00:06:40 -05:00
Isaiah Odhner ea3b98f8d3 Improve compatibility with file: protocol 2021-01-29 21:56:07 -05:00
Isaiah Odhner 8ec952f170 Make "Save" do "Save As" only if name not chosen 2021-01-29 19:00:38 -05:00
Isaiah Odhner b508bdb321 WIP 2021-01-29 18:28:26 -05:00
Isaiah Odhner ae28c09601 Improve layout of Save As / Save Colors dialogs
- Fix width lining up between the two controls (box-sizing: border-box;)
- Improve spacing
2021-01-29 17:58:46 -05:00
Isaiah Odhner 8fa67be359 Style text fields and dropdowns 2021-01-29 17:45:21 -05:00
Isaiah Odhner b5e1c4301d Simplify 2021-01-29 01:41:08 -05:00
Isaiah Odhner af6020fa44 Simplify 2021-01-29 01:41:08 -05:00
Isaiah Odhner f58cd12ee3 Fix: don't switch file extension if already matching selected format 2021-01-29 01:41:08 -05:00
Isaiah Odhner 699b688208 Fix updating file extension via format dropdown 2021-01-29 01:41:08 -05:00
Isaiah Odhner b820700d18 Clarify this isn't an error object 2021-01-29 01:41:08 -05:00
Isaiah Odhner aded181b5f Simplify 2021-01-29 01:41:08 -05:00
Isaiah Odhner 7df324f7c7 Don't switch formats via file extension if selected format matches 2021-01-29 01:41:08 -05:00
Isaiah Odhner 95129a042f WIP: use RIFF pal by default and localized default name 2021-01-29 01:41:08 -05:00
Isaiah Odhner a207010a95 Rename 2021-01-29 01:41:08 -05:00
Isaiah Odhner ccf562f4db Remove very unthematic text from History window 2021-01-29 01:41:08 -05:00
Isaiah Odhner b31e798451 Order palette formats list 2021-01-29 01:41:08 -05:00
Isaiah Odhner 40939d2d41 Save Colors in various palette file formats 2021-01-29 01:41:08 -05:00
Isaiah Odhner 917136b7f9 Tweak Save As layout for small screens 2021-01-29 01:41:08 -05:00
Isaiah Odhner 93e6d955fb Read as ArrayBuffer instead
Check more bytes of PNG magic
2021-01-29 01:41:08 -05:00
Isaiah Odhner 25acd60e51 Check that it actually saves as the requested file type 2021-01-29 01:41:08 -05:00
Isaiah Odhner 314b578276 Don't add extension if absent until hitting Save 2021-01-29 01:41:08 -05:00
Isaiah Odhner 7ef85905b1 WIP: add Save As dialog for file name & type 2021-01-29 01:41:08 -05:00
Isaiah Odhner ffed352156 Load palette files also by drag and drop 2021-01-29 01:41:08 -05:00
Isaiah Odhner b24d641183 Use AnyPalette.js for Save Colors
This API is actually awkward for saving, I should rework it.
But this opens up the door to saving in many palette formats.
2021-01-29 01:41:08 -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 a7270bc0e0 Fix setting line width for rounded rectangle
I think I was being "efficient" with my regexp before switching it to use an enum for tool IDs.
Not efficient with my time! This is why "dumb" code is better.
2020-12-25 00:37:13 -05:00
Isaiah Odhner 963e445c5f Improve news
- Explain a good way to get started with Eye Gaze Mode (coloring pages).
- Add alt text to images.
- Open all links within news in new tabs (target="_blank").
- Fix some syntax.
- Increase humility.
2020-12-24 17:43:43 -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 0b828f8d12 Allow editing eyedropped color via Colors > Edit Colors 2020-12-24 17:43:43 -05:00
Isaiah Odhner 98678a10b8 Checkoff already done stuff 2020-12-24 14:31:35 -05:00
Isaiah Odhner 58e2c98f5f Fix palette saving/loading, and save as GPL (Gimp Palette)
- Fix updating palette for saving when editing colors
- Save into a consistent format so AnyPalette.js can load all colors reliably; currently it doesn't handle files with mixed syntaxes for colors, such as rgb(0,0,0) vs #000000
- Specifically, save in Gimp Palette (.gpl) format which is understood by many open source graphics programs
2020-12-22 21:16:15 -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 0d34bd8fae Add more drawings to news update 2020-12-22 00:36:45 -05:00
Isaiah Odhner 1b76e807c4 Fix ugly scaling of images in news updates (not in Modern theme) 2020-12-21 19:23:36 -05:00
Isaiah Odhner 70d50f4ef3 Replace news update graphic 2020-12-21 19:11:18 -05:00
Isaiah Odhner f1377e1fd9 Fix marquee in RTL layout 2020-12-21 16:53:35 -05:00
Isaiah Odhner bf7fac515e Show Traditional Chinese in menu as 繁體中文 2020-12-21 16:46:29 -05:00
Isaiah Odhner f1fc964298 Make Eye Gaze Mode work with Edit Colors 2020-12-20 21:57:24 -05:00
Isaiah Odhner ac90325355 Remove obsolete code
This was used for when it used the native <input type="color">, before the Edit Colors dialog was implemented.
2020-12-20 21:57:24 -05:00
Isaiah Odhner b0c108d90e Toggle eye gaze mode with voice 2020-12-20 21:57:24 -05:00
Isaiah Odhner 31c27695cc Don't filter by license when sketching via speech recognition 2020-12-20 21:57:24 -05:00
Isaiah Odhner 21ec9c2c46 Improve speech recognition 2020-12-20 21:57:24 -05:00
Isaiah Odhner 974f564ab9 Scroll by pages with voice 2020-12-20 21:57:24 -05:00
Isaiah Odhner f0ec6472f1 Fix Hue/Sat/Lum label layout in Edit Colors 2020-12-20 21:57:24 -05:00
Isaiah Odhner badb503d09 Add news update: The Accessibility Update 2020-12-20 21:57:24 -05:00
Isaiah Odhner eb4af4d7f9 Fix localizations with quotes in them 2020-12-19 02:12:10 -05:00
Isaiah Odhner 0a10ff5f47 Localize "Zoom to" 2020-12-19 01:58:45 -05:00
Isaiah Odhner 93c32043c7 Prompt to save before reloading to change language 2020-12-19 01:58:45 -05:00
Isaiah Odhner 36213f5621 Match file extensions case-insensitively 2020-12-18 14:05:49 -05:00