修复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_bd = color_type
|
||||||
self._color_bg = color_type
|
self._color_bg = color_type
|
||||||
self._color_bg1 = color_type
|
self._color_bg1 = color_type
|
||||||
self._color_fg = color_type+"_light3"
|
self._color_fg1 = color_type+"_light3"
|
||||||
self._color_fg1 = color_type+"_dark"
|
self._color_fg = color_type+"_dark"
|
||||||
self._color_fg2 = color_type+"_light3"
|
self._color_fg3 = color_type+"_light3"
|
||||||
self._color_fg3 = color_type+"_dark"
|
self._color_fg2 = color_type+"_dark"
|
||||||
self._color_text = "#FFFFFF"
|
self._color_text = "#FFFFFF"
|
||||||
super().__init__(master=master, root_anim=root_anim, w=w, h=h,
|
super().__init__(master=master, root_anim=root_anim, w=w, h=h,
|
||||||
text=text, color_list=color_list, func=func, _set_defaultcolor=True)
|
text=text, color_list=color_list, func=func, _set_defaultcolor=True)
|
||||||
|
|
|
@ -104,6 +104,7 @@ class Menu:
|
||||||
for i in self.__items:
|
for i in self.__items:
|
||||||
self.canvas.itemconfig(
|
self.canvas.itemconfig(
|
||||||
i, fill=self.color["background"])
|
i, fill=self.color["background"])
|
||||||
|
if -1 < self.__last_highlight < len(self.__items):
|
||||||
self.canvas.itemconfig(
|
self.canvas.itemconfig(
|
||||||
self.__items[self.__last_highlight], fill=self.color["placeholder_light"])
|
self.__items[self.__last_highlight], fill=self.color["placeholder_light"])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue