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

Request: Minimal working example for styles #166

Closed
deemp opened this issue Dec 12, 2022 · 3 comments
Closed

Request: Minimal working example for styles #166

deemp opened this issue Dec 12, 2022 · 3 comments

Comments

@deemp
Copy link

deemp commented Dec 12, 2022

Hello! I'm trying to apply styles to my worksheet. I made an example, but I can't set a color for a cell.

https://gist.github.com/deemp/4d3fafd3885e9846814bf87287466d5f

Could you please provide a minimal working example with colors?

@qrilka
Copy link
Owner

qrilka commented Dec 12, 2022

Please take a look at this thing - https://gist.github.com/qrilka/ffd9fe984e3a50fa1b0bb6c5bcd7859c
xlsx is sometimes a bit odd, for example - take a look at the definition of minimalStyleSheet , you need to have some defaults in your stylesheet, and the main thing is using foreground color for a pattern not a background one.

@deemp
Copy link
Author

deemp commented Dec 12, 2022

@qrilka, thank you so much! When running your example, I got (3, 2) painted grey. This behavior should be related to this issue.

@deemp deemp closed this as completed Dec 12, 2022
@qrilka
Copy link
Owner

qrilka commented Dec 12, 2022

PR will be more than welcome if you could find out the details behind this behavior

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