@@ -2,21 +2,26 @@ local config = require('rose-pine.config')
2
2
local p = require (' rose-pine.palette' )
3
3
4
4
-- TODO: Refactor `maybe` logic
5
- local maybe_base = p .base
6
- local maybe_surface = p .surface
5
+ local maybe_inactive_background = p .none
6
+ local maybe_background = p .base
7
+ local maybe_float_background = p .surface
7
8
local maybe_italic = ' italic'
8
9
local maybe_bold_vert_split = { fg = p .overlay }
9
10
10
11
if config .bold_vert_split then
11
12
maybe_bold_vert_split = { fg = p .surface , bg = p .surface }
12
13
end
13
14
15
+ if config .inactive_background then
16
+ maybe_inactive_background = p .surface
17
+ end
18
+
14
19
if config .no_background then
15
- maybe_base = p .none
20
+ maybe_background = p .none
16
21
end
17
22
18
23
if config .no_float_background then
19
- maybe_surface = p .none
24
+ maybe_float_background = p .none
20
25
end
21
26
22
27
if config .no_italics then
@@ -52,9 +57,10 @@ local theme = {
52
57
ModeMsg = { fg = p .subtle },
53
58
MoreMsg = { fg = p .iris },
54
59
NonText = { fg = p .inactive },
55
- Normal = { fg = p .text , bg = maybe_base },
56
- NormalFloat = { fg = p .text , bg = maybe_surface },
57
- Pmenu = { fg = p .subtle , bg = maybe_surface },
60
+ Normal = { fg = p .text , bg = maybe_background },
61
+ NormalNC = { fg = p .text , bg = maybe_inactive_background },
62
+ NormalFloat = { fg = p .text , bg = maybe_float_background },
63
+ Pmenu = { fg = p .subtle , bg = maybe_float_background },
58
64
PmenuSbar = { bg = p .overlay },
59
65
PmenuSel = { fg = p .text , bg = p .overlay },
60
66
PmenuThumb = { bg = p .inactive },
@@ -66,7 +72,7 @@ local theme = {
66
72
SpellCap = { style = ' undercurl' , sp = p .subtle },
67
73
SpellLocal = { style = ' undercurl' , sp = p .subtle },
68
74
SpellRare = { style = ' undercurl' , sp = p .subtle },
69
- SignColumn = { fg = p .text , bg = maybe_base },
75
+ SignColumn = { fg = p .text , bg = maybe_background },
70
76
StatusLine = { fg = p .text , bg = p .surface },
71
77
StatusLineNC = { fg = p .subtle , bg = p .surface },
72
78
-- StatusLineTerm = {},
0 commit comments