ijprest / keyboard-layout-editor

Web application to enable the design & editing of keyboard layouts
http://www.keyboard-layout-editor.com/
Other
1.3k stars 241 forks source link

Different keys form/shape/sizes/placements #238

Open c933103 opened 6 years ago

c933103 commented 6 years ago

I was trying to create a layout with various special buttons but I experienced limitation in doing so. Please consider adding the capability to suppoprt creating layout with

i5ar commented 5 years ago

Buttons with different shapes, like circular power button, hexangon shaped honeycomb styled keycaps, etc.

I guess this can already be achieved from the Custom Styles tab although it is not very user-friendly. Probably a border-radius parameter for each keycap would be nice.

larsbrinkhoff commented 5 years ago

I would like to model a Teletype keyboard with completely circular keys, except the space bar.

ijprest commented 5 years ago

Cool keyboard. :)

It won't be perfect, but until there's a ROUND profile, you can simulate it with some custom CSS:

.keyborder, .keytop { border-radius:1000px !important; }
larsbrinkhoff commented 5 years ago

Thanks, that's pretty good!

larsbrinkhoff commented 5 years ago

I updated my layout to use the custom style:
http://www.keyboard-layout-editor.com/#/gists/96b4be746c5441af6bb595be10944277

The CTRL and SHIFT keys should be slightly larger. Is there a way to do this too?

alerque commented 5 years ago

@larsbrinkhoff Of course, just select them and change their height and width in the properties tab.

larsbrinkhoff commented 5 years ago

Of course! Thanks.

ogaskell commented 3 years ago

Expanding upon this, is there any way to apply custom styles to only a certain profile, or even create custom profiles?

I tried using the classes the profiles use (which i found through inspect element), but it seemed to have no effect.

will-hedges commented 3 years ago

Expanding upon this, is there any way to apply custom styles to only a certain profile, or even create custom profiles?

I tried using the classes the profiles use (which i found through inspect element), but it seemed to have no effect.

I, too was hoping to achieve this. It would be nice to put the "round" profile on one key for say, an encoder.

YellowAfterlife commented 6 months ago

To those whom it may concern, I came up with a workaround:

First, you set Key Color to something unique, like #ff0000 (pure red).

Then, you match this color (and it's auto-generated lighter version), applying the border radius and restoring the colors:

.keyborder[style*="#ff0000"] {
    border-radius: 50% !important;
    background-color: #ccc !important;
}
.keytop[style*="#ff4223"] {
    border-radius: 50% !important;
    background-color: #fff !important;
}

And thus:
image