From 48a9c09369838d37ee4ce2169ee931f0081cc5b9 Mon Sep 17 00:00:00 2001 From: Niverton Date: Sat, 16 Mar 2024 12:33:25 +0100 Subject: [PATCH] feat(core): better popup background --- lua/astrobox/theme.lua | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/lua/astrobox/theme.lua b/lua/astrobox/theme.lua index 0f6f53c..0ad5fff 100644 --- a/lua/astrobox/theme.lua +++ b/lua/astrobox/theme.lua @@ -16,6 +16,7 @@ function M.make_theme(P, C) conceal = { fg = P.bg_gradiant[3], bg = P.harder_bg }, active = { fg = P.none, bg = P.softer_bg }, } + T.error = { fg = "#000000", bg = "#FF00FF" } T.colors = { accent = P.blue, accent2 = P.green, @@ -66,17 +67,13 @@ function M.make_theme(P, C) separator = { fg = P.fg_gradiant[4], bg = P.none }, } T.popup = { - normal = { - fg = P.fg, - bg = P.bg_gradiant[1], - }, + normal = T.normal, conceal = T.conceal, inactive = { fg = P.fg_gradiant[4], bg = P.bg_gradiant[2], }, - -- TODO Check if working good - border = C.float_no_borders and { fg = P.none, bg = P.none } or T.windows.separator, + border = T.windows.separator, title = { fg = T.colors.accent2, bg = P.none, bold = true }, -- TODO need to switch to normal.bg? title2 = { fg = T.colors.accent3, bg = P.none, bold = true }, -- TODO need to switch to normal.bg? } @@ -99,7 +96,7 @@ function M.make_theme(P, C) bold = true, }, inactive = { - fg = P.fg_gradiant[1], + fg = P.fg_gradiant[2], bg = P.bg, }, } @@ -113,7 +110,7 @@ function M.make_theme(P, C) bg = P.bg, }, inactive = { - fg = P.bg_gradiant[3], + fg = P.fg_gradiant[4], bg = P.harder_bg, }, } @@ -135,8 +132,6 @@ function M.make_theme(P, C) P.aqua, P.fg, } - - T.error = { fg = "#000000", bg = "#FF00FF" } return T end