Skip to content

Commit

Permalink
Theme fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Oct 30, 2024
1 parent 51da5cf commit 378dcd9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/textual/widgets/_selection_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ class SelectionList(Generic[SelectionType], OptionList):
height: auto;
& > .selection-list--button {
color: $surface;
color: $surface-darken-1;
background: $panel;
}
& > .selection-list--button-highlighted {
color: $surface;
color: $surface-darken-1;
background: $panel;
}
Expand Down
19 changes: 8 additions & 11 deletions src/textual/widgets/_toggle_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ class ToggleButton(Static, can_focus=True):
background: $surface;
& > .toggle--button {
color: $surface;
color: $surface-darken-1;
background: $panel;
}
&.-on > .toggle--button {
color: $success;
background: $panel;
}
&:focus {
Expand All @@ -72,7 +78,7 @@ class ToggleButton(Static, can_focus=True):
text-style: $block-cursor-text-style;
}
& > .toggle--button {
background: $foreground 25%;
background: $panel-lighten-1;
}
&:hover {
& > .toggle--label {
Expand All @@ -85,26 +91,17 @@ class ToggleButton(Static, can_focus=True):
& > .toggle--label {
background: $block-hover-background;
}
& > .toggle--button {
background: $foreground 25%;
}
}
}
/* Base button colors (including in dark themes). */
ToggleButton > .toggle--button {
text-style: $block-cursor-text-style;
background: $foreground 15%;
}
ToggleButton.-on > .toggle--button {
color: $success;
}
ToggleButton.-on:focus > .toggle--button {
background: $foreground 25%;
Expand Down

0 comments on commit 378dcd9

Please sign in to comment.