mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
added border color to CTkButton
This commit is contained in:
parent
6d007e1769
commit
8625fbb0f6
@ -14,7 +14,7 @@ class CTkButton(tkinter.Frame):
|
|||||||
bg_color=None,
|
bg_color=None,
|
||||||
fg_color="CTkColorManager",
|
fg_color="CTkColorManager",
|
||||||
hover_color="CTkColorManager",
|
hover_color="CTkColorManager",
|
||||||
border_color=None,
|
border_color="CTkColorManager",
|
||||||
border_width=0,
|
border_width=0,
|
||||||
command=None,
|
command=None,
|
||||||
textvariable=None,
|
textvariable=None,
|
||||||
@ -61,7 +61,7 @@ class CTkButton(tkinter.Frame):
|
|||||||
self.bg_color = self.detect_color_of_master() if bg_color is None else bg_color
|
self.bg_color = self.detect_color_of_master() if bg_color is None else bg_color
|
||||||
self.fg_color = CTkColorManager.MAIN if fg_color == "CTkColorManager" else fg_color
|
self.fg_color = CTkColorManager.MAIN if fg_color == "CTkColorManager" else fg_color
|
||||||
self.hover_color = CTkColorManager.MAIN_HOVER if hover_color == "CTkColorManager" else hover_color
|
self.hover_color = CTkColorManager.MAIN_HOVER if hover_color == "CTkColorManager" else hover_color
|
||||||
self.border_color = border_color
|
self.border_color = CTkColorManager.CHECKBOX_LINES if border_color == "CTkColorManager" else border_color
|
||||||
|
|
||||||
# shape and size
|
# shape and size
|
||||||
self.width = width
|
self.width = width
|
||||||
|
Loading…
Reference in New Issue
Block a user