-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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: Enable style modifiers in theme.toml #113
Conversation
Seems to work. Going to write some documentation for theme.toml. |
(Sorry, tapped the wrong button, meant to approve the CI run but it got unmarked as a draft) |
This looks pretty good! Would you mind adding a short test for it? I know theme.rs doesn't contain any tests yet, but I think it would be useful to get some coverage |
Perhaps we can add a |
Are these what you had in mind? |
Yep, that looks fine! I'll accept a contrib/themes directory too if you want to add your theme? |
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.
Nice, there are tests and the code is better. The theme looks nice too.
Just wondering where you get inspiration for this theme?
The colours mostly came from here: https://github.com/alnj/dotfiles |
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.
Everything looks good to me except the toml key thing. I think rust version looks nicer. See what @archseer say.
I think bare keys are preferred, I just quoted all of my keys originally when I was porting my theme over. It's worth mentioning that key names with |
@@ -28,3 +28,4 @@ slotmap = "1" | |||
|
|||
serde = { version = "1.0", features = ["derive"] } | |||
toml = "0.5" | |||
log = "~0.4" |
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.
Sidenote: @pickfire should we simply re-export log
from helix_core
?
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 don't think it's necessary. We can just do this, it seemed better. For log it's easy to keep them in sync.
I think we can do something like the following for those with [ui]
bg = ... |
No, it needs to be a top level string key:
Not quoting the key will result in a nested map and won't work correctly |
Co-authored-by: Ivan Tham <pickfire@riseup.net>
Nice, there are tests and the code is better. The theme looks nice too. Just wondering where you get inspiration for this theme? I think this might get others confused why their stuff didn't get applied if they forgot to do the |
Great work on this, especially the documentation part and congrats on being the first to contribute a theme! 🎉 |
Support for configuring style modifiers like bold, italic, etc. in theme.toml. They're done as an array, alongside fg and bg.