修复button和menu的bug
This commit is contained in:
parent
f29bb3879f
commit
a25e6261c4
|
@ -310,10 +310,10 @@ class ButtonFill(Button):
|
|||
self._color_bd = color_type
|
||||
self._color_bg = color_type
|
||||
self._color_bg1 = color_type
|
||||
self._color_fg = color_type+"_light3"
|
||||
self._color_fg1 = color_type+"_dark"
|
||||
self._color_fg2 = color_type+"_light3"
|
||||
self._color_fg3 = color_type+"_dark"
|
||||
self._color_fg1 = color_type+"_light3"
|
||||
self._color_fg = color_type+"_dark"
|
||||
self._color_fg3 = color_type+"_light3"
|
||||
self._color_fg2 = color_type+"_dark"
|
||||
self._color_text = "#FFFFFF"
|
||||
super().__init__(master=master, root_anim=root_anim, w=w, h=h,
|
||||
text=text, color_list=color_list, func=func, _set_defaultcolor=True)
|
||||
|
|
|
@ -104,8 +104,9 @@ class Menu:
|
|||
for i in self.__items:
|
||||
self.canvas.itemconfig(
|
||||
i, fill=self.color["background"])
|
||||
self.canvas.itemconfig(
|
||||
self.__items[self.__last_highlight], fill=self.color["placeholder_light"])
|
||||
if -1 < self.__last_highlight < len(self.__items):
|
||||
self.canvas.itemconfig(
|
||||
self.__items[self.__last_highlight], fill=self.color["placeholder_light"])
|
||||
|
||||
def close(self, *args):
|
||||
self.__close_mode = 1
|
||||
|
|
Loading…
Reference in New Issue