修改侧边栏按钮选中高亮

This commit is contained in:
张开科 2024-07-12 15:12:34 +08:00
parent 150c91163f
commit 757c5bc8d9

View File

@ -315,8 +315,13 @@ class BasePanel(ScreenPanel):
self.content.remove(widget)
def set_control_sensitive(self, value=True, control='move'):
self.control[control].set_sensitive(value)
if control == 'back':
self.control[control].set_sensitive(value)
if value:
self.control[control].get_style_context().remove_class("button_active")
else:
self.control[control].get_style_context().add_class("button_active")
def show_shortcut(self, show=True):
show = (
show