aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorCarlos Goce <carlosgoce@gmail.com>2015-01-25 22:17:48 +0100
committerCarlos Goce <carlosgoce@gmail.com>2015-01-25 22:17:48 +0100
commit57a98ebe63f5936b490f89d4b96f1747dd9bc24f (patch)
treec2a78576db20922602d4407be0d8c530f091c74a /lib
parent89f0e7ca8e4612904de5ff9b98a5de991a01b632 (diff)
downloadpdf-calendars-57a98ebe63f5936b490f89d4b96f1747dd9bc24f.tar.gz
pdf-calendars-57a98ebe63f5936b490f89d4b96f1747dd9bc24f.tar.bz2
pdf-calendars-57a98ebe63f5936b490f89d4b96f1747dd9bc24f.zip
Add style to month titles
Diffstat (limited to 'lib')
-rw-r--r--lib/carlosgoce/layout/layouts.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/carlosgoce/layout/layouts.rb b/lib/carlosgoce/layout/layouts.rb
index e4be1c5..f4e6e13 100644
--- a/lib/carlosgoce/layout/layouts.rb
+++ b/lib/carlosgoce/layout/layouts.rb
@@ -14,9 +14,15 @@ module CarlosGoce
days = month[:formatted_days]
cells = days.to_a.each_slice(7).to_a
cells.unshift %w(L M X J V S D)
- cells.unshift [month[:name]]
+ cells.unshift [{content: "<color rgb='FF0000'><strong>#{month[:name]}</strong></color>", colspan: 7,
+ inline_format: true}]
- tables << make_table(cells, cell_style: {align: :center, size: 7, border_width: 0})
+ tables << make_table(cells,
+ cell_style:
+ {
+ width: 20, align: :center, size: 7, border_width: 0,
+ padding: 0
+ })
end
table(