local function with_alpha(color, alpha) if alpha > 1.0 or alpha < 0.0 then return color end return (color & 0x00ffffff) | (math.floor(alpha * 255.0) << 24) end return { fg = 0xffd3b58d, black = 0xff181819, white = 0xffd3b58d, red = 0xffF92672, blue = 0xff66D9EF, grey = 0xff7f8490, transparent = 0x00000000, bg1 = 0xff072626, bg2 = 0xff1a1b1c, bar = { bg = 0xff072626, border = 0xffFD971F, }, popup = { bg = with_alpha(0xff072626, 0.6), border = 0xffFD971F, }, with_alpha = with_alpha, } -- return { -- fg = 0xff181819, -- black = 0xff181819, -- white = 0xffffffff, -- red = 0xffff0000, -- blue = 0xff0000ff, -- grey = 0xff7f8490, -- transparent = 0x00000000, -- -- bar = { -- bg = 0xffffffff, -- border = 0xff000000, -- }, -- popup = { -- bg = with_alpha(0xffffffff, 0.6), -- border = 0xff000000, -- }, -- -- with_alpha = with_alpha, -- }