Skip to content
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

Add border-text-style, border-color, and border-background styles #2289

Closed
willmcgugan opened this issue Apr 14, 2023 · 2 comments · Fixed by #2292
Closed

Add border-text-style, border-color, and border-background styles #2289

willmcgugan opened this issue Apr 14, 2023 · 2 comments · Fixed by #2292
Labels
enhancement New feature or request Task

Comments

@willmcgugan
Copy link
Collaborator

Add the following styles:

title-color
title-background
title-text-style

subtitle-color
subtitle-background
subtitle-text-style

These should have the same semantics as color, background, and text-style (should be able to re-use some code here).

The combined styles should apply to the border title subtitle.

Note that in the border there is a space either side of the title / subtitle. This space should have the same style as the text.

@willmcgugan
Copy link
Collaborator Author

One of the reasons for this is that we can create borders like the following:

Image

This would look great if the title and space around it could be flipped in color.

@davep davep added enhancement New feature or request Task labels Apr 15, 2023
@github-actions
Copy link

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Task
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants