File tree Expand file tree Collapse file tree 1 file changed +25
-9
lines changed Expand file tree Collapse file tree 1 file changed +25
-9
lines changed Original file line number Diff line number Diff line change @@ -51,27 +51,43 @@ class Switch(Widget, can_focus=True):
5151 height: auto;
5252 width: auto;
5353 padding: 0 2;
54- &.-on > .switch--slider {
54+ &.-on .switch--slider {
5555 color: $success;
5656 }
57- & > .switch--slider {
58- background : $surface-darken-1 ;
59- color : $surface-lighten-2 ;
57+ & .switch--slider {
58+ color : $panel ;
59+ background : $panel-darken-1 ;
6060 }
6161 &:hover {
6262 & > .switch--slider {
63- color: $surface -lighten-3;
63+ color: $panel -lighten-1
6464 }
65- &.-on {
66- & > .switch--slider {
67- color: $success-lighten-1;
68- }
65+ &.-on > .switch--slider {
66+ color: $success-lighten-1;
6967 }
7068 }
7169 &:focus {
7270 border: tall $border;
7371 background-tint: $foreground 5%;
7472 }
73+
74+ &:light {
75+ &.-on .switch--slider {
76+ color: $success;
77+ }
78+ & .switch--slider {
79+ color: $primary 15%;
80+ background: $panel-darken-1;
81+ }
82+ &:hover {
83+ & > .switch--slider {
84+ color: $primary 25%;
85+ }
86+ &.-on > .switch--slider {
87+ color: $success-lighten-1;
88+ }
89+ }
90+ }
7591 }
7692
7793 """
You can’t perform that action at this time.
0 commit comments