-
-
Couldn't load subscription status.
- Fork 1k
Implement border (sub)title. #2064
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
Conversation
Related issues: #1864
These internal references will make it easier for the instance of 'StylesCache' to know which border (sub)title to use, if/when needed.
|
@rodrigogiraoserrao would you mind adding a screenshot or two of a widget with title / subtitle. |
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.
Good first pass. A few requests. Might be worth going over this tomorrow.
Get rid of the watchers to make data flow easier to follow. Related comment: https://github.com/Textualize/textual/pull/2064/files\#r1137746697
This was wrong because border labels can be composed of multiple segments if they contain multiple styles. Additionally, we want to render a single blank space of padding around the title.
|
@willmcgugan because I was catenating lists left, right, and centre, I reworked the two methods in |
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.
Looking good. A few requests.



This will close #1864.