Set button background colors correctly so they blend with theme.
This commit is contained in:
parent
15dce8d14b
commit
27be46ecab
|
@ -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)],
|
||||||
|
|
Loading…
Reference in New Issue