Skip to content

Commit 23dfe8b

Browse files
committed
Better look for the config panel.
- Smaller icon - Display only link to online doc - Proper size for the preview panel
1 parent 3339906 commit 23dfe8b

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

src/main/java/fiji/plugin/trackmate/weka/WekaDetectorConfigurationPanel.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,8 @@ public WekaDetectorConfigurationPanel( final Settings settings, final Model mode
111111

112112
final GridBagLayout gridBagLayout = new GridBagLayout();
113113
gridBagLayout.columnWidths = new int[] { 144, 0, 32 };
114-
gridBagLayout.rowHeights = new int[] { 0, 84, 0, 27, 0, 0, 0, 0, 37, 23 };
114+
gridBagLayout.rowHeights = new int[] { 0, 0, 0, 27, 0, 0, 0, 0, 150 };
115115
gridBagLayout.columnWeights = new double[] { 0.0, 1.0, 0.0 };
116-
gridBagLayout.rowWeights = new double[] { 0., 1., 0., 0., 0., 0., 0., 0., 0., 0. };
117116
setLayout( gridBagLayout );
118117

119118
final JLabel lblDetector = new JLabel( TITLE, ICON, JLabel.RIGHT );
@@ -137,7 +136,13 @@ public WekaDetectorConfigurationPanel( final Settings settings, final Model mode
137136
gbcLblHelptext.insets = new Insets( 5, 10, 5, 10 );
138137
gbcLblHelptext.gridx = 0;
139138
gbcLblHelptext.gridy = 1;
140-
add( GuiUtils.textInScrollPanel( GuiUtils.infoDisplay( WekaDetectorFactory.INFO_TEXT ) ), gbcLblHelptext );
139+
gbcLblHelptext.weighty = 1.;
140+
add( GuiUtils.textInScrollPanel( GuiUtils.infoDisplay(
141+
"<html>Online documentation: <br/>"
142+
+ "<a href='" + WekaDetectorFactory.DOC_URL + "'>"
143+
+ WekaDetectorFactory.DOC_URL
144+
+ "</a></html>" ) ),
145+
gbcLblHelptext );
141146

142147
/*
143148
* Channel selector.

src/main/java/fiji/plugin/trackmate/weka/WekaDetectorFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public class WekaDetectorFactory< T extends RealType< T > & NativeType< T > > im
8080

8181
public static final String DOC_URL = "https://imagej.net/plugins/trackmate/detectors/trackmate-weka";
8282

83-
public static final ImageIcon ICON = new ImageIcon( GuiUtils.getResource( "images/TrackMateWeka-logo-100px.png", WekaDetectorFactory.class ) );
83+
public static final ImageIcon ICON = new ImageIcon( GuiUtils.getResource( "images/TrackMateWeka-logo-64px.png", WekaDetectorFactory.class ) );
8484

8585
/** An html information text. */
8686
public static final String INFO_TEXT = "<html>"
8.59 KB
Loading

0 commit comments

Comments
 (0)