-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Size revamp 2: Guide.sizekey #1379
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1379 +/- ##
==========================================
- Coverage 90.57% 90.31% -0.26%
==========================================
Files 39 39
Lines 3988 4028 +40
==========================================
+ Hits 3612 3638 +26
- Misses 376 390 +14
Continue to review full report at Codecov.
|
To do:
|
I completed my To do list, and updated the figures in my OP. I also refactored some unit tests so that the key item order is always consistent (which makes it easier to regression test the keys). In the regression testing, small changes occur in any test with a shapekey (8 in total). The small changes occur because of the updated layout, and because the key swatch size (for I would also like to suggest raising the default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great! thanks for all your work on keys recently. looking forward to the third installment. in addition to the two comments in the code, it'd be nice if you could give the second commit a more informative message.
The only q remaining for me in this PR is: can the default point size be changed from 0.95mm to 3pt (~1mm).? The reason is that with this PR the key swatch size defaults to |
4ab331c
to
749c3e2
Compare
error("$(theme.guide_title_position) is not a valid guide title position") | ||
end | ||
|
||
title_padding = 1.5mm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the only difference i can see between render_key_title
and render_key_title2
is the use of 4mm
in the former here. to eliminate such code duplication, would it be possible to pass in title_padding
as an argument?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to keep the two functions separate for the moment, as I'm working towards separating the keys for discrete and continuous aesthetics. After I complete that I'm happy to tidy up whatever's remaining.
Please answer my question above about the default point size. |
NEWS.md
This PR
Guide.sizekey
This PR makes changes to the layout of shapekey and sizekey, via
render_discrete_key
. This doesn't affect colorkey, which currently usesrender_discrete_color_key
.render_discrete_color_key
contains bugs (#859), that become worse with larger swatch sizes. The long-term plan is that all discrete aesthetics (includingcolor
) will userender_discrete_key
.Examples
Example from
gallery/guides.md
(in this PR):