From c02b5ea65e1218fc2fabe3ae4c59bb5713b51454 Mon Sep 17 00:00:00 2001 From: tiyn Date: Tue, 15 Aug 2023 04:34:45 +0200 Subject: [PATCH] added number and bold colors --- lua/tccs/colors.lua | 74 +++++++++++++++++++++++---------------------- lua/tccs/theme.lua | 6 ++-- 2 files changed, 41 insertions(+), 39 deletions(-) diff --git a/lua/tccs/colors.lua b/lua/tccs/colors.lua index 578c0e6..9b03e2c 100644 --- a/lua/tccs/colors.lua +++ b/lua/tccs/colors.lua @@ -4,48 +4,50 @@ colors.get_colors = function() mycolors = { -- ui - bg = "#191919", - bg_alt = "#0D1016", - fg = "#D4D4D4", - fg_alt = "#CE9178", - accent = "#C586C0", - accent_alt = "#608B4E", - ui = "#4D5566", - color_column = "#772222", - popup = "#272727", - border = "#242A35", - border_alt = "#393F4D", + bg = "#191919", + bg_alt = "#0D1016", + fg = "#D4D4D4", + fg_alt = "#CE9178", + accent = "#C586C0", + accent_alt = "#608B4E", + ui = "#4D5566", + color_column = "#772222", + popup = "#272727", + border = "#242A35", + border_alt = "#393F4D", -- syntax - tag = "#9CDCFE", - func = "#DCDCAA", - entity = "#9CDCFE", - string = "#CE9178", - regexp = "#D16969", - markup = "#C586C0", - keyword = "#C586C0", - special = "#D7BA7D", - comment = "#608B4E", - constant = "#4FC1FE", - operator = "#C586C0", + tag = "#9CDCFE", + func = "#DCDCAA", + entity = "#9CDCFE", + string = "#CE9178", + regexp = "#D16969", + markup = "#C586C0", + keyword = "#C586C0", + special = "#D7BA7D", + comment = "#608B4E", + constant = "#4FC1FE", + bold = "#569CD6", + operator = "#C586C0", + number = "#B5CEA8", -- extended color palette - fg_idle = "#FFD602", + fg_idle = "#FFD602", -- git - added = "#6A9955", - modified = "#4FC1FE", - removed = "#D16969", + added = "#6A9955", + modified = "#4FC1FE", + removed = "#D16969", -- lsp - error = "#FB0101", - warning = "#FFD602", - hint = "#608B4E", + error = "#FB0101", + warning = "#FFD602", + hint = "#608B4E", -- line - line_fg = "#D4D4D4", - line_bg = "#272727", + line_fg = "#D4D4D4", + line_bg = "#272727", line_bg_alt = "#0D1016", - line_visual = "#C586C0", - line_normal = "#6A9955", - line_insert = "#4FC1Fe", - line_replace = "#D16969", - line_contrast = "#CE9178", + line_visual = "#C586C0", + line_normal = "#6A9955", + line_insert = "#4FC1Fe", + line_replace = "#D16969", + line_contrast = "#CE9178", } -- Extend the colors with overrides passed by `color_overrides` diff --git a/lua/tccs/theme.lua b/lua/tccs/theme.lua index 089d947..b32f2ba 100644 --- a/lua/tccs/theme.lua +++ b/lua/tccs/theme.lua @@ -71,6 +71,7 @@ theme.set_highlights = function(opts) hl(0, 'Ignore', {}) hl(0, 'Error', { fg = c.fg, bg = c.error, undercurl = true, sp = c.error }) hl(0, 'Todo', { fg = c.markup }) + hl(0, 'Number', { fg = c.number }) -- quickfix window highlighting hl(0, 'qfLineNr', { fg = c.accent }) @@ -202,6 +203,8 @@ theme.set_highlights = function(opts) hl(0, '@constant.builtin', { fg = c.constant }) hl(0, '@string.regex', { fg = c.regexp }) hl(0, '@function.macro', { fg = c.func }) + hl(0, '@text.title', { fg = c.bold, bold = true }) + hl(0, '@text.strong', { fg = c.bold, bold = true }) -- fugitive hl(0, 'fugitiveUntrackedHeading', { fg = c.accent }) @@ -290,7 +293,6 @@ return theme --hl(0, 'PmenuThumb', { fg = 'NONE', bg = c.vscPopupFront }) --hl(0, 'VisualNOS', { bg = c.vscSelection }) --hl(0, 'Character', { fg = c.vscOrange, bg = 'NONE' }) ---hl(0, 'Number', { fg = c.vscLightGreen, bg = 'NONE' }) --hl(0, 'Boolean', { fg = c.vscBlue, bg = 'NONE' }) --hl(0, 'Float', { fg = c.vscLightGreen, bg = 'NONE' }) --hl(0, 'Conditional', { fg = c.vscPink, bg = 'NONE' }) @@ -350,12 +352,10 @@ return theme --hl(0, '@tag.delimiter', { fg = c.vscGray, bg = 'NONE' }) --hl(0, '@tag.attribute', { fg = c.vscLightBlue, bg = 'NONE' }) -- ---hl(0, '@text.title', { fg = isDark and c.vscBlue or c.vscYellowOrange, bold = true }) --hl(0, '@text.literal', { fg = c.fg, bg = 'NONE' }) --hl(0, '@text.literal.markdown', { fg = c.vscOrange, bg = 'NONE' }) --hl(0, '@text.literal.markdown_inline', { fg = c.vscOrange, bg = 'NONE' }) --hl(0, '@text.emphasis', { fg = c.fg, bg = 'NONE', italic = true }) ---hl(0, '@text.strong', { fg = isDark and c.vscBlue or c.vscViolet, bold = true }) --hl(0, '@text.uri', { fg = c.fg, bg = 'NONE' }) --hl(0, '@textReference', { fg = isDark and c.vscOrange or c.vscYellowOrange }) --hl(0, '@punctuation.delimiter', { fg = c.fg, bg = 'NONE' })