-
Notifications
You must be signed in to change notification settings - Fork 230
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
Theme preview doesn't show "string" label when a closure is used in color_config
#919
Comments
The data type is a closure, not a string. Maybe I'm not following what you're saying. |
The other colors that are conditionally set via closures ( |
oh, i see what you mean. thanks. i can't remember how i wrote this but is there a way to look at the right hand side and send it to describe to see the data type and then change the output? i think i'll have to look closer at the the script to recall. |
Definitely - That's what the code does now, and why it actually prints the |
Ah, I just noticed you did special-handle the |
Trying out an example from @fdncred where:
If that's set in a theme, the
theme preview small
shows the closure, but doesn't label it as thestring
type. All the types with basic (or record) colors show the labels.On the bright side, none of the current themes use a closure for anything other than
date
,filesize
, andbool
, and all of those expand their values instead of showing the closure value. Still, if someone has theircolor_config
set like this, the theme preview will be off. Even if the label was shown properly, attempting to display the closure itself inside the table is going to be problematic from a formatting standpoint. Probably need a different solution here.The text was updated successfully, but these errors were encountered: