-
Notifications
You must be signed in to change notification settings - Fork 462
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
fix(lualine): automatically load theme for the active colorscheme #1031
Conversation
Signed-off-by: ayamir <[email protected]>
Signed-off-by: ayamir <[email protected]>
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 mean we can keep changes minimal like this b/c our palette will also "try it's best to generate one if there's no theme available for the currently selected colorscheme."
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.
TBH, I cant really tell the difference between two proposes in my own tests.
But ayamir's propose seems to use less code without changing the visual effect, so I think this PR is fine.
Agree with this lol I was just wondering if lualine's implementation of the I also think maybe we can simplify our implementation a bit lol (cause the modifications to those |
Aha, I see your point now. ys, I think it's better to tweak |
Using "auto" for |
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.
LGTM!
…amir#1031) * fix(lualine): use 'auto' theme when using others themes. Signed-off-by: ayamir <[email protected]> * fixup!: remove `custom_theme`. * unify variable name style. Signed-off-by: ayamir <[email protected]> * Revert "unify variable name style." This reverts commit 1363a5f. * Revert "fixup!: remove `custom_theme`." This reverts commit 55732e1. * fixup!: unify code style. * fixup:! handle `is_catppuccin` in `gen_hl`. * chore: cleanup --------- Signed-off-by: ayamir <[email protected]> Co-authored-by: Jint-lzxy <[email protected]>
…amir#1031) * fix(lualine): use 'auto' theme when using others themes. Signed-off-by: ayamir <[email protected]> * fixup!: remove `custom_theme`. * unify variable name style. Signed-off-by: ayamir <[email protected]> * Revert "unify variable name style." This reverts commit 1363a5f. * Revert "fixup!: remove `custom_theme`." This reverts commit 55732e1. * fixup!: unify code style. * fixup:! handle `is_catppuccin` in `gen_hl`. * chore: cleanup --------- Signed-off-by: ayamir <[email protected]> Co-authored-by: Jint-lzxy <[email protected]>
By utilizing "auto" theme as mentioned here, this PR corrects the appearance of
lualine
when using other colorschemes.Of course, users using
catppuccin
won't be influenced.