Commit graph

124 commits

Author SHA1 Message Date
Reed Swiernik
3ffcaee2e0 Added 60percent, fc660m, and keycool84 layouts 2015-03-11 19:42:29 -04:00
Ian Prest
3932c2eb57 Added '@media print' rules so that only the KB layout gets printed. 2014-05-20 20:39:00 -04:00
Ian Prest
1b8416e936 Added 'NN' to the SP ABS palette.
-- sampled from an actual NN keycap, not a color chip; not sure the
sampling was as good, but used the same methodology.
2014-01-07 23:11:25 -05:00
Ian Prest
6e90dad6d1 Adding a custom webfont with a few glyphs commonly used on keyboards 2013-11-16 19:19:26 -05:00
Ian Prest
2f55cae117 Bumping version to 0.10 and deploying. 2013-11-12 23:02:33 -05:00
Ian Prest
dfb968c11e Updated the README w/rotation info. 2013-11-12 22:56:44 -05:00
Ian Prest
878c2563cf Added a new ErgoDox preset. 2013-11-12 22:56:44 -05:00
Ian Prest
250427c4bb Serialization for rotated-clusters. 2013-11-12 22:56:43 -05:00
Ian Prest
833010c83d Updated FontAwesome reference. 2013-11-12 22:56:43 -05:00
Ian Prest
13c21a69ec Fix selection of rotated keys.
-- Marquee select just checks against the bbox, which is already
computed.
-- Single-click select transforms the mouse coordinates into key-space
by applying the inverse transformation matrix.  Then it can compare
against the two rectangles, just as it used to.
2013-11-12 22:56:42 -05:00
Ian Prest
b9ff4c651b Started implementation of rotated-cluster support.
-- Each key has a rotation angle, and center of rotation; available in
the editor.
-- Displaying crosshairs in the editor for the center of rotation.
-- Keyboard shortcuts to move CoR, and change angle.
-- Keyboard height is correctly calculated.
TODO:
-- Serialization is still wonky.
-- Can't click on rotated keys to select them.
2013-11-12 22:56:41 -05:00
Ian Prest
d828291d96 Swept code to update FontAwesome references. 2013-11-11 00:21:41 -05:00
Ian Prest
b89efab0c3 Updated FontAwesome to v4.0.3 2013-11-10 23:53:03 -05:00
Ian Prest
d64ee4d0e9 Updated AngularJS to v1.2.0 2013-11-10 23:42:48 -05:00
Ian Prest
881775239c Added version history to the README file.
-- Mostly culled from my posts on Deskthority/GeekHack.
2013-11-10 20:44:17 -05:00
Ian Prest
789a5ba6c6 Formatting tweak to shortcut keys.
-- Make key text monospaced.
2013-11-10 15:28:25 -05:00
Ian Prest
22ad09b530 Added a center-stepped key to the "add key" menu. 2013-11-10 15:22:01 -05:00
Ian Prest
084a2e48d2 Speed up kbHeight calculations.
-- Querying the DOM was expensive; now just looping over all the keys.
2013-11-10 15:06:13 -05:00
Ian Prest
23e8f11c8c Refactored the serialization code to make it easier to maintain.
-- All the key defaults are now centralized.
2013-11-10 14:58:28 -05:00
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