TKL/Full Size layouts, and a few additions to layout() #96
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds TKL and Full Size layouts.
However, there were a few things than the existing layout function didn't include that were necessary for TKL and Full Size layouts.
legend()
-legend_sizes
. This argument takes a 2d array, in the same format as the legend and keysize arrays, which specifies how much larger or smaller than default each key's legend should be. Since users may specify their own legend size, it specifies a difference from the default, so +1 increases size by one, 0 leaves a key as default and -1 decreases size by one.vertical_sizes
, in the same format aslegend_sizes
which specifies the vertical size of caps in units. On the row below a vertical cap, a gap must be added to the sizes array since currently, this isn't done automatically.Both of these options have default values, so existing layouts require no modification, and the options can be safely left unset.
Currently, it only works with SA and Cherry profiles. Whatever calculates the row numbers doesn't seem to be able to handle full 6-row layouts. Cherry and SA are working since I set
row_sculpting_offset = -1
. DCS and OEM just use the wrong rows, giving a sculpt that's completely wrong, G20 and HiPro give a similar result with just a weird sculpt, and no value ofrow_sculpting_offset
seems to fix these. DSA just throws about 3600 warnings. If anyone could shed some light on how the row system works I could probably try and find a fix.