# HG changeset patch # User Mario Torre # Date 1418296962 -3600 # Node ID aa80de0bd1b00fe30b8be488a6480f0a62b75fe3 # Parent 65101ac3696354d4b4c7239cf3e1c84b50534214 imported patch remove_info_icon.patch diff -r 65101ac36963 -r aa80de0bd1b0 thread/client-swing/src/main/java/com/redhat/thermostat/thread/client/swing/impl/timeline/TimelineLabel.java --- a/thread/client-swing/src/main/java/com/redhat/thermostat/thread/client/swing/impl/timeline/TimelineLabel.java Thu Dec 11 12:22:40 2014 +0100 +++ b/thread/client-swing/src/main/java/com/redhat/thermostat/thread/client/swing/impl/timeline/TimelineLabel.java Thu Dec 11 12:22:42 2014 +0100 @@ -37,7 +37,6 @@ package com.redhat.thermostat.thread.client.swing.impl.timeline; import com.redhat.thermostat.client.swing.UIDefaults; -import com.redhat.thermostat.client.swing.components.FontAwesomeIcon; import com.redhat.thermostat.client.swing.components.Icon; import com.redhat.thermostat.client.swing.components.LabelField; import com.redhat.thermostat.client.ui.Palette; @@ -68,20 +67,25 @@ nameLabel.setHorizontalAlignment(SwingConstants.CENTER); nameLabel.setVerticalAlignment(SwingConstants.CENTER); nameLabel.setForeground((Color) defaults.getSelectedComponentBGColor()); - nameLabel.setBorder(new EmptyBorder(2, 2, 2, 2)); + + // make same small space around the label, a bit higher left and right + // to account for the missing icon + nameLabel.setBorder(new EmptyBorder(2, 4, 2, 4)); nameLabel.setHorizontalTextPosition(SwingConstants.LEFT); - infoOn = new FontAwesomeIcon('\uf05a', 12, Palette.DARK_GRAY.getColor()); - infoOff = new FontAwesomeIcon('\uf05a', 12, Palette.PALE_GRAY.getColor()); - - nameLabel.setIcon(infoOff); + // FIXME && TODO: comment this out for now, the functionality this is + // meant for is not yet implemented in the controller +// infoOn = new FontAwesomeIcon('\uf05a', 12, Palette.DARK_GRAY.getColor()); +// infoOff = new FontAwesomeIcon('\uf05a', 12, Palette.PALE_GRAY.getColor()); +// +// nameLabel.setIcon(infoOff); add(nameLabel); } public void onMouseHover(boolean hover) { - nameLabel.setIcon(hover ? infoOn : infoOff); +// nameLabel.setIcon(hover ? infoOn : infoOff); repaint(); } }