mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-21 04:25:38 +08:00
Fix: Button hover color
This commit is contained in:
@@ -231,8 +231,8 @@ button.btn.dropdown-toggle {
|
|||||||
padding-left: .5rem;
|
padding-left: .5rem;
|
||||||
padding-top: 1.2rem;
|
padding-top: 1.2rem;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
min-width: 12rem;
|
width: 12rem;
|
||||||
max-width: 16rem;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#pywebio-scope-content {
|
#pywebio-scope-content {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-off:hover {
|
.btn-on:hover {
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
4
gui.py
4
gui.py
@@ -388,8 +388,8 @@ class AlasGUI(Frame):
|
|||||||
onclick_on=lambda: self.alas.stop(),
|
onclick_on=lambda: self.alas.stop(),
|
||||||
onclick_off=lambda: self.alas.start('Alas'),
|
onclick_off=lambda: self.alas.start('Alas'),
|
||||||
get_status=lambda: self.alas.alive,
|
get_status=lambda: self.alas.alive,
|
||||||
color_on='on',
|
color_on='off',
|
||||||
color_off='off',
|
color_off='on',
|
||||||
scope='scheduler_btn'
|
scope='scheduler_btn'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -48,11 +48,11 @@ class Switch:
|
|||||||
self,
|
self,
|
||||||
label_on='ON',
|
label_on='ON',
|
||||||
label_off='Turn on',
|
label_off='Turn on',
|
||||||
onclick_on=lambda: toast('You just turn it on'),
|
onclick_on=lambda: toast('You just turn it off'),
|
||||||
onclick_off=lambda: toast('off'),
|
onclick_off=lambda: toast('Its on now'),
|
||||||
get_status=lambda: 1,
|
get_status=lambda: 1,
|
||||||
color_on='success',
|
color_on='success',
|
||||||
color_off='danger',
|
color_off='secondary',
|
||||||
scope='scope_btn'
|
scope='scope_btn'
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user