PowerKeys Scripting API
    Preparing search index...

    Interface UIStyle

    CSS-like style properties accepted by PowerKeys UI and overlay elements. Unsupported keys and values whose runtime types do not match the declaration are ignored. Numeric lengths are logical CSS pixels, not physical screen pixels.

    interface UIStyle {
        color?: string;
        background?: string;
        backgroundColor?: string;
        fontSize?: CssLength;
        weight?: CssFontWeight;
        align?: string;
        radius?: CssLength;
        padding?: CssLength;
        opacity?: number;
        width?: CssLength;
        height?: CssLength;
        gap?: CssLength;
        borderColor?: string;
        borderWidth?: CssLength;
        border?: string;
        boxSizing?: "content-box" | "border-box";
        margin?: CssLength;
        x?: CssLength;
        y?: CssLength;
    }
    Index
    color?: string

    CSS text color.

    background?: string

    CSS background shorthand.

    backgroundColor?: string

    CSS background color.

    fontSize?: CssLength

    Font size; a numeric value is logical CSS pixels.

    weight?: CssFontWeight

    CSS font weight such as 400, 700, or "bold".

    align?: string

    CSS text alignment such as "left", "center", or "right".

    radius?: CssLength

    Border radius; a numeric value is logical CSS pixels.

    padding?: CssLength

    CSS padding; a numeric value is logical CSS pixels.

    opacity?: number

    Element opacity from 0 (transparent) through 1 (opaque). Finite values outside the interval are clamped by the renderer.

    width?: CssLength

    CSS width; a numeric value is logical CSS pixels.

    height?: CssLength

    CSS height; a numeric value is logical CSS pixels.

    gap?: CssLength

    CSS layout gap; a numeric value is logical CSS pixels.

    borderColor?: string

    CSS border color.

    borderWidth?: CssLength

    Solid border width; a numeric value is logical CSS pixels.

    border?: string

    CSS border shorthand, for example "4px solid red".

    boxSizing?: "content-box" | "border-box"

    Whether declared width and height include padding and border.

    margin?: CssLength

    CSS margin; a numeric value is logical CSS pixels.

    Absolute CSS left position; setting x or y makes the element positioned absolutely.

    Absolute CSS top position; setting x or y makes the element positioned absolutely.