Sets / Gets the current Theme. If none is specified then returns the current theme. This call replaces the ChangeLookAndFeel / change_look_and_feel call which only sets the theme. :param new_theme: the new theme name to use :type new_theme: (str) :return: the current
(new_theme=None)
| 19651 | |
| 19652 | |
| 19653 | def theme(new_theme=None): |
| 19654 | """ |
| 19655 | Sets / Gets the current Theme. If none is specified then returns the current theme. |
| 19656 | This call replaces the ChangeLookAndFeel / change_look_and_feel call which only sets the theme. |
| 19657 | |
| 19658 | :param new_theme: the new theme name to use |
| 19659 | :type new_theme: (str) |
| 19660 | :return: the currently selected theme |
| 19661 | :rtype: (str) |
| 19662 | """ |
| 19663 | global TRANSPARENT_BUTTON |
| 19664 | |
| 19665 | if new_theme is not None: |
| 19666 | change_look_and_feel(new_theme) |
| 19667 | TRANSPARENT_BUTTON = (theme_background_color(), theme_background_color()) |
| 19668 | return CURRENT_LOOK_AND_FEEL |
| 19669 | |
| 19670 | |
| 19671 | def theme_background_color(color=None): |
no test coverage detected