Skip to content

Commit c096a3f

Browse files
committed
Styling tabs
1 parent 35a139a commit c096a3f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/textual/widgets/_tabs.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Underline(Widget):
3232
height: 1;
3333
& > .underline--bar {
3434
background: $foreground 10%;
35-
color: $accent;
35+
color: $highlight-cursor-blurred;
3636
}
3737
}
3838
"""
@@ -94,10 +94,10 @@ class Tab(Static):
9494
height: 2;
9595
padding: 1 1 0 2;
9696
text-align: center;
97-
color: $text-disabled;
97+
color: $text-muted 50%;
9898
9999
&:hover {
100-
text-style: bold;
100+
color: $text;
101101
}
102102
&:disabled {
103103
color: $text-disabled;
@@ -106,8 +106,6 @@ class Tab(Static):
106106
107107
&.-active {
108108
color: $text;
109-
text-style: bold;
110-
111109
&:hover {
112110
color: $text;
113111
}
@@ -208,7 +206,8 @@ class Tabs(Widget, can_focus=True):
208206
209207
&:focus {
210208
.underline--bar {
211-
background: $foreground 20%;
209+
color: $highlight-cursor;
210+
background: $foreground 30%;
212211
}
213212
}
214213

0 commit comments

Comments
 (0)