Commit graph

82 commits

Author SHA1 Message Date
Ian Prest
8d639c3116 Added Signature Plastic ABS colors.
-- This version is sampled from actual color chips.
2013-10-28 20:53:09 -04:00
Ian Prest
66e246c5e1 Added Signature Plastic PBT colors.
Colors were sampled from actual plastic chips using an X-Rite
ColorMunki, and then converted to sRGB (D65) using the formulas on Bruce
Lindbloom's website.
2013-10-25 22:59:33 -04:00
Ian Prest
868529bbf6 Prevent '?' from popping the help dialog on INPUT fields. 2013-10-20 00:08:21 -04:00
Ian Prest
45276ac197 Added another sample file to the list. 2013-10-20 00:07:05 -04:00
Ian Prest
a61273a53b Bumping to version 0.8 and deploying. 2013-10-19 16:14:54 -04:00
Ian Prest
25cca4bb2e A handful of bug fixes.
-- Line spacing was too big on the keycaps (I think it was picking up
the spacing from Bootstrap); fixed in CSS
-- DSA keys were showing the inner-border in the incorrect spot (wasn't
really noticable on the dark colors of Retro DSA); fixed in CSS
-- Replaced custom min/max functions with the correct Math.min, Math.max
functions.
-- The valiation for x/y offsets was too aggressive; for some
oddly-shaped keys, it didn't let you set values that were big enough.
-- Swapped the order of the keylabel tops for the primary & secondary
rectangles.  This ensures that the label is in the same place whether
stepped or not, at the expense of maybe affecting old layouts.
2013-10-19 16:05:53 -04:00
Ian Prest
4f6f02420b Swapped around the ISO enter in the ISO-105 preset.
-- Again, wanted to make sure we could easily turn it into a 'stepped'
version.
2013-10-19 02:05:11 -04:00
Ian Prest
9676521f36 Added a stepped caps-lock to the list of special keys. 2013-10-19 01:57:32 -04:00
Ian Prest
7ecf426c9c Prevent oddly-shaped keys from being moved off-screen. 2013-10-19 01:53:15 -04:00
Ian Prest
c6efcf5a7a Rename key to "big-ass" enter 2013-10-19 01:51:20 -04:00
Ian Prest
43bb528af8 Changed the definition of the ISO enter preset key.
-- Now that we support stepped keys, the preset ISO enter should easily
switch between stepped and non-stepped.
2013-10-19 01:42:18 -04:00
Ian Prest
a238243f55 Fixed a problem with the font on side-printed labels.
-- Was picking up a larger font from the other CSS rules.
2013-10-19 01:38:57 -04:00
Ian Prest
64d0769cb4 Added a couple more samples to the list. 2013-10-19 01:34:35 -04:00
Ian Prest
d0835968c2 Split the "Load Preset" menu into two sections.
-- The first section is for true "presets"... standard layouts without
much customization.
-- The second section is for "samples"... these are layouts with more
extensive changes.
2013-10-19 01:27:34 -04:00
Ian Prest
5b6472a5d8 Added support for 'stepped' keycaps. 2013-10-19 01:05:52 -04:00
Ian Prest
db272d2ca4 Added tooltips for most of the editor fields. 2013-10-18 22:17:02 -04:00
Ian Prest
6cea462ab8 Render HRs within key legend text.
We've always allowed HTML in the key text, but HRs didn't render... now
I've added styles to render the HR as a string of horizontal-line
characters (which ensures they pick up the correct text-color).
2013-10-18 20:24:15 -04:00
Ian Prest
c3429b909c Support a "secondary" legend size on our caps.
-- Primary size applies to the first cap; secondary size applies to all
other caps
-- If primary is changed, we automatically change the secondary to keep
it in sync; this is *usually* what we want.
-- Some special serialization rules to ensure we don't write out more
data than needed; same rules apply there, if primary is changed,
secondary changes.
2013-10-17 23:57:34 -04:00
Ian Prest
491ccb3c97 Support a 3rd (middle) row of text on the keycaps.
-- Germans have it rough... their caps can include a top, middle, and
bottom legend.
2013-10-17 23:17:50 -04:00
Ian Prest
70b9bbd950 Fix selection rectangle when window is scrolled.
-- Previously used "fixed" position; this is fixed to the window, so
isn't affected by scrolling, which is why it didn't work.
-- Now using "absolute" position; this is relative to the parent
element, so it *is* affected by scrolling.
-- Also had to reparent the selection rectangle so that the coordinates
were correct.
2013-10-17 23:02:28 -04:00
Ian Prest
cf76042c18 Updated AngularJS to v1.2.0-rc3 2013-10-16 00:16:04 -04:00
Ian Prest
95be097bc4 Increased number of font sizes available.
-- Used to be 1-5; is now 1-9.
-- DSA used to make size=5 *really* big.  Now that there are more sizes,
DSA no longer has any overrides (so it's back to being a linear
scale)... old size 5 ==> new size 8.
2013-10-15 23:06:32 -04:00
Ian Prest
11695849f6 Fixed keyboard-background field on undo/redo. 2013-10-15 22:43:44 -04:00
Ian Prest
d0ba759ddb Switched to new JSONL parser
The new parser is generated by Jison (a JS parser generator, like
Bison).
-- Modified one of the Jison samples to support our "leniency"
requirement.
-- Added a makefile to build & minify the parser.
-- The new parser also generates better error messages... but they
expect to be displayed in a console.  So I changed the error alert DIV
to use a fixed-width font.
2013-10-15 22:36:51 -04:00
Ian Prest
4225f2f4c7 Bumping version to 0.7 and deploying. 2013-10-14 22:22:07 -04:00
Ian Prest
071087373c Prevent default behaviour on Ctrl+A
-- only seemed to be a problem in FireFox
2013-10-14 22:21:13 -04:00
Ian Prest
fb3e97be2e Tweaked the DSA radial gradient. 2013-10-14 22:19:00 -04:00
Ian Prest
82f0358caa Exposed the keycap profile field. 2013-10-14 22:18:46 -04:00
Ian Prest
1dd4612f18 Bumping up DSA large font size to be more true-to-life. 2013-10-14 21:59:45 -04:00
Ian Prest
84cf6bca7a Added the ability to specify a font size.
-- Using relative sizes within a range of 1-5, default 3.
2013-10-14 21:41:55 -04:00
Ian Prest
30839db662 Can now center text on keycaps.
-- Center in the X and/or Y directions
-- also added a sixth label (front-printed, right-justified)
2013-10-14 21:09:16 -04:00
Ian Prest
08bff7d765 Using 'Engravers Gothic' font on DSA profile.
-- As a substitute for 'Gorton Modified', which isn't available
electronically.
-- I had to license the font, so I can't add the font-files themselves
to the repository... :(
2013-10-14 18:14:53 -04:00
Ian Prest
d7afb241e2 Fixed a bug when serializing keycap profiles. 2013-10-14 18:07:41 -04:00
Ian Prest
352428b585 Fixed paste to maintain relative position between keys. 2013-10-14 17:03:02 -04:00
Ian Prest
a968dfaa02 Moving multiple keys no longer causes overlaps.
-- If any of the keys would end up with x<0 || y<0, then we abort the
operation.
2013-10-14 14:54:03 -04:00
Ian Prest
f52b2b1a3e Added top/bottom-right text and front-printed text.
-- all labels are separated by \n's in the serialized data; now just
supporting 3 more
-- labels are now stored as an array internally
-- Fixed a bug where inserting a key would say "g:undefined"
-- Fixed a bug where you could have an invalid key selected after
editing the raw data.
2013-10-14 14:08:05 -04:00
Ian Prest
d46576b4e0 Added some helper text to the color palette.
-- it wasn't obvious what to do with the swatches in the palette
2013-10-14 12:06:09 -04:00
Ian Prest
a4935ee37d Support keyboard background colors.
-- Extended serialized format to include metadata.
-- Route access to keyboard keys through a helper function.
-- Added a new editor tab for keyboard properties
-- F2 when no keys are selected goes to kbd-properties tab
-- Single metadata property so far: "backcolor"; sets the background
color of #keyboard

Misc:
-- Moved undo/redo key bindings to the editor... allows undo/redo
hotkeys to work properly in raw data
-- Raw data changes now get logged as a transaction
2013-10-14 11:49:36 -04:00
Ian Prest
6467d61616 Reformatted the deploy script to be easier to read. 2013-10-14 09:47:45 -04:00
Ian Prest
b3d76aa6c0 Fixed a bug during deserialization of ghosted keys
-- Previously could never turn off ghosting
-- 'false' values never got propagated.
2013-10-14 02:51:16 -04:00
Ian Prest
2f54027d25 Updated deploy batch file to set ACLs 2013-10-14 02:50:13 -04:00
Ian Prest
faab5c0ced Added a batch file to help me deploy to AWS.
-- "deploy --dryrun" to see what would change
-- "deploy" to actually do it.
2013-10-14 02:19:20 -04:00
Ian Prest
9fc55e5d5a Bumping version to 0.6 and deploying. 2013-10-14 02:10:18 -04:00
Ian Prest
a5055e99d5 Can now SAVE layouts to the server.
Implemented as a POST upload to AWS/S3.
-- Each layout is a separate file; identified by its MD5 hash
-- No real security to protect against malicious users "erasing"
layouts, but S3 offers versioning.

Also:
-- Added save button on the toolbar.
-- Added load/save alert boxes.
-- Added Ctrl+S hotkey to save.
2013-10-14 02:08:29 -04:00
Ian Prest
ffb0e31498 Mark the keyboard as not-dirty when loading preset. 2013-10-13 21:48:36 -04:00
Ian Prest
35abe57b0b Added the ability to "ghost" a keycap.
-- Ghosted keys are dimmed out
-- This is useful for drawing attention to the *unghosted* keys, while
still presenting them in context.
2013-10-09 23:21:23 -04:00
Ian Prest
374626a794 Reset the dirty flag if the permalink link is clicked. 2013-10-09 22:10:42 -04:00
Ian Prest
ee3b832391 Added a warning when leaving the page.
-- we only prompt if the data is dirty.
2013-10-09 22:06:01 -04:00
Ian Prest
36289e54fd Added help text for copy/paste.
-- Also split the keys into multiple columns, and tweaked the
formatting.
2013-10-09 21:09:39 -04:00
Ian Prest
bd576a9d8b Prevent hotkey-invoked copy from emptying the clipboard 2013-10-09 20:56:25 -04:00