Replies: 2 comments 2 replies
-
Try adding a background to your added from textual.app import App, ComposeResult
from textual.widgets import Header, Static
class ExampleApp(App):
CSS = """
#dm_notification_icon {
background: red;
}
"""
def compose(self) -> ComposeResult:
with Header() as header:
header.tall = True
yield Static("📩", id="dm_notification_icon")
if __name__ == "__main__":
app = ExampleApp()
app.run() The problem is that the |
Beta Was this translation helpful? Give feedback.
2 replies
-
I ended up creating a simple custom header. That worked for this. Thanks for the help and ideas. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I wanted to add a small notification icon on the right side of the Header() of the main window of my app.
Something along these lines:
Unfortunately, the icon never shows and I am now wondering where it has gone.
Is there a way to make this work or do I have to do it in a different way ?
Beta Was this translation helpful? Give feedback.
All reactions