Returns True if a custom titlebar will be / should be used. The setting is in the Global Settings window and can be overwridden using set_options call :return: True if a custom titlebar / custom menubar should be used :rtype: (bool)
()
| 19892 | |
| 19893 | |
| 19894 | def theme_use_custom_titlebar(): |
| 19895 | """ |
| 19896 | Returns True if a custom titlebar will be / should be used. |
| 19897 | The setting is in the Global Settings window and can be overwridden |
| 19898 | using set_options call |
| 19899 | |
| 19900 | :return: True if a custom titlebar / custom menubar should be used |
| 19901 | :rtype: (bool) |
| 19902 | """ |
| 19903 | if USE_CUSTOM_TITLEBAR is False: |
| 19904 | return False |
| 19905 | |
| 19906 | return USE_CUSTOM_TITLEBAR or pysimplegui_user_settings.get('-custom titlebar-', False) |
| 19907 | |
| 19908 | |
| 19909 | def theme_global(new_theme=None): |
no test coverage detected