Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
dbebb1a9
Commit
dbebb1a9
authored
Jan 26, 2017
by
Marc Schiller
Browse files
Set text color for yellow backgrounds to gray.
parent
a4b394d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/views/visualization/world/ModelFiveGVisualization.java
View file @
dbebb1a9
...
...
@@ -232,7 +232,12 @@ public class ModelFiveGVisualization extends JComponent
g2
.
drawRect
(
x
,
y
,
stepSize
,
stepSize
);
// Write current values to cell
g2
.
setColor
(
new
Color
(
255
,
255
,
255
,
255
));
// Set text color for yellow to grey else to white
if
(
status
==
1
)
{
g2
.
setColor
(
new
Color
(
160
,
160
,
160
,
255
));
}
else
{
g2
.
setColor
(
new
Color
(
255
,
255
,
255
,
255
));
}
if
(
showText
)
{
...
...
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