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.