Skip to content

Commit ceb3836

Browse files
A-Lamiamehalter
authored andcommitted
feat(base): rework logic for float highlight family
1 parent 0e1833b commit ceb3836

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

lua/astrotheme/groups/base.lua

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,34 @@ local function callback(opts)
1818
FloatTitle = {
1919
fg = (opts.title_invert and C.ui.tool) or C.ui.title,
2020
bg = (opts.title_invert and C.ui.title)
21+
or (opts.inactive and C.ui.float)
22+
or (opts.transparent and opts.float and C.ui.base)
2123
or (opts.float and C.ui.float)
2224
or (opts.transparent and C.none)
2325
or C.ui.base,
2426
blend = vim.o.winblend or 0,
2527
bold = true,
2628
},
2729
FloatBorder = {
28-
fg = (opts.border and opts.float and C.ui.border) or (opts.float and C.ui.float) or C.ui.base,
29-
bg = (opts.float and C.ui.float) or (opts.transparent and C.none) or C.ui.base,
30+
fg = (opts.border and opts.float and C.ui.border)
31+
or (opts.transparent and opts.float and C.ui.base)
32+
or (opts.float and C.ui.float)
33+
or C.ui.base,
34+
bg = (opts.inactive and C.ui.float)
35+
or (opts.transparent and opts.float and C.ui.base)
36+
or (opts.float and C.ui.float)
37+
or (opts.transparent and C.none)
38+
or C.ui.base,
3039
blend = vim.o.winblend or 0,
3140
},
3241
NormalFloat = {
3342
fg = C.ui.text,
34-
bg = (opts.float and C.ui.float) or (opts.transparent and C.none) or C.ui.base,
43+
bg = (opts.inactive and C.ui.float)
44+
or (opts.transparent and opts.float and C.ui.base)
45+
or (opts.float and C.ui.float)
46+
or (opts.transparent and C.none)
47+
or C.ui.base,
48+
blend = vim.o.winblend or 0,
3549
},
3650

3751
--------------------

0 commit comments

Comments
 (0)