-- Liqube Dark Code for Lx

-- This file is part of Lx, created by Liqube <www.liqube.com>
-- Copyright Liqube Audio. All rights reserved.
-- Lx Interim License. See LICENSE for details.

local style = require("core.style")
local common = require("core.common")

-- Root empty-view colors
style.root = {
	fg = common.color("#545e70"),
	bg = common.color("#161920"),
}
style.background = common.color("#161920")
style.background2 = common.color("#1d2025")
style.background3 = common.color("#21252b")
style.text = common.color("#abb2bf")
style.prompt = common.color("#85aaec")
--style.input = style.text
style.cursor = common.color("#85aaec")
style.cursor2 = common.color("#ecad85")
style.accent = common.color("#ddddff")
style.link = common.color("#9f9faf") -- Keep links clear without using the bright general accent
style.link_hover = common.color("#ffffff") -- Make only the link under the pointer stand out
style.focus = common.color("#85aaec") -- Keep focused panel borders distinct from general accents
style.dim = common.color("#545e70")
style.divider = common.color("#242223")
style.outline = common.color("#242223")
style.selection = common.color("#2b3f63")
-- Match highlight colors
style.candidate = common.color("#eccd1a")

style.match = {
	fg = common.color("#000000"),
	bg = common.color("#eccd1a"),
}
-- Whole-word highlight color
style.word_highlight = style.candidate
style.line_number = common.color("#323641")
style.line_number2 = common.color("#596275")
style.scrollbar = common.color("#3d3f43")
style.scrollbar2 = common.color("#595b5f")
style.guide = common.color("#1c1f25") -- indentguide
style.guide_active = common.color("#46565c") -- indentguide
-- Header bar colors
style.headerbar_background = common.color("#11151b")
style.headerbar_text = common.color("#f7c95c")
-- Gridlock changed-line marker color
style.gridlock_changed_line = common.color("#f7c95c")

style.minimap_line = style.darken(style.dim, 0.25)
style.minimap_background = style.background
style.minimap_viewport = style.transparent(style.minimap_line, 0.3)

style.line_highlight = style.transparent(style.minimap_viewport, 0.18) --{ common.color "#1c1f25" }

style.syntax["normal"] = common.color("#abb2bf")
style.syntax["symbol"] = common.color("#71a9d7")
style.syntax["comment"] = common.color("#5c6370")
style.syntax["comment2"] = common.color("#3c7380") -- secondary comment
style.syntax["keyword"] = common.color("#98c875")
style.syntax["keyword2"] = common.color("#ffffff")
style.syntax["key"] = style.syntax["normal"]
style.syntax["value"] = common.color("#ffffff")
style.syntax["object"] = common.color("#ffffff")
style.syntax["array"] = common.color("#ffffff")
style.syntax["number"] = common.color("#ffffff")
style.syntax["hex"] = common.color("#ffe688")
style.syntax["literal"] = common.color("#aa7dff")
style.syntax["string"] = common.color("#ea5964")
style.syntax["operator"] = common.color("#758095")
style.syntax["function"] = common.color("#ffffff")
style.syntax["variable"] = common.color("#abd2bf")
style.syntax["constant"] = common.color("#a2ffff")
style.syntax["unit"] = common.color("#abb2bf")
style.syntax["control"] = common.color("#ffd48b")
style.syntax["exception"] = common.color("#ffd48b")
style.syntax["date"] = common.color("#b4e4fc")
style.syntax["time"] = common.color("#b4e4fc")

style.syntax["heading"] = common.color("#98c875")
style.syntax["quote"] = common.color("#aa80ff")
style.syntax["italic"] = style.normal
style.syntax["bold"] = common.color("#FFFFFF")
style.syntax["bold_italic"] = common.color("#FFFFCC")

-- Keep fenced code rows subtly separate from the surrounding document
style.syntax["code"] = { bg = style.darken(style.background, 0.20) }

-- Dedicated color for meta syntax elements (tags/directives/markers)
style.syntax["meta"] = {
	fg = common.color("#ffffff"),
	bg = common.color("#000000"),
}
style.syntax["label"] = common.color("#FFA94D")
style.syntax["separator"] = style.syntax["normal"]
style.syntax["preprocessor"] = common.color("#98c875") -- thinking ahead

-- Error style (red)
style.error = common.color("#ff0000")
