Skip to content

Conversation

@A4-Tacks
Copy link

This is a black and white colorscheme, dark only

  • Mainly targeting GUI and 256 colors, but also supporting 16 colors
  • Similar colorschemes include 'quiet', but it has too little highlighting and high contrast

This is a black and white colorscheme, dark only

- Mainly targeting GUI and 256 colors, but also supporting 16 colors
- Similar colorschemes include 'quiet', but it has too little highlighting and high contrast
@habamax
Copy link
Collaborator

habamax commented Dec 18, 2025

Thanks. Could you please:

  • Normalize file names? weakblack.colortemplate
  • Target 8 colors terminals too

@A4-Tacks
Copy link
Author

  • Target 8 colors terminals too

Working under 8 colors will be very abnormal

@habamax
Copy link
Collaborator

habamax commented Dec 18, 2025

QuickfixLine and Search are the same:
image

Visual and QuickfixLine:
image

@habamax
Copy link
Collaborator

habamax commented Dec 18, 2025

  • Target 8 colors terminals too

Working under 8 colors will be very abnormal

It shouldnt' be perfect, but readable under 8c.

@A4-Tacks A4-Tacks marked this pull request as draft December 18, 2025 22:18
@A4-Tacks
Copy link
Author

Visual and QuickfixLine:

This seems to be readable

@A4-Tacks
Copy link
Author

It shouldnt' be perfect, but readable under 8c.

It seems that only one 16 colors can be specified. Is there a way to define colors conditionally?

For example, if 16 colors, w9=8, and if 8 colors, w9=7

@A4-Tacks
Copy link
Author

It shouldnt' be perfect, but readable under 8c.

Due to the black and white colorscheme, 4 colors are used in 16 colors, but the 2 colors in 8 colors seem completely meaningless

@A4-Tacks A4-Tacks marked this pull request as ready for review December 18, 2025 23:08
@habamax
Copy link
Collaborator

habamax commented Dec 19, 2025

Due to the black and white colorscheme, 4 colors are used in 16 colors, but the 2 colors in 8 colors seem completely meaningless

And that is the hard part, it should be readable in 8c with a lot of compromises, e.g. for syntax only statements, comments and constants/strings.

@A4-Tacks
Copy link
Author

It seems that only one 16 colors can be specified. Is there a way to define colors conditionally?

Is there a way to do this? Otherwise, a large number of difficult to maintain highlight groups will be defined

@habamax
Copy link
Collaborator

habamax commented Dec 19, 2025

It seems that only one 16 colors can be specified. Is there a way to define colors conditionally?

Is there a way to do this? Otherwise, a large number of difficult to maintain highlight groups will be defined

I am not sure what do you mean. But you can specify what color to use:

Visual                  color14        color00        reverse
 /gui                   none           colorV
 /256+tgc true          omit           omit
 /8                     color06        color00        reverse

@A4-Tacks
Copy link
Author

What I mean is like this:

Color: w3  /8       #303030     ~       0

But it not work

@habamax
Copy link
Collaborator

habamax commented Dec 19, 2025

Please also define Titlebar and TitlebarNC otherwise in windows gvim it blends with background:

image

You can probably take it from quiet or other dark colorschemes.

@habamax
Copy link
Collaborator

habamax commented Dec 19, 2025

What I mean is like this:

Color: w3  /8       #303030     ~       0

But it not work

no, but you can define different colors and use them conditionally in highlight definition

Color: w3 ...
Color: w3_8 ...

Statement w3    none
 /8       w3_8  none

@A4-Tacks
Copy link
Author

Oh, it's quite troublesome to maintain, I hope it can be improved in the future

@habamax
Copy link
Collaborator

habamax commented Dec 19, 2025

I have checked again Visual/QuickfixLine and I believe is not readable enough (gui version), at least for me. Let's see what @romainl's opinion is.

@A4-Tacks
Copy link
Author

You can probably take it from quiet or other dark colorschemes.

I didn't find it in dark

@habamax
Copy link
Collaborator

habamax commented Dec 19, 2025

You can probably take it from quiet or other dark colorschemes.

I didn't find it in dark

https://github.com/vim/colorschemes/blob/master/colortemplate/quiet.colortemplate#L124-L125

@A4-Tacks
Copy link
Author

I mean, this group is not included in lifepillar/vim-colortemplate/templates/dark.colortemplate

@habamax
Copy link
Collaborator

habamax commented Dec 19, 2025

I mean, this group is not included in lifepillar/vim-colortemplate/templates/dark.colortemplate

They are recent ones, from a couple of months ago, @lifepillar haven't added them yet.

@habamax
Copy link
Collaborator

habamax commented Dec 19, 2025

Titlebar looks nice
image

TitlebarNC could be more distinguishable:
image

@A4-Tacks
Copy link
Author

It looks good, is there anything wrong

@habamax
Copy link
Collaborator

habamax commented Dec 19, 2025

It looks good, is there anything wrong

It shouldn't be the same color as normal background.

@habamax
Copy link
Collaborator

habamax commented Dec 19, 2025

Given this colorscheme is grayscale, what is the justification for the transparent Visual highlight?

Currently it conflicts with at least 2 other highlights: Search and QuickfixLine:

image image

But if the Visual would have the foreground, it would be just fine:

image image

@A4-Tacks
Copy link
Author

Given this colorscheme is grayscale, what is the justification for the transparent Visual highlight?

Low contrast, smoother

@habamax
Copy link
Collaborator

habamax commented Dec 19, 2025

16c diff colors:

image
  • diffadd is unreadable
  • difftext is quite hard to find

Same with 256 colors:
image

@habamax
Copy link
Collaborator

habamax commented Dec 19, 2025

don't forget to add

; Template for black & white terminals
Include: _tcozero

At the end of you colortemplate.

@A4-Tacks
Copy link
Author

Same with 256 colors:

This is the expected color

@habamax
Copy link
Collaborator

habamax commented Dec 19, 2025

Same with 256 colors:

This is the expected color

yes, that is for the reference to compare with 16c screenshot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants