##// END OF EJS Templates
Makes the png looks more like the html gantt....
Jean-Philippe Lang -
r4470:dd87ebef5864
parent child
Show More
@@ -474,7 +474,7 module Redmine
474 474 (date_to - @date_from + 1).to_i.times do
475 475 width = zoom
476 476 gc.fill(wday == 6 || wday == 7 ? '#eee' : 'white')
477 gc.stroke('grey')
477 gc.stroke('#ddd')
478 478 gc.stroke_width(1)
479 479 gc.rectangle(left, 2*header_heigth, left + width, 2*header_heigth + g_height-1)
480 480 left = left + width
@@ -824,27 +824,31 module Redmine
824 824
825 825 # Renders the task bar, with progress and late
826 826 if coords[:bar_start] && coords[:bar_end]
827 params[:image].fill('grey')
827 params[:image].fill('#aaa')
828 828 params[:image].rectangle(params[:subject_width] + coords[:bar_start], params[:top], params[:subject_width] + coords[:bar_end], params[:top] - height)
829 829
830 830 if coords[:bar_late_end]
831 params[:image].fill('red')
831 params[:image].fill('#f66')
832 832 params[:image].rectangle(params[:subject_width] + coords[:bar_start], params[:top], params[:subject_width] + coords[:bar_late_end], params[:top] - height)
833 833 end
834 834 if coords[:bar_progress_end]
835 params[:image].fill('green')
835 params[:image].fill('#00c600')
836 836 params[:image].rectangle(params[:subject_width] + coords[:bar_start], params[:top], params[:subject_width] + coords[:bar_progress_end], params[:top] - height)
837 837 end
838 838 end
839 839 # Renders the markers
840 840 if options[:markers]
841 841 if coords[:start]
842 x = params[:subject_width] + coords[:start]
843 y = params[:top] - height / 2
842 844 params[:image].fill('blue')
843 params[:image].rectangle(params[:subject_width] + coords[:start], params[:top] + 1, params[:subject_width] + coords[:start] + 4, params[:top] - 4)
845 params[:image].polygon(x-4, y, x, y-4, x+4, y, x, y+4)
844 846 end
845 847 if coords[:end]
848 x = params[:subject_width] + coords[:end] + params[:zoom]
849 y = params[:top] - height / 2
846 850 params[:image].fill('blue')
847 params[:image].rectangle(params[:subject_width] + coords[:end], params[:top] + 1, params[:subject_width] + coords[:end] + 4, params[:top] - 4)
851 params[:image].polygon(x-4, y, x, y-4, x+4, y, x, y+4)
848 852 end
849 853 end
850 854 # Renders the label on the right
General Comments 0
You need to be logged in to leave comments. Login now