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

Editor: fold text contrast #155

Open
hinell opened this issue Jan 13, 2023 · 5 comments
Open

Editor: fold text contrast #155

hinell opened this issue Jan 13, 2023 · 5 comments

Comments

@hinell
Copy link

hinell commented Jan 13, 2023

I suggest to adjust folded text colors. Currently it's nearly indistinguishible from the background one both in Lighter and Darker styles (pay attention to the line 45):

image
material_light_folded

@marko-cerovac
Copy link
Owner

Okay, ill look into boosting the contrast over the weekend

@hinell
Copy link
Author

hinell commented Jan 19, 2023

Thanks for all the hard work!

@marko-cerovac
Copy link
Owner

Looks like changing the color will require finding and choosing a few new colors that match the theme and changing the existing ones.
Until I figure that out, you can change the color in your config like this:

local colors = require("material").colors

require("material").setup {
    custom_highlights = {
        Folded = { fg = colors.main.purple } -- for example a purple color (see all colors in lua/material/colors/init.lua
    }
}

@hinell
Copy link
Author

hinell commented Mar 4, 2023

require("material").colors -- This fails!
require("material.colors") -- This works!

Thanks. But I've to fix your example. There is no exports of colors in main module.

image

@hinell
Copy link
Author

hinell commented Mar 4, 2023

image
For your inspiration, here is a how folded highlight is handled in tokyonight theme:

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

No branches or pull requests

2 participants