iterm2/Auto_Dark_Mode_Colors.py
async def is_dark_theme(monitor=None, app=None):
    """Return whether or not iTerm2 theme is dark"""
    theme=None
    if monitor:
        theme = await monitor.async_get()
    elif app:
        theme = await app.async_get_variable("effectiveTheme")
    else:
        raise ValueError('Need a monitor or app instance to detect theme')

    # Themes have space-delimited attributes, one of which will be light or dark.
    parts = theme.split(" ")
    return "dark" in parts
Return whether or not iTerm2 theme is dark
Return whether or not iTerm2 theme is dark
Return whether or not iTerm2 theme is dark
async def is_dark_theme(monitor=None, app=None):
    theme=None
    if monitor:
        theme = await monitor.async_get()
    elif app:
        theme = await app.async_get_variable("effectiveTheme")
    else:
        raise ValueError('Need a monitor or app instance to detect theme')
    parts = theme.split(" ")
    return "dark" in parts
async def is_dark_theme ( monitor = None , app = None ) : theme = None if monitor : theme = await monitor . async_get ( ) elif app : theme = await app . async_get_variable ( "effectiveTheme" ) else : raise ValueError ( 'Need a monitor or app instance to detect theme' ) parts = theme . split ( " " ) return "dark" in parts
Return whether or not iTerm2 theme is dark
Return whether or not iTerm2 theme is dark
"""Return whether or not iTerm2 theme is dark""" # Themes have space-delimited attributes, one of which will be light or dark.
monitor
app