Skip to content

Commit

Permalink
Updating toasts to follow new theme system conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Nov 11, 2024
1 parent fb7fb60 commit f2f7606
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/textual/widgets/_toast.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,41 +47,41 @@ class Toast(Static, inherit_css=False):
margin-top: 1;
padding: 1 1;
background: $panel;
tint: white 5%;
link-background: initial;
link-color: $text;
link-color: $foreground;
link-style: underline;
link-background-hover: $primary;
link-color-hover: $text;
link-color-hover: $foreground;
link-style-hover: bold not underline;
}
.toast--title {
text-style: bold;
color: $foreground;
}
Toast.-information {
border-left: outer $success;
}
Toast.-information .toast--title {
color: $success-darken-1;
color: $text-success;
}
Toast.-warning {
border-left: outer $warning;
}
Toast.-warning .toast--title {
color: $warning-darken-1;
color: $text-warning;
}
Toast.-error {
border-left: outer $error;
}
Toast.-error .toast--title {
color: $error-darken-1;
color: $text-error;
}
"""

Expand Down

0 comments on commit f2f7606

Please sign in to comment.