-
Notifications
You must be signed in to change notification settings - Fork 129
Add styles to theme for prompt-toolkit completion styles #1653
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
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
dfedeba
Add styles to theme for completion item and meta foreground and backg…
tleonhardt 1a73c22
Moved to_pt_style function to pt_utils.py and added unit tests for it
tleonhardt 0b5e443
Add a unit test for _get_pt_style method
tleonhardt 43d5ee1
Merge branch 'main' into pt-colors
tleonhardt a6927c3
Change metadata default color to BRIGHT_GREEN instead of LIGHT_GREEN
tleonhardt 339b73d
Added `rich_to_pt_color` conversion helper function
tleonhardt 2bcda9a
Move ansi_names list to ANSI_NAMES tuple constant to cleanup function
tleonhardt f10f42b
Change rich_to_pt_style to take a StyleType instead of Style
tleonhardt 3bc0070
Add unit test for case when a str is passed to rich-to_pt_style
tleonhardt 77fea2f
Merge branch 'main' into pt-colors
tleonhardt a02e688
Cmd2Lexer colors are now part of the cmd2 rich theme
tleonhardt d580970
Merge branch 'main' into pt-colors
tleonhardt ae78cb4
Lexer colors now change if a user changes the theme during runtime
tleonhardt 252ad08
rich_to_pt_style now also supports blink, reverse, and conceal/hidden…
tleonhardt 812ccc5
Removed pointless try/except
tleonhardt e6b33f3
Apparently I forgot to hit save after changing this previously
tleonhardt 0a0b541
Fix tests after removing noreverse for color conversion initializaiton
tleonhardt 60ca50d
Enable true color support for both main and temporary prompt-toolkit …
tleonhardt 91331c1
Added additional prompt-toolkit completion styles to cmd2's rich theme
tleonhardt 55785f5
Temporary prompt-toolkit sessions now get style from main session
tleonhardt 128f050
Add register_theme_update_callback function to rich_utils.py
tleonhardt 633511d
Updated changelog with info on register_theme_update_callback
tleonhardt bbf8787
cmd2.Cmd now updates pt_style based on callback method registation
tleonhardt 8563dc8
Also set color_depth in the secret prompt
tleonhardt da3ca4f
Use consistent terminology in adjacent comments
tleonhardt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.