Dala.Theme.Adaptive.Custom (dala v0.8.1)

Copy Markdown View Source

Adaptive theme that switches between a custom dark/light pair.

defmodule MyApp do
  use Dala.App, theme: Dala.Theme.Adaptive.new(
    dark: Dala.Theme.Obsidian,
    light: Dala.Theme.Light
  )
end

Summary

Functions

Create a new adaptive theme with a dark/light pair.

Returns the appropriate theme based on current OS appearance.

Functions

new(opts)

@spec new(keyword()) :: %Dala.Theme.Adaptive.Custom{dark: term(), light: term()}

Create a new adaptive theme with a dark/light pair.

theme(custom)

@spec theme(%Dala.Theme.Adaptive.Custom{dark: term(), light: term()}) ::
  Dala.Theme.t()

Returns the appropriate theme based on current OS appearance.