diff --git a/img/corneish_zen.svg b/img/corneish_zen.svg index db7084b..a2537e1 100644 --- a/img/corneish_zen.svg +++ b/img/corneish_zen.svg @@ -1,4 +1,4 @@ - + /* start glyphs */ @@ -325,10 +325,14 @@ text { /* Layer labels */ text.label { font-weight: bold; + font-size: 36px; text-anchor: start; paint-order: stroke; fill: var(--color--layer--text); - dominant-baseline: text-before-edge; + translate: 581px 146px; +} +.layer-Fn text.label { + translate: 581px 164px; } @@ -343,19 +347,38 @@ rect.combo { } .shifted, .hold { - font-size: 18px; + font-size: 16px; text-anchor: middle; } + .shifted { dominant-baseline: hanging; fill: var(--color--key--text--shifted); - translate: -25px 2px; + translate: -26px 2px; +} +.shifted.glyph { + translate: -26px 0px; +} +.shifted.mdi\:alpha-w-box { + translate: 26px 0px; } + .hold { dominant-baseline: ideographic; fill: var(--color--key--text--hold); - translate: -25px 4px; + translate: -26px 4px; +} +.hold.glyph { + translate: -26px 2px; +} + +.shifted.mdi\:usb { + translate: -26px 26px; } +.hold.mdi\:bluetooth { + translate: 26px -26px; +} + /* * Combos @@ -373,7 +396,6 @@ rect.combo { path.combo { stroke-width: 1; stroke: var(--color--combo--dendron); - stroke-dasharray: 2, 2; fill: none; } .combo.tap { @@ -383,6 +405,9 @@ path.combo { font-size: 13px; translate: -9px -2px; } +.combo.shifted.glyph { + translate: -9px -3px; +} .combo.hold { font-size: 16px; translate: 0 0; @@ -422,16 +447,6 @@ path.combo { /* * Overrides */ -.shifted.mdi\:alpha-w-box { - translate: 25px 0px; -} -.shifted.mdi\:usb { - translate: -25px 25px; -} -.hold.mdi\:bluetooth { - translate: 25px -25px; -} - /* Outer column + thumb keys */ .keypos-0, .keypos-11, @@ -516,7 +531,7 @@ path.combo { - + @@ -525,42 +540,42 @@ path.combo { R - + S - + T - + G - + M - + N - + E - + I - + @@ -574,7 +589,7 @@ path.combo { Fn - + @@ -623,7 +638,7 @@ path.combo { Fn - + @@ -632,27 +647,27 @@ path.combo { - + L2 - - + + L2 - - + + - - + + @@ -660,85 +675,85 @@ path.combo { ~ - + ! - + @ - + # - + $ - + % - + ^ - + & - + * - + ( - + ) - -- -_ + +- +_ - -= -+ + += ++ - + / -? +? - + - + - -[ -{ + +[ +{ - -] -} + +] +} - -\ -| + +\ +| - + @@ -811,46 +826,46 @@ path.combo { 7 - + & 8 - + * 9 - + ( 0 - + ) - + - + - + - + @@ -937,97 +952,97 @@ path.combo { - + ! - + @ - + # - + $ - + % - + ^ - + & - + * - + ( - + ) - -- -_ + +- +_ - -= -+ + += ++ - + / -? +? - + - + - -[ -{ + +[ +{ - -] -} + +] +} - -\ -| + +\ +| - + Fn - + - - + + @@ -1076,7 +1091,7 @@ path.combo { - + @@ -1085,22 +1100,22 @@ path.combo { F7 - + F8 - + F9 - + F10 - + @@ -1125,7 +1140,7 @@ path.combo { - + @@ -1208,78 +1223,78 @@ path.combo { - -- -_ + +- +_ - -= -+ + += ++ - + / -? +? - + - + - -[ -{ + +[ +{ - -] -} + +] +} - -\ -| + +\ +| - + - -1 - + +1 + - -2 - + +2 + - -3 - + +3 + - -4 - + +4 + - -5 - + +5 + - + diff --git a/keymap-drawer/config.yaml b/keymap-drawer/config.yaml index 75a531c..36344b6 100644 --- a/keymap-drawer/config.yaml +++ b/keymap-drawer/config.yaml @@ -11,8 +11,8 @@ draw_config: line_spacing: 1 # combo box dimensions - combo_w: 36 - combo_h: 36 + combo_w: 34 + combo_h: 34 # padding from the edge of cap to top and bottom legends small_pad: 4 @@ -37,8 +37,8 @@ draw_config: # Glyphs dimensions glyph_tap_size: 26 - glyph_hold_size: 18 - glyph_shifted_size: 18 + glyph_hold_size: 16 + glyph_shifted_size: 16 # Custom CSS svg_style: | @@ -252,10 +252,14 @@ draw_config: /* Layer labels */ text.label { font-weight: bold; + font-size: 36px; text-anchor: start; paint-order: stroke; fill: var(--color--layer--text); - dominant-baseline: text-before-edge; + translate: 581px 146px; + } + .layer-Fn text.label { + translate: 581px 164px; } @@ -270,19 +274,38 @@ draw_config: } .shifted, .hold { - font-size: 18px; + font-size: 16px; text-anchor: middle; } + .shifted { dominant-baseline: hanging; fill: var(--color--key--text--shifted); - translate: -25px 2px; + translate: -26px 2px; + } + .shifted.glyph { + translate: -26px 0px; + } + .shifted.mdi\:alpha-w-box { + translate: 26px 0px; } + .hold { dominant-baseline: ideographic; fill: var(--color--key--text--hold); - translate: -25px 4px; + translate: -26px 4px; + } + .hold.glyph { + translate: -26px 2px; + } + + .shifted.mdi\:usb { + translate: -26px 26px; } + .hold.mdi\:bluetooth { + translate: 26px -26px; + } + /* * Combos @@ -300,7 +323,6 @@ draw_config: path.combo { stroke-width: 1; stroke: var(--color--combo--dendron); - stroke-dasharray: 2, 2; fill: none; } .combo.tap { @@ -310,6 +332,9 @@ draw_config: font-size: 13px; translate: -9px -2px; } + .combo.shifted.glyph { + translate: -9px -3px; + } .combo.hold { font-size: 16px; translate: 0 0; @@ -349,16 +374,6 @@ draw_config: /* * Overrides */ - .shifted.mdi\:alpha-w-box { - translate: 25px 0px; - } - .shifted.mdi\:usb { - translate: -25px 25px; - } - .hold.mdi\:bluetooth { - translate: 25px -25px; - } - /* Outer column + thumb keys */ .keypos-0, .keypos-11,