2021-09-21 20:24:23 +08:00
|
|
|
local lush = require "lush"
|
2021-10-09 16:26:23 +08:00
|
|
|
local util = require "zenbones.util"
|
|
|
|
|
local hsluv = lush.hsluv
|
2021-09-21 20:24:23 +08:00
|
|
|
|
2021-10-09 16:26:23 +08:00
|
|
|
local base_name = util.bg_to_base_name()
|
2021-10-09 17:30:15 +08:00
|
|
|
local p = require("zenbones.neobones.palette")[base_name]
|
2021-10-09 16:26:23 +08:00
|
|
|
|
2021-09-21 20:24:23 +08:00
|
|
|
-- extend specs using Lush
|
|
|
|
|
if base_name == "zenbones" then
|
2021-10-09 17:55:00 +08:00
|
|
|
local specs = require("zenbones.specs").generate(p, util.resolve_config("zenbones"))
|
2021-10-09 16:26:23 +08:00
|
|
|
return lush.extends({ specs }).with(function()
|
2021-09-21 20:24:23 +08:00
|
|
|
return {
|
2021-10-09 16:26:23 +08:00
|
|
|
helpHyperTextJump { fg = hsluv "#195174" }, -- --link-color
|
2021-09-21 20:24:23 +08:00
|
|
|
helpOption { helpHyperTextJump },
|
|
|
|
|
markdownUrl { helpHyperTextJump },
|
|
|
|
|
}
|
|
|
|
|
end)
|
|
|
|
|
else
|
2021-10-09 17:55:00 +08:00
|
|
|
local specs = require("zenflesh.specs").generate(p, util.resolve_config("zenflesh"))
|
2021-10-09 16:26:23 +08:00
|
|
|
return lush.extends({ specs }).with(function()
|
2021-09-21 20:24:23 +08:00
|
|
|
return {
|
2021-10-09 16:26:23 +08:00
|
|
|
FloatBorder { fg = hsluv "#203f57" }, -- --border-color
|
|
|
|
|
helpHyperTextJump { fg = hsluv "#8ec77e" }, -- --link-color
|
2021-09-21 20:24:23 +08:00
|
|
|
helpOption { helpHyperTextJump },
|
|
|
|
|
markdownUrl { helpHyperTextJump },
|
|
|
|
|
}
|
|
|
|
|
end)
|
|
|
|
|
end
|