# ~/.config/nvim/lua/lualine/themes/zshell.lua
-- Generated by zshell. Lualine theme matching the zshell colorscheme.

local is_light = "{{mode}}" == "light"
local function pick(light, dark)
  return is_light and light or dark
end

local c = {
  bg = "{{m3surface}}",
  bg_alt = "{{m3surfaceContainerLow}}",
  bg_mid = pick("{{m3surfaceContainerHigh}}", "{{m3surfaceContainer}}"),
  fg = "{{m3onSurface}}",
  fg_muted = "{{m3onSurfaceVariant}}",
  fg_strong = pick("#15161A", "#F4F4F8"),

  normal = "{{m3primaryContainer}}",
  insert = "{{m3secondaryContainer}}",
  visual = "{{m3tertiaryContainer}}",
  replace = "{{m3errorContainer}}",
  command = pick("{{term3}}", "{{term4}}"),
  inactive = "{{m3surfaceContainerLow}}",

  normal_fg = pick("#15161A", "#F4F4F8"),
  insert_fg = pick("#15161A", "#F4F4F8"),
  visual_fg = pick("#15161A", "#F4F4F8"),
  replace_fg = pick("#15161A", "#F4F4F8"),
  command_fg = pick("#15161A", "#F4F4F8"),
}

return {
  normal = {
    a = { fg = c.normal_fg, bg = c.normal, gui = "bold" },
    b = { fg = c.fg_strong, bg = c.bg_mid },
    c = { fg = c.fg, bg = c.bg_alt },
  },
  insert = {
    a = { fg = c.insert_fg, bg = c.insert, gui = "bold" },
    b = { fg = c.fg_strong, bg = c.bg_mid },
    c = { fg = c.fg, bg = c.bg_alt },
  },
  visual = {
    a = { fg = c.visual_fg, bg = c.visual, gui = "bold" },
    b = { fg = c.fg_strong, bg = c.bg_mid },
    c = { fg = c.fg, bg = c.bg_alt },
  },
  replace = {
    a = { fg = c.replace_fg, bg = c.replace, gui = "bold" },
    b = { fg = c.fg_strong, bg = c.bg_mid },
    c = { fg = c.fg, bg = c.bg_alt },
  },
  command = {
    a = { fg = c.command_fg, bg = c.command, gui = "bold" },
    b = { fg = c.fg_strong, bg = c.bg_mid },
    c = { fg = c.fg, bg = c.bg_alt },
  },
  inactive = {
    a = { fg = c.fg_muted, bg = c.inactive, gui = "bold" },
    b = { fg = c.fg_muted, bg = c.inactive },
    c = { fg = c.fg_muted, bg = c.bg },
  },
}
