From 2dab839906955a97f1d5001c08ed43dc7d0b903a Mon Sep 17 00:00:00 2001 From: twanvl Date: Fri, 9 Jan 2009 16:24:52 +0000 Subject: [PATCH] tweak: slightly less dark lines in graph git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1320 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/gui/control/graph.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/control/graph.cpp b/src/gui/control/graph.cpp index 89e3e960..ef87094c 100644 --- a/src/gui/control/graph.cpp +++ b/src/gui/control/graph.cpp @@ -860,7 +860,7 @@ void GraphLabelAxis::draw(RotatedDC& dc, int current, DrawLayer layer) const { // Draw lines if (draw_lines) { for (int i = 0 ; i < count ; ++i) { - dc.SetPen(i == current ? fg : lerp(bg, fg, 0.3)); + dc.SetPen(i == current ? fg : lerp(bg, fg, 0.2)); if (draw_lines == DRAW_LINES_BETWEEN) { dc.DrawLine(RealPoint(rect.x + (i+1.0)*width, rect.top()), RealPoint(rect.x + (i+1.0)*width, rect.bottom())); } else { @@ -886,7 +886,7 @@ void GraphLabelAxis::draw(RotatedDC& dc, int current, DrawLayer layer) const { // Draw lines if (draw_lines) { for (int i = 0 ; i < count ; ++i) { - dc.SetPen(i == current ? fg : lerp(bg, fg, 0.3)); + dc.SetPen(i == current ? fg : lerp(bg, fg, 0.2)); if (draw_lines == DRAW_LINES_BETWEEN) { dc.DrawLine(RealPoint(rect.left(), rect.bottom() - (i+1.0)*height), RealPoint(rect.right(), rect.bottom() - (i+1.0)*height)); } else { @@ -929,7 +929,7 @@ void GraphValueAxis::draw(RotatedDC& dc, int current, DrawLayer layer) const { Color bg = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW); Color fg = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT); // Draw backlines (horizontal) and value labels - dc.SetPen(lerp(bg, fg, 0.3)); + dc.SetPen(lerp(bg, fg, 0.2)); int highlight = (highlight_value && current >= 0) ? (int)axis.groups[current].size : -1; for (int i = 0 ; i <= (int)axis.max ; ++i) { if (i % label_step == 0 || i == highlight) { @@ -954,7 +954,7 @@ void GraphValueAxis::draw(RotatedDC& dc, int current, DrawLayer layer) const { // restore font/pen if (i == highlight) { dc.SetFont(*wxNORMAL_FONT); - dc.SetPen(lerp(bg, fg, 0.3)); + dc.SetPen(lerp(bg, fg, 0.2)); } } }