INNER CODE UNIT · Python

_windows_system_accents

ok-oldking/ok-script · ok/ui/web/app.py:152

def _windows_system_accents():
    """Return Windows primary fills for light and dark UI modes."""
    try:
        from ok.rotypes.Windows.UI.ViewManagement import UIColorType, get_color_value

        light = get_color_value(UIColorType.AccentDark1)
        dark = get_color_value(UIColorType.AccentLight2)
        return {
            "light": _color_hex(light.red, light.green, light.blue),
            "dark": _color_hex(dark.red, dark.green, dark.blue),
        }
    except (ImportError, OSError, TypeError, AttributeError):
        pass

    try:
        import ctypes
        from ctypes import wintypes

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…