Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
olimorris committed Jan 21, 2024
2 parents db6c942 + edfc793 commit 98a2086
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ require("onedarkpro").setup({
cursorline = false, -- Use cursorline highlighting?
transparency = false, -- Use a transparent background?
terminal_colors = true, -- Use the theme's colors for Neovim's :terminal?
lualine_transparency = true, -- Center bar transparency?
highlight_inactive_windows = false, -- When the window is out of focus, change the normal background?
}
})
Expand Down
4 changes: 2 additions & 2 deletions lua/lualine/themes/onedark.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local onedarkpro = {}
onedarkpro.normal = {
a = { bg = colors.green, fg = colors.bg },
b = { bg = colors.fg_gutter, fg = colors.green },
c = { bg = colors.bg_statusline, fg = colors.fg },
c = { bg = config.options.lualine_transparency and colors.none or colors.bg_statusline, fg = colors.fg },
}

onedarkpro.insert = {
Expand All @@ -33,7 +33,7 @@ local inactive_bg = config.options.highlight_inactive_windows and colors.color_c
onedarkpro.inactive = {
a = { bg = inactive_bg, fg = colors.blue },
b = { bg = inactive_bg, fg = colors.fg_gutter_inactive, gui = "bold" },
c = { bg = inactive_bg, fg = colors.fg_gutter_inactive },
c = { bg = config.options.lualine_transparency and colors.none or inactive_bg, fg = colors.fg_gutter_inactive },
}

return onedarkpro
4 changes: 2 additions & 2 deletions lua/lualine/themes/onedark_dark.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local onedarkpro = {}
onedarkpro.normal = {
a = { bg = colors.green, fg = colors.bg },
b = { bg = colors.fg_gutter, fg = colors.green },
c = { bg = colors.bg_statusline, fg = colors.fg },
c = { bg = config.options.lualine_transparency and colors.none or colors.bg_statusline, fg = colors.fg },
}

onedarkpro.insert = {
Expand All @@ -33,7 +33,7 @@ local inactive_bg = config.options.highlight_inactive_windows and colors.color_c
onedarkpro.inactive = {
a = { bg = inactive_bg, fg = colors.blue },
b = { bg = inactive_bg, fg = colors.fg_gutter_inactive, gui = "bold" },
c = { bg = inactive_bg, fg = colors.fg_gutter_inactive },
c = { bg = config.options.lualine_transparency and colors.none or inactive_bg, fg = colors.fg_gutter_inactive },
}

return onedarkpro
4 changes: 2 additions & 2 deletions lua/lualine/themes/onedark_vivid.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local onedarkpro = {}
onedarkpro.normal = {
a = { bg = colors.green, fg = colors.bg },
b = { bg = colors.fg_gutter, fg = colors.green },
c = { bg = colors.bg_statusline, fg = colors.fg },
c = { bg = config.options.lualine_transparency and colors.none or colors.bg_statusline, fg = colors.fg },
}

onedarkpro.insert = {
Expand All @@ -33,7 +33,7 @@ local inactive_bg = config.options.highlight_inactive_windows and colors.color_c
onedarkpro.inactive = {
a = { bg = inactive_bg, fg = colors.blue },
b = { bg = inactive_bg, fg = colors.fg_gutter_inactive, gui = "bold" },
c = { bg = inactive_bg, fg = colors.fg_gutter_inactive },
c = { bg = config.options.lualine_transparency and colors.none or inactive_bg, fg = colors.fg_gutter_inactive },
}

return onedarkpro
4 changes: 2 additions & 2 deletions lua/lualine/themes/onelight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local onedarkpro = {}
onedarkpro.normal = {
a = { bg = colors.green, fg = colors.bg },
b = { bg = colors.fg_gutter, fg = colors.green },
c = { bg = colors.bg_statusline, fg = colors.fg },
c = { bg = config.options.lualine_transparency and colors.none or colors.bg_statusline, fg = colors.fg },
}

onedarkpro.insert = {
Expand All @@ -33,7 +33,7 @@ local inactive_bg = config.options.highlight_inactive_windows and colors.color_c
onedarkpro.inactive = {
a = { bg = inactive_bg, fg = colors.blue },
b = { bg = inactive_bg, fg = colors.fg_gutter_inactive, gui = "bold" },
c = { bg = inactive_bg, fg = colors.fg_gutter_inactive },
c = { bg = config.options.lualine_transparency and colors.none or inactive_bg, fg = colors.fg_gutter_inactive },
}

return onedarkpro
1 change: 1 addition & 0 deletions lua/onedarkpro/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ local defaults = {
cursorline = false, -- Use cursorline highlighting?
transparency = false, -- Use a transparent background?
terminal_colors = true, -- Use the theme's colors for Neovim's :terminal?
lualine_transparency = true, -- Center bar transparency?
highlight_inactive_windows = false, -- When the window is out of focus, change the normal background?
},
}
Expand Down

0 comments on commit 98a2086

Please sign in to comment.