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

multi-style when theming #18

Closed
killwing opened this issue Dec 16, 2011 · 2 comments
Closed

multi-style when theming #18

killwing opened this issue Dec 16, 2011 · 2 comments

Comments

@killwing
Copy link

how to apply compound 'red' and 'bold' when i'm using setTheme() ?
and i suggest to add a option to color background, now i have to use 'inverse' to workaround...

@Marak
Copy link
Owner

Marak commented Dec 17, 2011

Adding the ability to do this is easy, the question is what does the API look like.

For multi-style themes, I could do: red.bold as the value and then just split the string on the .

For background color, what would the API call look like? How do you specify if if color should be applied as BG color?

"foo".redBG

"foo".background('red')

"foo".bg('red')

Lots of options.

@Marak
Copy link
Owner

Marak commented Jul 26, 2013

Now added

@Marak Marak closed this as completed Jul 26, 2013
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