Merge pull request #2187 from PySimpleGUI/Dev-latest
Open up look and feel settings to Macs by changing all colors except …
This commit is contained in:
commit
90d71a5580
|
@ -10010,7 +10010,10 @@ LOOK_AND_FEEL_TABLE = {'SystemDefault':
|
||||||
|
|
||||||
|
|
||||||
def ListOfLookAndFeelValues():
|
def ListOfLookAndFeelValues():
|
||||||
""" """
|
"""
|
||||||
|
Get a list of the valid values to pass into your call to change_look_and_feel
|
||||||
|
:return: List[str] - list of valid string values
|
||||||
|
"""
|
||||||
return list(LOOK_AND_FEEL_TABLE.keys())
|
return list(LOOK_AND_FEEL_TABLE.keys())
|
||||||
|
|
||||||
|
|
||||||
|
@ -10051,11 +10054,9 @@ def ChangeLookAndFeel(index, force=False):
|
||||||
:param force: (bool) if True allows Macs to use the look and feel feature. Otherwise Macs are blocked due to problems with button colors
|
:param force: (bool) if True allows Macs to use the look and feel feature. Otherwise Macs are blocked due to problems with button colors
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if sys.platform == 'darwin' and not force:
|
# if sys.platform.startswith('darwin') and not force:
|
||||||
print('*** Changing look and feel is not supported on Mac platform ***')
|
# print('*** Changing look and feel is not supported on Mac platform ***')
|
||||||
return
|
# return
|
||||||
|
|
||||||
# look and feel table
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
colors = LOOK_AND_FEEL_TABLE[index]
|
colors = LOOK_AND_FEEL_TABLE[index]
|
||||||
|
@ -10065,7 +10066,7 @@ def ChangeLookAndFeel(index, force=False):
|
||||||
element_background_color=colors['BACKGROUND'],
|
element_background_color=colors['BACKGROUND'],
|
||||||
text_color=colors['TEXT'],
|
text_color=colors['TEXT'],
|
||||||
input_elements_background_color=colors['INPUT'],
|
input_elements_background_color=colors['INPUT'],
|
||||||
button_color=colors['BUTTON'],
|
button_color=colors['BUTTON'] if not sys.platform.startswith('darwin') else None,
|
||||||
progress_meter_color=colors['PROGRESS'],
|
progress_meter_color=colors['PROGRESS'],
|
||||||
border_width=colors['BORDER'],
|
border_width=colors['BORDER'],
|
||||||
slider_border_width=colors['SLIDER_DEPTH'],
|
slider_border_width=colors['SLIDER_DEPTH'],
|
||||||
|
|
Loading…
Reference in New Issue