zdavatz / spreadsheet

The Ruby Spreadsheet by ywesee GmbH
http://spreadsheet.ch
GNU General Public License v3.0
1.13k stars 240 forks source link

how to use custom color #192

Closed eccentricyan closed 7 years ago

eccentricyan commented 7 years ago

i want to use under color, i read set_custom_color, but i dont know how to use it.

:white_smoke = #F5F5F5

Spreadsheet::Format.new(base.merge({:pattern_fg_color => :white_smoke, :pattern => 1}))
zdavatz commented 7 years ago

ask this on the mailing list please. And then report back here when you have your solution.

eccentricyan commented 7 years ago

i resolve it. http://stackoverflow.com/questions/33416887/how-to-use-custom-colors-in-the-spreadsheet-gem

zdavatz commented 7 years ago

Thanks for sharing the link!