Commit graph

94 commits

Author SHA1 Message Date
Ian Prest
d79d1511f7 added FLAT profile 2018-09-19 19:37:49 -07:00
Ian Prest
e6088da36c tweak css to allow keycap border-color changes 2018-09-17 20:04:46 -07:00
Ian Prest
0217f3911b reverted footer size change 2018-09-12 12:57:16 -07:00
Ivan Jonas
29d166a5c9 improve footer spacing 2018-04-08 19:12:09 -04:00
Ian Prest
8581b1a4f8 Reworked UI for the "tools"
-- Went with another tab, instead of the dialog, so you could better see the outcome of an action.
-- Replaced the "move legend pairs" buttons with an "align legends" function, which I think covers most of the cases, while also offering more possibilities.
2015-09-11 22:54:51 -04:00
Ian Prest
8bfbdac388 Merge branch 'master' of git://github.com/iandoug/keyboard-layout-editor into iandoug-master 2015-09-09 23:23:47 -04:00
Ian Prest
65947be7b8 Added rendering support for a 'CHICKLET' profile.
-- Updated the tooltip for the profile fields to list supported profiles.
-- Fixed a rendering issue that prevented 'keySpacing' from being utilized (it wasn't used for the existing profiles).
2015-09-09 21:53:54 -04:00
iandoug
4a49380d45 Added some table defs for the Tools dialogue 2015-09-04 02:44:33 +02:00
Ian Prest
b40d3964af Merge branch 'webfont' of git://github.com/iandoug/keyboard-layout-editor into iandoug-webfont 2015-08-30 18:45:48 -04:00
iandoug
3449009df8 Not sure why Git needs this .... 2015-08-26 15:20:10 +02:00
iandoug
d995147eb3 Hide Summary tab when printing 2015-08-26 15:07:13 +02:00
Ian Prest
962bd6ba78 A few tweaks to the switch summary display
-- Reverted to using lowercase "IDs" in switches.json (no need to
change, and would break existing files))
-- Now showing the "display name" of the switches in the summary
display.
2015-08-25 00:13:12 -04:00
Ian Prest
9a2987be25 Merge branch 'master' of git://github.com/iandoug/keyboard-layout-editor into iandoug-master
Conflicts:
	kb.html
2015-08-23 23:51:31 -04:00
iandoug
5add228fe4 Remove redundant class def 2015-08-21 23:49:17 +02:00
iandoug
c1843d8fb0 Made the keycap and switch summary tables a little more presentable 2015-08-21 23:44:06 +02:00
Ian Prest
0d642dc06c Minor tweaks to styling of summary tab
-- moved content inside tab (looks better, plus doesn't render garbage
on page load)
-- got rid of extra border
2015-08-17 23:19:47 -04:00
iandoug
fac321698d Found a way to make Combining Diacriticals behave as desired. 2015-08-16 21:58:55 +02:00
iandoug
8c6c0e0464 Implemented kbd-webfont and added to Character Picker. Restructed font-src folder to provide for 4thcoming Combining Diacritics folder. See comments 2015-08-15 18:54:06 +02:00
iandoug
a56307d112 Now count keys by size and colour 2015-08-13 00:18:29 +02:00
iandoug
3efd78bfa0 Added initial Summary as first step to address #88 2015-08-12 21:57:30 +02:00
Ian Prest
5b972cf6f6 Misc changes, mostly for per-key switch type
-- Switches.json -> now using hash for "switches" for easy lookup
-- Serialization changed so that we use "" for default switch types, and
this round-trips properly.
-- Had to switch from <select> to bootstrap-style dropdowns; when I
started trying to handle the 'default' settings better (i.e., when the
per-key setting was blank), Angular was throwing errors using the
<select> element.
-- Changing switch mount blanks out brand/type, etc.
-- Now disabling switch mount/brand/type controls when appropriate
-- PNG rendering now only doing #keyboard-bg, which allows me to make
#keyboard full-width again.
2015-08-10 21:40:53 -04:00
Ian Prest
4d23305696 Added syntax-highlighting to the various text editors
-- Using ACE Editor, which was just a drop-in replacement for the
TEXTAREAs
-- Implements #22
2015-08-09 11:59:03 -04:00
Ian Prest
ad24eadc87 Implemented keyboard 'decals'
-- Intended to put decorative labels (logos, etc.) on keyboard layouts.
-- They're basically just invisible keycaps; this works pretty well,
since there are already so many formatting options for text on keycaps,
and it saves us from having to manage a completely separate type of
thing.
-- Props to iandoug for the idea!

Also:
-- Disable x2,y2,width2,height2 on decals
-- Increase max keycap size to 18x18 (allows for really large decals)
2015-08-03 23:40:42 -04:00
Ian Prest
354377f559 Rejiggered the background-image dropdown & data
-- Also auto-calculating the keyboard width
2015-08-03 17:45:53 -04:00
Ian Prest
7724b33fc1 Merge branch 'backgrounds' of git://github.com/iandoug/keyboard-layout-editor into iandoug-backgrounds
Conflicts:
	kb.css
	kb.js
2015-08-03 11:30:26 -04:00
Ian Prest
b9b84feb06 Fix some CSS lint errors 2015-08-03 10:55:55 -04:00
Ian Prest
73da7aecc9 Disable save button if user not signed in 2015-08-02 19:51:36 -04:00
iandoug
5012215b9c Cleaned up code and data for backgrounds, converted background-acknowledge to md format and linked from README 2015-08-03 00:52:25 +02:00
Ian Prest
1f71ce495a Added user menu & logout command 2015-08-02 00:31:19 -04:00
Ian Prest
443de95437 Added glyph-set for combining diacritical marks. 2015-07-31 23:54:08 -04:00
Ian Prest
04447b9eaf Using angular-ui-bootstrap for tooltip on character picker
-- Needed to escape the scrolling div, which wasn't possible with
hint.css.
-- Couldn't switch everywhere, unfortunately, because
angular-ui-bootstrap tooltips have some nasty bugs dealing with disabled
input fields where the tooltips wouldn't go away.
2015-07-31 22:17:50 -04:00
Ian Prest
50393a4f05 Scroll the character-picker list if too long 2015-07-31 20:26:50 -04:00
Ian Prest
7ecf4d55a4 Initial character-picker implementation
-- Very similar to the color palettes
2015-07-31 19:09:37 -04:00
Ian Prest
9b2af5eff8 Added a button to swap primary & secondary keycap rectangles
-- sizes & positions are swapped so that the overall shape of the key is
maintained, but the labels will shift positions since they are always
rendered on the primary rectangle.
2015-07-31 17:37:12 -04:00
iandoug
6797c23937 Added code and data for supporting the backgrounds 2015-07-28 09:16:30 +02:00
Ian Prest
3f19d7f758 Merge branch 'master' into custom-css
Conflicts:
	css/kb.css.map
	kb.css
	kb.html
2015-07-27 20:35:01 -04:00
Ian Prest
602ce2e55a Added a custom-styles editor
-- Similar to the raw-data editor.
-- Styles are parsed, modified so that they can only affect keycaps,
then applied to the page.
-- Modified the VIC-20 sample to demonstrate; it now has a
FontAwesome-style stylesheet, for the C64ProMono font, and is using
those custom styles for all the PETSCII glyphs.
2015-07-22 23:42:46 -04:00
Ian Prest
966bb05663 Changed "no color" to render as a little 'x' instead of red stripes 2015-07-18 21:46:31 -04:00
Ian Prest
c2b1e4ab7a Fix front-printed text on DSA-profile caps 2015-07-18 21:32:05 -04:00
Ian Prest
3e6bbf61e7 Tweak CSS for fully-generic legend text
-- legends will be in order (left-to-right, top-to-bottom), and there
will now be 12 of them in total
2015-07-17 22:18:04 -04:00
Ian Prest
f5cbfa3555 Tweak to formatting for front-printed labels on SA/DSA profiles.
-- New rendering pushed the text down, so we move it back up.
-- Other profiles were already moved up by a pixel.
2015-07-12 21:02:52 -04:00
Ian Prest
2dd5109bfc Fix swatches display; was shifted right on webkit browsers 2015-07-12 19:28:05 -04:00
Ian Prest
a8922eaf47 Fix homing nub rendering. 2015-07-12 19:19:45 -04:00
Ian Prest
824707f776 Major refactoring of the keycap rendering to HTML
-- Generating HTML with a doT.js template function; hopefully easier to
maintain.
-- More of the parameters refactored into the JS code, rather than
relying on being in the CSS; benefit => those parameters are available
when I do SVG rendering.
-- Also, now using Stylus to compile & minify CSS, and auto-inline small
images (Sublime project describes how to compile).
2015-07-12 19:16:57 -04:00
Ian Prest
552bb150e5 Small CSS tweak to make keys look better
-- Wasn't very obvious at 100%, but if you zoomed in, you could tell
that the border was getting clipped by a background <div> that was on
top of it.
2015-07-06 00:26:08 -04:00
Ian Prest
2edec9d375 Updated "profile" CSS styles
-- New OEM profile (renders same as DCS)
-- SA tweaked to sit a bit higher than DSA
-- Now showing a homing nub on all profiles (other than SA/DSA)
-- DSA/SA deep-dish made (slightly) more visible
2015-07-05 19:44:39 -04:00
Ian Prest
f290d0517f Show kbd name & author on the actual layout.
-- Linked to the rendered metadata screen.
2015-07-05 17:10:14 -04:00
Ian Prest
6c8e583c3a Prevent wrapping color-swatch tooltips
-- also deleted some unused CSS rules
2015-07-05 10:17:15 -04:00
Ian Prest
b8fb293a02 Added markdown rendering support for the 'notes'
-- Switched from plain bootstrap to angular-ui-bootstrap (to fix some
interaction problems); this necessitated a number of markup changes for
the modals and dropdowns.
-- Can now "cancel" the options dialog.
-- Sprinkled the markup with ng-cloak to prevent early rendering
problems.
-- Fixed some copy/paste issues with previous form changes (labels were
incorrect)
2015-07-05 02:42:47 -04:00
Ian Prest
3b11c8b9f6 Added metadata fields for "author" and "notes". 2015-07-04 21:38:04 -04:00