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

Border Title Color TCSS Style Regression #5548

Closed
ddkasa opened this issue Feb 17, 2025 · 3 comments · Fixed by #5553
Closed

Border Title Color TCSS Style Regression #5548

ddkasa opened this issue Feb 17, 2025 · 3 comments · Fixed by #5553

Comments

@ddkasa
Copy link
Contributor

ddkasa commented Feb 17, 2025

The bug

Border title colors are being displayed as backgrounds instead of changing the font color in Textual 2.0.3.

1.0.0

Image

2.0.3

Image

MRE

from textual.app import App
from textual.widgets import Static
from textual.containers import Vertical


class BugReportApp(App[None]):
    CSS = """
    Vertical {
        border-top: panel $surface-lighten-1;
        border-title-color: yellow;
    }
    """

    def compose(self):
        with Vertical() as c:
            c.border_title = "Panel Title"
            yield Static("Content")


if __name__ == "__main__":
    BugReportApp().run()

Not 100% sure if this is an unintended change, as it might relate to #5389.

Textual Diagnostics

Versions

Name Value
Textual 2.0.3
Rich 13.9.4

Python

Name Value
Version 3.12.5
Implementation CPython
Compiler GCC 14.2.1 20240801 (Red Hat 14.2.1-1)
Executable /home/dk/dev/tmp/textual-sandbox/.venv/bin/python3

Operating System

Name Value
System Linux
Release 6.12.13-100.fc40.x86_64
Version #1 SMP PREEMPT_DYNAMIC Sat Feb 8 17:10:01 UTC 2025

Terminal

Name Value
Terminal Application Kitty
TERM xterm-kitty
COLORTERM truecolor
FORCE_COLOR Not set
NO_COLOR Not set

Rich Console options

Name Value
size width=137, height=54
legacy_windows False
min_width 1
max_width 137
is_terminal True
encoding utf-8
max_height 54
justify None
overflow None
no_wrap False
highlight None
markup None
height None
Copy link

Thank you for your issue. Give us a little time to review it.

PS. You might want to check the FAQ if you haven't done so already.

This is an automated reply, generated by FAQtory

Copy link

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

1 similar comment
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
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant