INNER CODE UNIT · Python

_script_templates

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

def _script_templates():
    """Return the same BaseTask helper palette used by every UI."""
    from ok.core.script_templates import serialize_script_templates
    return serialize_script_templates()


def _color_hex(red, green, blue):
    return f"#{red:02x}{green:02x}{blue:02x}"


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 {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…