nodesnim/core/themes

    Dark Mode
Search:
Group by:

Types

ThemeRef = ref object
  name*: string
  colors*: Colors

Procs

proc newTheme(name: string; colors: Colors): ThemeRef {...}{.raises: [], tags: [].}
proc addTheme(theme: ThemeRef) {...}{.raises: [], tags: [].}
proc getTheme(name: string): ThemeRef {...}{.raises: [ResourceError], tags: [].}
proc `[]`(theme: ThemeRef; index: string): ColorRef {...}{.raises: [], tags: [].}
Returns theme color by name.
proc changeTheme(name: string) {...}{.raises: [ResourceError, KeyError], tags: [].}
Changes color theme to another, if available.

Macros

macro `~`(theme: ThemeRef; field: untyped): untyped
Alternative usage of [] proc.