Skip to main content
Version: 0.0.2

rayquiro.ui

rayquiro.ui in 0.0.2 is an official installable native module for higher-level Windows UI flows.

Install it with:

rqio install rayquiro.ui

or locally:

rqio install rayquiro.ui --local

Import

import rayquiro.ui as ui;

What It Is For

Use rayquiro.ui for:

  • installers
  • launchers
  • setup flows
  • status screens
  • simple desktop tools with one or two main actions

Workflow

Typical flow:

  1. create a window with ui.init(...)
  2. optionally theme it with ui.style(...)
  3. add content with hero, status, info, and text
  4. add actions with ui.action(...) or ui.button(...)
  5. call ui.run()

API

ui.init(title, width, height)

ui.style(cssLikeText)

ui.hero(title, subtitle)

ui.status(title, body)

ui.info(label, value)

ui.text(text, role)

ui.action(id, label, variant)

ui.button(id, label, variant)

ui.run()

ui.run() returns the selected action id.

Example

import rayquiro.ui as ui;

ui.init("Installer", 980, 640);
ui.style("""
window { background: #08111f; color: #f4f7fb; }
card { background: #101a2d; radius: 28; padding: 24; max-width: 760; }
title { align: center; }
button { align: center; }
""");
ui.hero("RayQuiro", "Ship apps with a styled native UI");
ui.info("Version", "0.0.2");
ui.button("install", "Install", "primary");

var result = ui.run();
print("action:", result);

Notes

  • rayquiro.ui is an official native module in 0.0.2
  • it is Windows-first in the current release path
  • it is higher-level than rayquiro.app