local get_theme_tb = require("base46").get_theme_tb
local colors = get_theme_tb "base_30"
local theme_type = get_theme_tb "type"
local tune_color = require("base46.colors").change_hex_lightness

return {
  NvimTreeEmptyFolderName = { fg = colors.folder_bg },
  NvimTreeEndOfBuffer = { fg = colors.darker_black },
  NvimTreeFolderIcon = { fg = colors.folder_bg },
  NvimTreeFolderName = { fg = colors.folder_bg },
  NvimTreeFolderArrowOpen = { fg = colors.folder_bg },
  NvimTreeFolderArrowClosed = { fg = colors.grey_fg },
  NvimTreeGitDirty = { fg = colors.red },
  NvimTreeIndentMarker = { fg = (theme_type == "dark" and tune_color(colors.line, -2) or colors.one_bg2) },
  NvimTreeNormal = { bg = colors.darker_black },
  NvimTreeNormalNC = { bg = colors.darker_black },
  NvimTreeOpenedFolderName = { fg = colors.folder_bg },
  NvimTreeGitIgnored = { fg = colors.light_grey },
  NvimTreeDiagnosticErrorFileHL = { link = "DiagnosticError" },
  NvimTreeDiagnosticErrorFolderHL = { link = "DiagnosticError" },
  NvimTreeDiagnosticInfoFileHL =  { link = "DiagnosticNormal" },
  NvimTreeDiagnosticInfoFolderHL =  { link = "DiagnosticNormal" },
  NvimTreeDiagnosticWarnFileHL = { link = "DiagnosticWarn" },
  NvimTreeDiagnosticWarnFolderHL = { link = "DiagnosticWarn" },
  NvimTreeDiagnosticHintFileHL = { link = "DiagnosticHint" },
  NvimTreeDiagnosticHintFolderHL = { link = "DiagnosticHint" },

  NvimTreeWinSeparator = {
    fg = colors.darker_black,
    bg = colors.darker_black,
  },

  NvimTreeWindowPicker = {
    fg = colors.red,
    bg = colors.black2,
  },

  NvimTreeCursorLine = {
    bg = colors.black,
  },

  NvimTreeGitNew = {
    fg = colors.yellow,
  },

  NvimTreeGitDeleted = {
    fg = colors.red,
  },

  NvimTreeSpecialFile = {
    fg = colors.yellow,
    bold = true,
  },

  NvimTreeRootFolder = {
    fg = colors.red,
    bold = true,
  },
}
