From dd1c91ec277e3435174675668a8a079087e5127f Mon Sep 17 00:00:00 2001 From: Bastien Riviere Date: Wed, 24 Apr 2024 17:32:56 +0200 Subject: [PATCH] chore: copy svg config from englmaxi https://github.com/englmaxi/zmk-config/blob/master/keymap-drawer/config.yaml --- keymap-drawer/config.yaml | 70 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 66 insertions(+), 4 deletions(-) diff --git a/keymap-drawer/config.yaml b/keymap-drawer/config.yaml index 04c6034..b28b91f 100644 --- a/keymap-drawer/config.yaml +++ b/keymap-drawer/config.yaml @@ -28,12 +28,74 @@ draw_config: rel_h: 12 rx: 4 ry: 4 - svg_extra_style: '' + svg_extra_style: | + svg.keymap { + font-family: Helvetica Neue, Helvetica, Arial, sans-serif; + font-size: 10px; + font-weight: bold; + } + + text.label { + stroke: #dfdfde; + stroke-width: 12; + stroke-linejoin: round; + } + + rect.combo, rect.combo-separate { + opacity: 0.95; + stroke: #c9cccf; + stroke-width: 0.5; + fill: #d7eaed; + } + path.combo { + stroke-dasharray: 4, 4; + stroke-opacity: 0.3; + } + + rect.held, rect.combo.held { + fill: #ebdada; + } + + .trans.tap, .ghost.tap { + opacity: 0.5; + } + + .shifted { + translate: -9px 3px; + opacity: 0.3; + } + + .toggle.shifted { + translate: -12px 17px; + opacity: 1.0; + } + .toggle.hold { + translate: 12px -25px; + } + + .text_with_symbol.tap { + translate: -1px 1px; + } + .text_with_symbol.shifted { + translate: 8px 13px; + font-size: 8px; + opacity: 1.0; + } + + .combo.text_with_symbol.tap { + translate: -1px 1px; + } + .combo.text_with_symbol.shifted { + translate: 7px 5px; + font-size: 8px; + opacity: 1.0; + } + + glyph_tap_size: 14 + glyph_hold_size: 8 + glyph_shifted_size: 8 footer_text: '' shrink_wide_legends: 7 - glyph_tap_size: 14 - glyph_hold_size: 12 - glyph_shifted_size: 10 glyphs: {} parse_config: preprocess: true