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