From f3a95793148ca076120e820476b5e5fc021eeff3 Mon Sep 17 00:00:00 2001 From: dcai Date: Sun, 12 May 2024 23:58:21 +0000 Subject: [PATCH] ci(keymap): draw keymap in svg --- assets/cradio-keymap.svg | 69 ++++++++++++++++++++++++++---------- assets/cradio-keymap.yaml | 6 ++-- assets/reviung34-keymap.svg | 69 ++++++++++++++++++++++++++---------- assets/reviung34-keymap.yaml | 6 ++-- assets/reviung5-keymap.svg | 11 +++++- 5 files changed, 120 insertions(+), 41 deletions(-) diff --git a/assets/cradio-keymap.svg b/assets/cradio-keymap.svg index 703f8ab..1d70090 100644 --- a/assets/cradio-keymap.svg +++ b/assets/cradio-keymap.svg @@ -54,7 +54,16 @@ text.label { font-weight: bold; text-anchor: start; stroke: white; - stroke-width: 2; + stroke-width: 4; + paint-order: stroke; +} + +/* styling for optional footer */ +text.footer { + text-anchor: end; + dominant-baseline: auto; + stroke: white; + stroke-width: 4; paint-order: stroke; } @@ -256,22 +265,26 @@ path.combo { LALT + +ESC + + ESC - + VOLDN - + VOLUP - + @@ -417,22 +430,26 @@ path.combo { + +ESC + + ESC - + VOLDN - + VOLUP - + @@ -550,11 +567,15 @@ path.combo { -LG(DOWN) + +Gui+DOWN + -LG(UP) + +Gui+UP + @@ -579,22 +600,26 @@ path.combo { + +ESC + + ESC - + VOLDN - + VOLUP - + @@ -744,22 +769,26 @@ path.combo { + +ESC + + ESC - + VOLDN - + VOLUP - + @@ -873,22 +902,26 @@ path.combo { + +ESC + + ESC - + VOLDN - + VOLUP - + diff --git a/assets/cradio-keymap.yaml b/assets/cradio-keymap.yaml index 3bfd36e..687dbc1 100644 --- a/assets/cradio-keymap.yaml +++ b/assets/cradio-keymap.yaml @@ -97,8 +97,8 @@ layers: - '0' - + - '' - - LG(DOWN) - - LG(UP) + - Gui+ DOWN + - Gui+ UP - '' - '' - {t: ▽, type: trans} @@ -142,6 +142,8 @@ layers: - {t: ▽, type: trans} blank: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''] combos: +- p: [12, 13] + k: ESC - p: [0, 1] k: ESC - p: [26, 27] diff --git a/assets/reviung34-keymap.svg b/assets/reviung34-keymap.svg index 3926f99..58c352f 100644 --- a/assets/reviung34-keymap.svg +++ b/assets/reviung34-keymap.svg @@ -54,7 +54,16 @@ text.label { font-weight: bold; text-anchor: start; stroke: white; - stroke-width: 2; + stroke-width: 4; + paint-order: stroke; +} + +/* styling for optional footer */ +text.footer { + text-anchor: end; + dominant-baseline: auto; + stroke: white; + stroke-width: 4; paint-order: stroke; } @@ -256,22 +265,26 @@ path.combo { LALT + +ESC + + ESC - + VOLDN - + VOLUP - + @@ -417,22 +430,26 @@ path.combo { + +ESC + + ESC - + VOLDN - + VOLUP - + @@ -550,11 +567,15 @@ path.combo { -LG(DOWN) + +Gui+DOWN + -LG(UP) + +Gui+UP + @@ -579,22 +600,26 @@ path.combo { + +ESC + + ESC - + VOLDN - + VOLUP - + @@ -744,22 +769,26 @@ path.combo { + +ESC + + ESC - + VOLDN - + VOLUP - + @@ -873,22 +902,26 @@ path.combo { + +ESC + + ESC - + VOLDN - + VOLUP - + diff --git a/assets/reviung34-keymap.yaml b/assets/reviung34-keymap.yaml index 1097a54..fd73572 100644 --- a/assets/reviung34-keymap.yaml +++ b/assets/reviung34-keymap.yaml @@ -97,8 +97,8 @@ layers: - '0' - + - '' - - LG(DOWN) - - LG(UP) + - Gui+ DOWN + - Gui+ UP - '' - '' - {t: ▽, type: trans} @@ -142,6 +142,8 @@ layers: - {t: ▽, type: trans} blank: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''] combos: +- p: [12, 13] + k: ESC - p: [0, 1] k: ESC - p: [26, 27] diff --git a/assets/reviung5-keymap.svg b/assets/reviung5-keymap.svg index 7b253f5..e401d50 100644 --- a/assets/reviung5-keymap.svg +++ b/assets/reviung5-keymap.svg @@ -54,7 +54,16 @@ text.label { font-weight: bold; text-anchor: start; stroke: white; - stroke-width: 2; + stroke-width: 4; + paint-order: stroke; +} + +/* styling for optional footer */ +text.footer { + text-anchor: end; + dominant-baseline: auto; + stroke: white; + stroke-width: 4; paint-order: stroke; }