From bdd9d484b38c8e9a0c22ed604a965641ec671c62 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Sat, 16 Sep 2023 18:24:59 +0100 Subject: [PATCH] keymap-drawer: tweak styles --- config/keymap_drawer.yaml | 49 ++++++++++++++++++++++++++------------- 1 file changed, 33 insertions(+), 16 deletions(-) diff --git a/config/keymap_drawer.yaml b/config/keymap_drawer.yaml index 3d9ebcd..49b4fe9 100644 --- a/config/keymap_drawer.yaml +++ b/config/keymap_drawer.yaml @@ -1,6 +1,26 @@ draw_config: shrink_wide_legends: 5 append_colon_to_layer_header: false + svg_extra_style: | + /* Traparent keys */ + .trans, .none, .ghost { + opacity: 0.4; + } + + /* Tweak hold/shift styles */ + .shifted, .hold { + font-size: 18px; + text-anchor: middle; + } + .shifted { + translate: -25px 2px; + dominant-baseline: hanging; + fill: rgb(96, 125, 139); + } + .hold { + dominant-baseline: ideographic; + fill: rgb(96, 125, 139); + } parse_config: trans_legend: @@ -20,26 +40,23 @@ parse_config: # Moergo behavior '&magic 5 0': $$mdi:creation-outline$$ '&bt_0': - shifted: $$mdi:bluetooth-connect$$ - tap: '' - hold: 0 + tap: $$mdi:bluetooth-connect$$ + shifted: 0 '&bt_1': - shifted: $$mdi:bluetooth-connect$$ - tap: '' - hold: 1 + tap: $$mdi:bluetooth-connect$$ + shifted: 1 '&bt_2': - shifted: $$mdi:bluetooth-connect$$ - tap: '' - hold: 2 + tap: $$mdi:bluetooth-connect$$ + shifted: 2 '&bt_3': - shifted: $$mdi:bluetooth-connect$$ - tap: '' - hold: 3 - '&bt BT_CLR': $$mdi:bluetooth-off$$ + tap: $$mdi:bluetooth-connect$$ + shifted: 3 + '&bt BT_CLR': + tap: $$mdi:bluetooth-off$$ + hold: Clear '&bt BT_CLR_ALL': - shifted: $$mdi:bluetooth-off$$ - tap: '' - hold: All + tap: $$mdi:bluetooth-off$$ + hold: Clr All '&out OUT_USB': $$mdi:usb$$ '&bootloader': 'Boot' '&reset': 'Reset'