Commit graph

105 commits

Author SHA1 Message Date
Ian Prest
55e466e8cc Moved the S3 saving code into serial.js. 2013-11-09 23:25:43 -05:00
Ian Prest
cbc4b80d45 Moved serialization routines into their own .js file. 2013-11-09 23:08:08 -05:00
Ian Prest
0f162a2264 Moved key-rendering to its own .js file. 2013-11-09 22:38:08 -05:00
Ian Prest
291584e336 Moved the color functions to their own .js file. 2013-11-09 22:04:52 -05:00
Ian Prest
e075ee3ad3 Fix rendering of profiles on non-rectangular keys.
-- Now setting background-size & background-position properties on the
keycap foregrounds (which are the elements that have gradients applied).
-- Now, instead of each section getting its own gradient, they each get
the *same* gradient... so when they are laid on top of each other, the
gradients match.
-- This is just about perfect for DCS (cylindrical).
-- The effect is less convincing for DSA/SA caps; ideally we'd be able
to "blend" the two gradients together somehow, but CSS doesn't support
non-normal blend-modes, and I don't want to get into <canvas> rendering.
2013-11-09 16:16:58 -05:00
Ian Prest
245d2b3d9a Added new "Symbolics PN 364000" sample
-- From photo here:
http://www.asl.dsl.pipex.com/symbolics/photos/IO/kbd-older.html
2013-11-09 14:42:08 -05:00
Ian Prest
59336dc798 Added styles for SA profile.
-- Identical to DSA, at the moment.
2013-11-09 14:41:29 -05:00
Ian Prest
37583857bd Small change to make it less likely that the swap-colors button will overlap the color names. 2013-11-09 14:06:36 -05:00
Ian Prest
ae5e81e961 Bumping to version 0.9 and deploying. 2013-11-09 13:54:05 -05:00
Ian Prest
5dffa0b13d Added a button to swap the fg/bg colors of a keycap.
Also:
-- fixed colors of text to go through same lightening process as keycap
-- fixed styles for right-aligned side-printed text.
2013-11-09 13:27:40 -05:00
Ian Prest
4729175d7a Added an indication of which palette colors are being used.
-- The palette swatch will have a glyph to indicate it's the current
foreground/background color.
-- We print the color name beside the foreground/background color editor
fields.
2013-11-09 13:00:12 -05:00
Ian Prest
1494f0bbbe More accurate color handling.
1. Instead of using the specified color for the top of the cap, and then
darkening the side, I use the specified color for the sides of the cap,
and then lighten the top.
-- All swatches were sampled from the smooth part of the color chips...
and the smooth is usually present on the *side* of the caps, not the
top.
-- The top of the caps usually has a matte-finish, which is visibly
lighter than the smooth finish.

2. Lighten the color in LAB-space, instead of in RGB-space.
-- results in better appearance for the light colors

3. Tweaked the gradients for DSA and DCS.

4. Updated existing sample layouts to use SP color values.
-- Deleted old/unloved sample layouts.
-- Darkened the Stealth-Black layout to match other changes.

5. Changed the default keycap color from #eeeeee --> #cccccc
-- Relative appearance is similar between old & new versions.
2013-11-09 02:31:10 -05:00
Ian Prest
23ed0a3c66 Updated samples to use new features.
-- Specifically, the SPACE profile modifier for spacebars.
-- Also tweaked the code to let me load samples from the local server.
2013-11-09 00:18:18 -05:00
Ian Prest
52326a3c92 Adding the samples to source-control. 2013-11-09 00:02:28 -05:00
Ian Prest
968e10bc9b Fix the side-printed labels.
-- Somewhere along the line they got moved up... moved them back down.
-- Made the DSA version 1px smaller, so that it would fit in the
available space.
2013-11-09 00:00:52 -05:00
Ian Prest
df1ee3f35f Added a link to the GitHub issues page.
-- Also fixed the "keyboard shortcuts" link at the bottom.
2013-11-08 23:57:04 -05:00
Ian Prest
ea0ebdd1f1 Don't force-sync width2/height2 if "stepped" is checked. 2013-11-08 23:41:43 -05:00
Ian Prest
27f11c11a1 Make creation of stepped keycaps more obvious.
1. Added some info to the tooltips.
2. When you check the 'stepped' checkbox, we will modify the
width/width2 values so that they are different (if they are not
already).
-- At the very least, this gives a visual indication that the checkbox
actually *did* something.
2013-11-08 23:33:39 -05:00
Ian Prest
9c685a0132 When inserting new keys, account for both width & width2 of previous cap. 2013-11-08 23:21:05 -05:00
Ian Prest
3cb7d7e7d9 Use vertical gradient for spacebars.
-- User will need to add SPACE to the Profile/Row string.
2013-11-08 23:13:41 -05:00
Ian Prest
6b69f167ae Fix closing tags in the text labels. 2013-11-08 22:58:04 -05:00
Ian Prest
d97747bfa7 Fix &lt; characters in the text labels. 2013-11-08 22:56:01 -05:00
Ian Prest
6f1bfebe8b Sanitize any HTML entered into the label fields. 2013-11-08 22:42:58 -05:00
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