From 27be46ecabe9d5cb37fc21715ae27aa6a825ccf5 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Tue, 11 Aug 2020 09:12:51 -0400 Subject: [PATCH] Set button background colors correctly so they blend with theme. --- DemoPrograms/Demo_Buttons_Mac.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DemoPrograms/Demo_Buttons_Mac.py b/DemoPrograms/Demo_Buttons_Mac.py index 27e18b6b..1ec4154e 100644 --- a/DemoPrograms/Demo_Buttons_Mac.py +++ b/DemoPrograms/Demo_Buttons_Mac.py @@ -8,12 +8,12 @@ def show_win(): sg.set_options(border_width=0, margins=(0, 0), element_padding=(5, 3)) frame_layout = [ - [sg.Button('', image_data=mac_red, - button_color=('white', sg.COLOR_SYSTEM_DEFAULT), key='-exit-'), + [sg.Button(image_data=mac_red, + button_color=(sg.theme_background_color(),sg.theme_background_color()), key='-exit-'), sg.Button('', image_data=mac_orange, - button_color=('white', sg.COLOR_SYSTEM_DEFAULT)), + button_color=(sg.theme_background_color(),sg.theme_background_color())), sg.Button('', image_data=mac_green, - button_color=('white', sg.COLOR_SYSTEM_DEFAULT), key='-minimize-'), + button_color=(sg.theme_background_color(),sg.theme_background_color()), key='-minimize-'), sg.Text(' '*40)], ] layout = [[sg.Frame('', frame_layout)],