-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fix Base16 default dark, Add Base16 default light, terminal, tty #1078
Conversation
Hmm yeah, this was added because we normally always expect a style to be returned, this way if a theme color is missing it'll stand out. Line 122 in 9d59142
Maybe we should only do that in debug builds? |
@archseer maybe it's better to add a "foreground" and "background" keyword similar to the ansi color names, rather than behaving differently depending on type of build. |
This PR does not do this:
However, I was able to implement it here: NNBnh#1 |
Oof, |
Both are unmaintained though. I wonder if we could just send a raw query |
@archseer a robust terminfo parser could be useful for further features though. I've been eyeing curly underline, double underline with separate colors from the text, like kakoune just added (I requested it there long ago). We would need to feature detect that with terminal. |
Yeah I was thinking we could copy over |
Hm, I'm not sure what to actually use to check for true color support? |
Let's check the We will probably need to add a config option |
OK, I've done that, and with the addition of the false negative override, I've also made it so that it will reject |
@NNBnh can you merge Omnikar's PR? |
And please change Line 122 in 9d59142
to be |
Oh also note that |
Yeah, I'm thinking or creating another theme After that i will figure it out how to merge with Omnikar's PR (I'm not pro enough with git and github). |
All Base16 themes have problem on Helix 0.5: all line-number have an one character width gap where it just show the editor's background and not the line-number's background. This gap it's not be created by the terminal, we can see that the statusline can still expand to that gap and the gap is also appear on split buffer. It's this bug fixed on the current branch? |
That's the diagnostics gutter. |
Okay i fixed it, look like everything here is done! Please merge the branch before something get conflict. |
"info" = { fg = "base03", bg = "base01" } | ||
"hint" = { fg = "base03", bg = "base01" } | ||
"debug" = { fg = "base03", bg = "base01" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since all these info/debug/warning/error colors are used in places besides the gutter, I don't recommend setting bg
. Instead a new UI scope should be added ui.gutter
that will be used for all the gutters including line numbers. You can add the styling here and I'll patch it in later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay changed to:
"ui.gutter" = { bg = "black" }
"info" = "gray"
"hint" = "gray"
"debug" = "gray"
"warning" = "yellow"
"error" = "red"
Is this correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's make info
light blue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed info
:
base16_default_dark.toml
:base0D
base16_default_light.toml
:base0D
base16_terminal.toml
:light-blue
base16_theme.toml
:blue
(instead oflight-blue
because for compatibility for all terminal, the default theme should not contain light variant color)
I incorrectly pushed this.. will merge directly into master |
#FIXME
comment at the end, that because the intent foreground color is "default" (which does not exist) not "white". If we remove that options, the color will not fall back to the default foreground terminal color, but turn into a strange blue color:Current:
Remove options with
#FIXME
:other blue UI is the picker: