mirror of
https://github.com/redmine/redmine.git
synced 2025-11-01 19:05:51 +01:00
Update Gantt chart colors to use Open Color palette (#43256).
git-svn-id: https://svn.redmine.org/redmine/trunk@24036 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -161,7 +161,7 @@
|
|||||||
style = ""
|
style = ""
|
||||||
style += "width: #{subject_width + 1}px;"
|
style += "width: #{subject_width + 1}px;"
|
||||||
style += "height: #{headers_height}px;"
|
style += "height: #{headers_height}px;"
|
||||||
style += 'background: #eee;'
|
style += 'background: #f1f3f5;' # oc-gray-1
|
||||||
%>
|
%>
|
||||||
<%= content_tag(:div, "", :style => style, :class => "gantt_hdr") %>
|
<%= content_tag(:div, "", :style => style, :class => "gantt_hdr") %>
|
||||||
<%
|
<%
|
||||||
@@ -198,7 +198,7 @@
|
|||||||
<%= content_tag(:div, '', :style => style, :class => "gantt_hdr") %>
|
<%= content_tag(:div, '', :style => style, :class => "gantt_hdr") %>
|
||||||
<%
|
<%
|
||||||
style = "height: #{headers_height}px;"
|
style = "height: #{headers_height}px;"
|
||||||
style += 'background: #eee;'
|
style += 'background: #f1f3f5;' # oc-gray-1
|
||||||
%>
|
%>
|
||||||
<%= content_tag(:div, content_tag(:p, column.caption, :class => 'gantt_hdr_selected_column_name'), :style => style, :class => "gantt_hdr") %>
|
<%= content_tag(:div, content_tag(:p, column.caption, :class => 'gantt_hdr_selected_column_name'), :style => style, :class => "gantt_hdr") %>
|
||||||
<%= content_tag(:div, :class => "gantt_#{column_name} gantt_selected_column_content") do %>
|
<%= content_tag(:div, :class => "gantt_#{column_name} gantt_selected_column_content") do %>
|
||||||
@@ -213,7 +213,7 @@
|
|||||||
style = ""
|
style = ""
|
||||||
style += "width: #{g_width - 1}px;"
|
style += "width: #{g_width - 1}px;"
|
||||||
style += "height: #{headers_height}px;"
|
style += "height: #{headers_height}px;"
|
||||||
style += 'background: #eee;'
|
style += 'background: #f1f3f5;' # oc-gray-1
|
||||||
%>
|
%>
|
||||||
<%= content_tag(:div, ' '.html_safe, :style => style, :class => "gantt_hdr") %>
|
<%= content_tag(:div, ' '.html_safe, :style => style, :class => "gantt_hdr") %>
|
||||||
|
|
||||||
|
|||||||
@@ -30,8 +30,14 @@ module Redmine
|
|||||||
|
|
||||||
# Relation types that are rendered
|
# Relation types that are rendered
|
||||||
DRAW_TYPES = {
|
DRAW_TYPES = {
|
||||||
IssueRelation::TYPE_BLOCKS => {:landscape_margin => 16, :color => '#F34F4F'},
|
IssueRelation::TYPE_BLOCKS => {
|
||||||
IssueRelation::TYPE_PRECEDES => {:landscape_margin => 20, :color => '#628FEA'}
|
:landscape_margin => 16,
|
||||||
|
:color => '#fa5252' # oc-red-6
|
||||||
|
},
|
||||||
|
IssueRelation::TYPE_PRECEDES => {
|
||||||
|
:landscape_margin => 20,
|
||||||
|
:color => '#228be6' # oc-blue-6
|
||||||
|
}
|
||||||
}.freeze
|
}.freeze
|
||||||
|
|
||||||
UNAVAILABLE_COLUMNS = [:tracker, :id, :subject]
|
UNAVAILABLE_COLUMNS = [:tracker, :id, :subject]
|
||||||
|
|||||||
Reference in New Issue
Block a user