Raxol.Events.TerminalThemeAppliedEvent (Raxol v2.0.1)

View Source

Event emitted when a theme is applied to a terminal.

Summary

Types

color_scheme()

@type color_scheme() :: %{
  background: tuple(),
  foreground: tuple(),
  accent: tuple(),
  success: tuple(),
  warning: tuple(),
  error: tuple()
}

font_settings()

@type font_settings() :: %{
  family: String.t(),
  size: pos_integer(),
  weight: String.t(),
  style: String.t()
}

t()

@type t() :: %Raxol.Events.TerminalThemeAppliedEvent{
  accessibility_options: map() | nil,
  applied_at: integer(),
  color_scheme: color_scheme(),
  font_settings: font_settings() | nil,
  metadata: map(),
  previous_theme_id: String.t() | nil,
  terminal_id: String.t(),
  theme_id: String.t(),
  theme_name: String.t(),
  user_id: String.t()
}

Functions

validate(event)