Skip to content

Commit f2f7606

Browse files
committed
Updating toasts to follow new theme system conventions
1 parent fb7fb60 commit f2f7606

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/textual/widgets/_toast.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,41 +47,41 @@ class Toast(Static, inherit_css=False):
4747
margin-top: 1;
4848
padding: 1 1;
4949
background: $panel;
50-
tint: white 5%;
5150
link-background: initial;
52-
link-color: $text;
51+
link-color: $foreground;
5352
link-style: underline;
5453
link-background-hover: $primary;
55-
link-color-hover: $text;
54+
link-color-hover: $foreground;
5655
link-style-hover: bold not underline;
5756
}
5857
5958
.toast--title {
6059
text-style: bold;
60+
color: $foreground;
6161
}
6262
6363
Toast.-information {
6464
border-left: outer $success;
6565
}
6666
6767
Toast.-information .toast--title {
68-
color: $success-darken-1;
68+
color: $text-success;
6969
}
7070
7171
Toast.-warning {
7272
border-left: outer $warning;
7373
}
7474
7575
Toast.-warning .toast--title {
76-
color: $warning-darken-1;
76+
color: $text-warning;
7777
}
7878
7979
Toast.-error {
8080
border-left: outer $error;
8181
}
8282
8383
Toast.-error .toast--title {
84-
color: $error-darken-1;
84+
color: $text-error;
8585
}
8686
"""
8787

0 commit comments

Comments
 (0)