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

Can't change background color in MODES example #3851

Closed
davidsielertpge opened this issue Dec 12, 2023 · 3 comments
Closed

Can't change background color in MODES example #3851

davidsielertpge opened this issue Dec 12, 2023 · 3 comments

Comments

@davidsielertpge
Copy link

davidsielertpge commented Dec 12, 2023

Please give a brief but clear explanation of the issue. If you can, include a complete working example that demonstrates the bug.

Running the modes example I'm unable to change the random background colors using TCSS

example

Screen {
    background: black;
}

ModesApp {
    background: black;
}

DashboardScreen {
    background: black 100%;
}

SettingsScreen {
    background: black;
}

HelpScreen {
    background: black;
}

It will be helpful if you run the following command and paste the results:

# Textual Diagnostics

## Versions

| Name    | Value  |
|---------|--------|
| Textual | 0.44.1 |
| Rich    | 13.7.0 |

## Python

| Name           | Value                                                        |
|----------------|--------------------------------------------------------------|
| Version        | 3.9.4                                                        |
| Implementation | CPython                                                      |
| Compiler       | MSC v.1928 64 bit (AMD64)                                    |
| Executable     | C:\Users\dq1f\proj\Onetrust-upgrade\.venv\Scripts\python.exe |

## Operating System

| Name    | Value      |
|---------|------------|
| System  | Windows    |
| Release | 10         |
| Version | 10.0.19041 |

## Terminal

| Name                 | Value            |
|----------------------|------------------|
| Terminal Application | Windows Terminal |
| TERM                 | *Not set*        |
| COLORTERM            | *Not set*        |
| FORCE_COLOR          | *Not set*        |
| NO_COLOR             | *Not set*        |

## Rich Console options

| Name           | Value                |
|----------------|----------------------|
| size           | width=116, height=45 |
| legacy_windows | False                |
| min_width      | 1                    |
| max_width      | 116                  |
| is_terminal    | True                 |
| encoding       | utf-8                |
| max_height     | 45                   |
| justify        | None                 |
| overflow       | None                 |
| no_wrap        | False                |
| highlight      | None                 |
| markup         | None                 |
| height         | None                 |

Feel free to add screenshots and / or videos. These can be very helpful!
image

Copy link

We found the following entries in the FAQ which you may find helpful:

Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review.

This is an automated reply, generated by FAQtory

@davidsielertpge
Copy link
Author

I'm daft. I didn't realize the background was coming from the Placeholder widget. once its removed the colors behave as expected.
Sorry for the noise

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

No branches or pull requests

1 participant