Skip to content

Full transparent lualine #210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 19 additions & 9 deletions lua/lualine/themes/onedark.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,29 @@ local colors = {

local one_dark = {
inactive = {
a = {fg = colors.gray, bg = colors.bg, gui = 'bold'},
b = {fg = colors.gray, bg = colors.bg},
a = {fg = cfg.lualine.transparent and colors.grey or colors.bg, bg = cfg.lualine.transparent and c.none or colors.bg, gui = 'bold'},
b = {fg = colors.gray, bg = cfg.lualine.transparent and c.none or colors.bg},
c = {fg = colors.gray, bg = cfg.lualine.transparent and c.none or c.bg1},
},
normal = {
a = {fg = colors.bg, bg = colors.green, gui = 'bold'},
b = {fg = colors.fg, bg = c.bg3},
a = {fg = cfg.lualine.transparent and colors.green or colors.bg, bg = cfg.lualine.transparent and c.none or colors.green, gui = 'bold'},
b = {fg = colors.fg, bg = cfg.lualine.transparent and c.none or c.bg3},
c = {fg = colors.fg, bg = cfg.lualine.transparent and c.none or c.bg1},
},
visual = {a = {fg = colors.bg, bg = colors.purple, gui = 'bold'}},
replace = {a = {fg = colors.bg, bg = colors.red, gui = 'bold'}},
insert = {a = {fg = colors.bg, bg = colors.blue, gui = 'bold'}},
command = {a = {fg = colors.bg, bg = colors.yellow, gui = 'bold'}},
terminal = {a = {fg = colors.bg, bg = colors.cyan, gui = 'bold'}},
visual = {
a = {fg = cfg.lualine.transparent and colors.purple or colors.bg, bg = cfg.lualine.transparent and c.none or colors.purple, gui = 'bold'},
},
replace = {
a = {fg = cfg.lualine.transparent and colors.red or colors.bg, bg = cfg.lualine.transparent and c.none or colors.red, gui = 'bold'},
},
insert = {
a = {fg = cfg.lualine.transparent and colors.blue or colors.bg, bg = cfg.lualine.transparent and c.none or colors.blue, gui = 'bold'},
},
command = {
a = {fg = cfg.lualine.transparent and colors.yellow or colors.bg, bg = cfg.lualine.transparent and c.none or colors.yellow, gui = 'bold'},
},
terminal = {
a = {fg = cfg.lualine.transparent and colors.cyan or colors.bg, bg = cfg.lualine.transparent and c.none or colors.cyan, gui = 'bold'},
},
}
return one_dark;
39 changes: 34 additions & 5 deletions lua/onedark/highlights.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ hl.common = {
Terminal = {fg = c.fg, bg = cfg.transparent and c.none or c.bg0},
EndOfBuffer = {fg = cfg.ending_tildes and c.bg2 or c.bg0, bg = cfg.transparent and c.none or c.bg0},
FoldColumn = {fg = c.fg, bg = cfg.transparent and c.none or c.bg1},
Folded = {fg = c.fg, bg = cfg.transparent and c.none or c.bg1},
Folded = {fg = c.grey, bg = cfg.transparent and c.none or c.bg1},
SignColumn = {fg = c.fg, bg = cfg.transparent and c.none or c.bg0},
WinBar = {fg = c.fg, bg = cfg.transparent and c.none or c.bg0},
WinBarNC = {fg = c.fg, bg = cfg.transparent and c.none or c.bg0},
ToolbarLine = {fg = c.fg},
Cursor = {fmt = "reverse"},
vCursor = {fmt = "reverse"},
Expand Down Expand Up @@ -96,8 +98,8 @@ hl.common = {
debugPC = {fg = c.bg0, bg = c.green},
debugBreakpoint = {fg = c.bg0, bg = c.red},
ToolbarButton = {fg = c.bg0, bg = c.bg_blue},
FloatBorder = {fg = c.grey, bg = c.bg1},
NormalFloat = {fg = c.fg, bg = c.bg1},
FloatBorder = colors.Cyan,
NormalFloat = {fg = c.fg, bg = cfg.transparent and c.none or c.bg0},
}

hl.syntax = {
Expand Down Expand Up @@ -399,6 +401,11 @@ hl.plugins.ale = {
ALEWarningSign = hl.plugins.lsp.DiagnosticWarn,
}

hl.plugins.lazygit = {
LazyGitBorder = colors.Cyan,
LazyGitFloat = {fg = c.fg, bg = cfg.transparent and c.none or c.bg0},
}

hl.plugins.barbar = {
BufferCurrent = { fmt = "bold" },
BufferCurrentMod = { fg = c.orange, fmt = "bold,italic" },
Expand All @@ -411,6 +418,28 @@ hl.plugins.barbar = {
BufferVisibleTarget = { fg = c.light_grey, bg = c.bg0 },
}

hl.plugins.noice = {
NoiceCmdlinePopupBorder = colors.Cyan,
NoiceCmdlinePopupBorderLua = colors.Cyan,
NoiceCmdlinePopupBorderHelp = colors.Cyan,
NoiceCmdlinePopupBorderSearch = colors.Cyan,
NoiceCmdlinePopupBorderInput = colors.Cyan,
NoiceCmdlinePopupBorderCmdline = colors.Cyan,
NoiceCmdlinePopupBorderFilter = colors.Cyan,
NoiceCmdlinePopupBorderIncRename = colors.Cyan,
NoiceCmdlinePopupBorderCalculator = colors.Cyan,

NoiceCmdlinePopupTitle = colors.Red,
NoiceCmdlinePopupTitleLua = colors.Red,
NoiceCmdlinePopupTitleHelp = colors.Red,
NoiceCmdlinePopupTitleSearch = colors.Red,
NoiceCmdlinePopupTitleInput = colors.Red,
NoiceCmdlinePopupTitleCmdline = colors.Red,
NoiceCmdlinePopupTitleFilter = colors.Red,
NoiceCmdlinePopupTitleIncRename = colors.Red,
NoiceCmdlinePopupTitleCalculator = colors.Red,
}

hl.plugins.cmp = {
CmpItemAbbr = colors.Fg,
CmpItemAbbrDeprecated = { fg = c.light_grey, fmt = "strikethrough" },
Expand Down Expand Up @@ -553,8 +582,8 @@ hl.plugins.telescope = {
TelescopePreviewBorder = colors.Cyan,
TelescopeMatching = { fg = c.orange, fmt = "bold" },
TelescopePromptPrefix = colors.Green,
TelescopeSelection = { bg =c.bg2 },
TelescopeSelectionCaret = colors.Yellow
TelescopeSelection = {fg = c.bg0, bg = c.bg_blue},
TelescopeSelectionCaret = {fg = c.bg0, bg = c.bg_blue},
}

hl.plugins.snacks = {
Expand Down