Change style names of Legend Buttons

Set new style names to the Legend Buttons, because they don't need a
hover state like the other Buttons
This commit is contained in:
Marcus Kammer committed 2012-12-04 22:09:21 +01:00
1 parent 5569aceeed
commit adb73cc246
1 file changed
+5 -3
@@ -79,12 +79,14 @@ public class LeaderboardGroupPanel extends FormPanel implements HasWelcomeWidget
private static final String STYLE_INACTIVE_RACE = STYLE_NAME_PREFIX + "InactiveRace";
private static final String STYLE_ACTIVE_RACE = STYLE_NAME_PREFIX + "ActiveRace";
private static final String STYLE_LIVE_RACE = STYLE_NAME_PREFIX + "LiveRace";
private static final String STYLE_ACTIVE_BUTTON = STYLE_NAME_PREFIX + "ActiveButton";
//private static final String STYLE_ACTIVE_BUTTON = STYLE_NAME_PREFIX + "ActiveButton";
private static final String STYLE_ACTIVE_LEADERBOARD = STYLE_NAME_PREFIX + "ActiveLeaderboard";
private static final String STYLE_LEGEND = STYLE_NAME_PREFIX + "Legend";
private static final String STYLE_TABLE_TEXT = STYLE_NAME_PREFIX + "TableText";
private static final String STYLE_COLORBOX = STYLE_NAME_PREFIX + "ColorBox";
private static final String STYLE_BOATCLASS = STYLE_NAME_PREFIX + "BoatClass";
private static final String STYLE_LEGEND_LIVE = STYLE_NAME_PREFIX + "LegendLive";
private static final String STYLE_LEGEND_TRACKED = STYLE_NAME_PREFIX + "LegendTracked";
private final SailingServiceAsync sailingService;
private final StringMessages stringMessages;
@@ -274,11 +276,11 @@ public class LeaderboardGroupPanel extends FormPanel implements HasWelcomeWidget
legendPanel.add(inactiveRace);
Label activeRace = new Label(stringMessages.tracked());
activeRace.setStyleName(STYLE_ACTIVE_RACE);
activeRace.setStyleName(STYLE_LEGEND_TRACKED);
legendPanel.add(activeRace);
Label liveRace = new Label(stringMessages.live());
liveRace.setStyleName(STYLE_LIVE_RACE);
liveRace.setStyleName(STYLE_LEGEND_LIVE);
legendPanel.add(liveRace);
return legendPanel;
}