From aa5717f00fd14430c80939a68d7107c26de6e554 Mon Sep 17 00:00:00 2001 From: Mohammad Reza Karimi Date: Tue, 20 Jan 2026 15:55:27 -0500 Subject: first commit --- colors/myquiet.lua | 133 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 colors/myquiet.lua (limited to 'colors/myquiet.lua') diff --git a/colors/myquiet.lua b/colors/myquiet.lua new file mode 100644 index 0000000..9604e29 --- /dev/null +++ b/colors/myquiet.lua @@ -0,0 +1,133 @@ +local minicol = require("mini.colors") + +local cs = minicol.get_colorscheme("mytorte") + +vim.print(cs:get_palette({ threshold = 0 })) + + +-- local replace_color = function(from, to) +-- return cs:color_modify(function(hex, _) +-- if hex == from then return to end +-- return hex +-- end) +-- end +-- +-- local make_normal = function(grps) +-- for _, grp in ipairs(grps) do +-- cs.groups[grp].link = nil +-- cs.groups[grp].fg = cs.groups.Normal.fg +-- end +-- end +-- +-- cs = cs:chan_multiply("saturation", .8, { filter = "fg" }) +-- :add_transparency({ general = true, statuscolumn = true }) +-- +-- cs.groups.TabLineFill.reverse = false +-- cs.groups.StatusLine.bold = false +-- cs.groups.CursorLineNr.bg = nil +-- cs.groups.CursorLine = { } +-- cs.groups.CursorLineSign.bg = nil +-- cs.groups.StatusLine.bg = "#364e81" +-- +-- local nice_yellow = cs.groups.Statement.fg +-- +-- make_normal({ "Identifier", "Statement" }) +-- +-- for _, grp in ipairs({ "Conditional", "Repeat", "Label", "Operator", "Keyword", "Exception" }) do +-- cs.groups[grp].link = nil +-- cs.groups[grp].fg = nice_yellow +-- end +-- +-- +-- cs.groups.CurSearch = { fg = "#000000", bg = "#fce094" } +-- cs.groups.IncSearch = { link = "CurSearch" } +-- cs.groups.Search = { fg = "#cccccc", bg = "#6b5300" } +-- +-- -- cs.groups.Cursor = { bg = "#cccccc", fg = "#000000" } +-- +-- -- cs = replace_color("#92f6f5", "#cccccc") +-- -- cs = replace_color("#efa9a8", "#6eb167") +-- -- cs = replace_color("#fdfe83", "#ad7fa8") +-- -- cs = replace_color("#f4aa48", "#729fcf") +-- +-- cs = cs:compress():resolve_links():add_terminal_colors():add_cterm_attributes() +-- +-- cs:apply() +-- cs:write() + +-- local fg_colors = { +-- ["#000000"] = { "WildMenu", "DiffText", "lCursor", "Ignore", "Cursor", "ToolbarButton", "Visual", "PmenuSel", "StatusLineNC", "StatusLineTermNC", "VertSplit", "@markup.heading.1.delimiter.vimdoc", "@markup.heading.2.delimiter.vimdoc", "QuickFixLine" }, +-- ["#0032e4"] = { "EndOfBuffer", "NonText" }, +-- ["#4b92e3"] = { "Changed" }, +-- ["#4dc747"] = { "IncSearch" }, +-- ["#558365"] = { "MoreMsg" }, +-- ["#5af953"] = { "Question" }, +-- ["#5dc759"] = { "Added" }, +-- ["#5f67e3"] = { "SpellCap" }, +-- ["#666666"] = { "Conceal" }, +-- ["#71c4c3"] = { "Folded" }, +-- ["#7f7f7f"] = { "LineNr" }, +-- ["#84f6f5"] = { "SpecialKey", "SpellRare", "FoldColumn", "SignColumn", "Directory" }, +-- ["#84f880"] = { "Type" }, +-- ["#8da3e1"] = { "Underlined", "Comment" }, +-- ["#92f6f5"] = { "Identifier" }, +-- ["#a9e6a8"] = { "DiagnosticOk" }, +-- ["#cccccc"] = { "ColorColumn", "Pmenu", "TabLineSel", "Normal" }, +-- ["#ccedd2"] = { "OkMsg" }, +-- ["#d0d0d0"] = { "MiniHipatternsTodo", "DiagnosticInfo" }, +-- ["#d3d3d3"] = { "MiniHipatternsNote", "DiagnosticHint" }, +-- ["#e5aead"] = { "Constant" }, +-- ["#ec4334"] = { "MiniHipatternsFixme", "Search", "Removed", "WarningMsg", "SpellBad", "NvimInternalError", "DiagnosticError" }, +-- ["#ecad5f"] = { "MiniHipatternsHack", "Special", "DiagnosticWarn" }, +-- ["#f091ef"] = { "PreProc" }, +-- ["#f245f1"] = { "SpellLocal", "PmenuMatch", "PmenuMatchSel", "Title" }, +-- ["#fcfd96"] = { "Statement" }, +-- ["#fcfe72"] = { "Todo", "CursorLineNr" }, +-- ["#ffffff"] = { "Error", "DiffAdd", "DiffChange", "DiffDelete", "StatusLine", "StatusLineTerm", "ErrorMsg", "TabLine" } +-- } +-- local bg_colors = { +-- ["#000000"] = { "FloatShadowThrough", "VisualNOS", "FloatShadow", "ToolbarLine", "Search", "Ignore", "Todo", "TabLineFill", "TabLineSel", "@markup.heading.1.delimiter.vimdoc", "@markup.heading.2.delimiter.vimdoc", "Normal", "IncSearch" }, +-- ["#012fd3"] = { "StatusLine", "StatusLineTerm" }, +-- ["#303030"] = { "PmenuMatch", "Pmenu" }, +-- ["#367b32"] = { "RedrawDebugComposed" }, +-- ["#3a3a3a"] = { "Folded" }, +-- ["#578382"] = { "MatchParen" }, +-- ["#5af953"] = { "Cursor" }, +-- ["#666666"] = { "CursorColumn", "CursorLineNr", "CursorLine" }, +-- ["#727f72"] = { "DiffAdd" }, +-- ["#788592"] = { "DiffChange" }, +-- ["#792920"] = { "ColorColumn" }, +-- ["#7f7f7f"] = { "TabLine" }, +-- ["#a16da0"] = { "DiffDelete" }, +-- ["#a9a9a9"] = { "Visual" }, +-- ["#ba382c"] = { "ErrorMsg" }, +-- ["#bebebe"] = { "PmenuThumb" }, +-- ["#c6c6c6"] = { "DiffText" }, +-- ["#cacc62"] = { "QuickFixLine" }, +-- ["#cccccc"] = { "CursorIM" }, +-- ["#e5e5e5"] = { "lCursor", "ToolbarButton", "StatusLineNC", "StatusLineTermNC", "VertSplit" }, +-- ["#ec4334"] = { "Error", "RedrawDebugRecompose", "NvimInternalError" }, +-- ["#fcfe72"] = { "RedrawDebugClear", "WildMenu", "PmenuMatchSel", "PmenuSel" } +-- } + +local color_to_grp = {} +cs:color_modify(function(hex, data) + if data.attr == "fg" then + if color_to_grp[hex] == nil then + color_to_grp[hex] = {} + end + vim.list_extend(color_to_grp[hex], { data.name }) + end +end) +vim.print(color_to_grp) +-- +-- local color_to_grp = {} +-- cs:color_modify(function(hex, data) +-- if data.attr == "bg" then +-- if color_to_grp[hex] == nil then +-- color_to_grp[hex] = {} +-- end +-- vim.list_extend(color_to_grp[hex], { data.name }) +-- end +-- end) +-- vim.print(color_to_grp) -- cgit v1.2.3-71-gdd5e