Skip to content

Commit

Permalink
v.0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ekatrukha committed Jun 26, 2024
1 parent c0ce4f4 commit 8b0d9cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/bigtrace/rois/ColorUserSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ public ColorUserSettings()
{
for(int i=0;i<4;i++)
{
colors[i]=null;
colors[i] = null;
}
}
public void setColor(Color color_in, int index)
{
if (color_in==null)
if (color_in == null)
{
colors[index] = null;
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/bigtrace/rois/Roi3DGroupManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public boolean dialogPropertiesShow(final Roi3DGroup preset, boolean bNameChanga
nfOpacity.setLimits(0.0, 1.0);

JButton butPointColor = new JButton( new ColorIcon( preset.getPointColor() ) );

selectColors.setColor(preset.getPointColor(), 0);
butPointColor.addActionListener( e -> {
Color newColor = JColorChooser.showDialog(dialog, "Choose point color", preset.getPointColor() );
if (newColor!=null)
Expand All @@ -251,7 +251,7 @@ public boolean dialogPropertiesShow(final Roi3DGroup preset, boolean bNameChanga

JButton butLineColor = new JButton( new ColorIcon( preset.getLineColor()) );


selectColors.setColor(preset.getLineColor(), 1);
butLineColor.addActionListener( e -> {
Color newColor = JColorChooser.showDialog(dialog, "Choose line color", preset.getPointColor() );
if (newColor!=null)
Expand Down

0 comments on commit 8b0d9cf

Please sign in to comment.