Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
a178b4ec
Commit
a178b4ec
authored
Jan 09, 2009
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweak: slightly less dark lines in graph
parent
b327868b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/gui/control/graph.cpp
src/gui/control/graph.cpp
+4
-4
No files found.
src/gui/control/graph.cpp
View file @
a178b4ec
...
@@ -860,7 +860,7 @@ void GraphLabelAxis::draw(RotatedDC& dc, int current, DrawLayer layer) const {
...
@@ -860,7 +860,7 @@ void GraphLabelAxis::draw(RotatedDC& dc, int current, DrawLayer layer) const {
// Draw lines
// Draw lines
if
(
draw_lines
)
{
if
(
draw_lines
)
{
for
(
int
i
=
0
;
i
<
count
;
++
i
)
{
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
)
{
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
()));
dc
.
DrawLine
(
RealPoint
(
rect
.
x
+
(
i
+
1.0
)
*
width
,
rect
.
top
()),
RealPoint
(
rect
.
x
+
(
i
+
1.0
)
*
width
,
rect
.
bottom
()));
}
else
{
}
else
{
...
@@ -886,7 +886,7 @@ void GraphLabelAxis::draw(RotatedDC& dc, int current, DrawLayer layer) const {
...
@@ -886,7 +886,7 @@ void GraphLabelAxis::draw(RotatedDC& dc, int current, DrawLayer layer) const {
// Draw lines
// Draw lines
if
(
draw_lines
)
{
if
(
draw_lines
)
{
for
(
int
i
=
0
;
i
<
count
;
++
i
)
{
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
)
{
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
));
dc
.
DrawLine
(
RealPoint
(
rect
.
left
(),
rect
.
bottom
()
-
(
i
+
1.0
)
*
height
),
RealPoint
(
rect
.
right
(),
rect
.
bottom
()
-
(
i
+
1.0
)
*
height
));
}
else
{
}
else
{
...
@@ -929,7 +929,7 @@ void GraphValueAxis::draw(RotatedDC& dc, int current, DrawLayer layer) const {
...
@@ -929,7 +929,7 @@ void GraphValueAxis::draw(RotatedDC& dc, int current, DrawLayer layer) const {
Color
bg
=
wxSystemSettings
::
GetColour
(
wxSYS_COLOUR_WINDOW
);
Color
bg
=
wxSystemSettings
::
GetColour
(
wxSYS_COLOUR_WINDOW
);
Color
fg
=
wxSystemSettings
::
GetColour
(
wxSYS_COLOUR_WINDOWTEXT
);
Color
fg
=
wxSystemSettings
::
GetColour
(
wxSYS_COLOUR_WINDOWTEXT
);
// Draw backlines (horizontal) and value labels
// 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
;
int
highlight
=
(
highlight_value
&&
current
>=
0
)
?
(
int
)
axis
.
groups
[
current
].
size
:
-
1
;
for
(
int
i
=
0
;
i
<=
(
int
)
axis
.
max
;
++
i
)
{
for
(
int
i
=
0
;
i
<=
(
int
)
axis
.
max
;
++
i
)
{
if
(
i
%
label_step
==
0
||
i
==
highlight
)
{
if
(
i
%
label_step
==
0
||
i
==
highlight
)
{
...
@@ -954,7 +954,7 @@ void GraphValueAxis::draw(RotatedDC& dc, int current, DrawLayer layer) const {
...
@@ -954,7 +954,7 @@ void GraphValueAxis::draw(RotatedDC& dc, int current, DrawLayer layer) const {
// restore font/pen
// restore font/pen
if
(
i
==
highlight
)
{
if
(
i
==
highlight
)
{
dc
.
SetFont
(
*
wxNORMAL_FONT
);
dc
.
SetFont
(
*
wxNORMAL_FONT
);
dc
.
SetPen
(
lerp
(
bg
,
fg
,
0.
3
));
dc
.
SetPen
(
lerp
(
bg
,
fg
,
0.
2
));
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment