Skip to content
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

Default statusline color #11

Closed
kristijanhusak opened this issue Jul 9, 2021 · 4 comments · Fixed by #17
Closed

Default statusline color #11

kristijanhusak opened this issue Jul 9, 2021 · 4 comments · Fixed by #17
Labels
enhancement New feature or request todo
Projects

Comments

@kristijanhusak
Copy link

Hi,

thanks for the colorscheme, looks great.

Would you consider changing the default statusline background to something that has a bit less contrast, or providing an option to change it?

This is how it looks now:
statusline_default

I have custom statusline without any plugins, and currently my workaround is this:

vim.cmd[[augroup vimrc_colorscheme]]
  vim.cmd[[autocmd ColorScheme * lua kris.colorscheme.setup_github()]]
vim.cmd[[augroup END]]

function _G.kris.colorscheme.setup_github()
  local colors = require('github-theme.colors').setup()
  vim.cmd(string.format('hi StatusLine guibg=%s', colors.white))
end

require("github-theme").setup({
  themeStyle = 'light',
})

And now it looks like this:
statusline_updated

Also, i'm not able to override dark color this way, for which I'll open up a separate issue.

@ful1e5
Copy link
Member

ful1e5 commented Jul 10, 2021

Now you override the statusline background color with bg_statusline.

require("github-theme").setup({
  colors = {bg_statusline = "#000000"}    -- set statusline background to black
})

Workboard automation moved this from In progress to Done Jul 10, 2021
ful1e5 added a commit that referenced this issue Jul 10, 2021
fixed #11: Added option to customize statusline background with `colors.bg_statusline`
@kristijanhusak
Copy link
Author

Thanks!

@xuxinx
Copy link

xuxinx commented Nov 23, 2021

Then the color of statusline fonts should be customizable too

ful1e5 added a commit to ful1e5/github-nvim-theme that referenced this issue Nov 24, 2021
…re customizable ( related to projekt0n#11 )

by override these variables:
- fg_statusline
- bg_nc_statusline
@ful1e5
Copy link
Member

ful1e5 commented Nov 24, 2021

@xuxinx

require("github-theme").setup({
  colors = {
    bg_statusline = "#000000", -- set statusline background to black
    fg_statusline = "#ffffff" -- set statusline foreground to white
  }
})

ref: af158c9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request todo
Projects
3 participants