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

Add option to use default terminal colors #20

Open
augustotx opened this issue Nov 14, 2024 · 0 comments
Open

Add option to use default terminal colors #20

augustotx opened this issue Nov 14, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@augustotx
Copy link

augustotx commented Nov 14, 2024

Title says it all, but

Right now I can only assign colors to a theme by declaring them with hex codes or rgb values. I didn't find any option to not declare a theme and use the default terminal colors when initializing tuile.

Could look like something like this

pub fn customTheme() tuile.Theme {
    return tuile.Theme{
        .text_primary = tuile.Color{ .default = .text },
        .text_secondary = tuile.Color{ .default = .text },
        .background_primary = tuile.Color{ .default = .background },
        .background_secondary = tuile.Color{ .default = .background },
        // and so on...
    };
}

I'm currently writing a vim clone to learn zig and I would love if tuile could look like this!

neovim window

also,

Thank you for making tuile, it's amazing!

@augustotx augustotx added the enhancement New feature or request label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant