Set button background colors correctly so they blend with theme.

This commit is contained in:
PySimpleGUI 2020-08-11 09:12:51 -04:00
parent 15dce8d14b
commit 27be46ecab
1 changed files with 4 additions and 4 deletions

View File

@ -8,12 +8,12 @@ def show_win():
sg.set_options(border_width=0, margins=(0, 0), element_padding=(5, 3)) sg.set_options(border_width=0, margins=(0, 0), element_padding=(5, 3))
frame_layout = [ frame_layout = [
[sg.Button('', image_data=mac_red, [sg.Button(image_data=mac_red,
button_color=('white', sg.COLOR_SYSTEM_DEFAULT), key='-exit-'), button_color=(sg.theme_background_color(),sg.theme_background_color()), key='-exit-'),
sg.Button('', image_data=mac_orange, 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, 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)], ] sg.Text(' '*40)], ]
layout = [[sg.Frame('', frame_layout)], layout = [[sg.Frame('', frame_layout)],