-
-
Notifications
You must be signed in to change notification settings - Fork 637
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
PTK support for custom themes #3920
Conversation
Sorry, checking the tests. |
Token.PTK.CompletionMenu.Completion.Current: "bg:ansibrightblack ansiwhite", | ||
Token.PTK.Scrollbar.Arrow: "bg:ansiblack ansiwhite bold", | ||
Token.PTK.Scrollbar.Background: "bg:ansibrightblack", | ||
Token.PTK.Scrollbar.Button: "bg:ansiblack", |
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 think these will then need to be added to all styles.
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.
They should be there due to the change in pyghooks
where I've replaced the old PTK_STYLE
with DEFAULT_STYLE_DICT
in the style chainmap.
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
Thanks @dyuri! |
Hmm This seemed to change the $PROMPT color rendering for me on PTK. FWIW my |
That's strange, I use |
This also made
|
I use |
Should we revert for the moment? |
Yep, please, I'll take a look. |
Added support for changing PTK specific styles (non-pygments related, like
autosuggest
or thecompletion-menu
) via the new custom styles (#3878).Using this I took the opportunity to "merge"
PTK_STYLE
(I think it was ptk1 related, so we don't need it anyway) andPTK2_STYLE
intoDEFAULT_STYLE_DICT
and replace$PTK_STYLE_OVERRIDES
with a more generic$XONSH_STYLE_OVERRIDES
.(As a next step after #2861, I'd be happy if you could take a look @laloch .)
Example how to change background color for completion menu to dark mode: