Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit17bb9a973f

README.md

launcher.colors

The colours the ZeroMind tab draws with: the editor's colour contract, read from the active theme when a tree is built, and the built-in dark theme's value for a token the active theme leaves out.

  • palette: the one table every builder of the tab reads, by role (bg, surface, text, text2, ember, danger, ...). human, agent, live and scrim are the tab's own: who made a thing, and the dimming behind a sheet.
  • THEME_ROLES: the theme token each role reads.
  • read(fromTheme): write the active theme's values into palette (fromTheme true), or the dark theme's values alone.
local Colors = require("@builtin::modules.api.engine.launcher.colors")
Colors.read(false)
print(Colors.palette.text, Colors.palette.ember)