| | |
| | |
|
| | | private final ImageIcon sparkleshareIcon;
|
| | |
|
| | | private final ImageIcon mirrorIcon;
|
| | |
|
| | | public IndicatorsRenderer() {
|
| | | super(new FlowLayout(FlowLayout.RIGHT, 1, 0));
|
| | | blankIcon = new ImageIcon(getClass().getResource("/blank.png"));
|
| | |
| | | federatedIcon = new ImageIcon(getClass().getResource("/federated_16x16.png"));
|
| | | forkIcon = new ImageIcon(getClass().getResource("/commit_divide_16x16.png"));
|
| | | sparkleshareIcon = new ImageIcon(getClass().getResource("/star_16x16.png"));
|
| | | mirrorIcon = new ImageIcon(getClass().getResource("/mirror_16x16.png"));
|
| | | }
|
| | |
|
| | | @Override
|
| | |
| | | tooltip.append(Translation.get("gb.isSparkleshared")).append("<br/>");
|
| | | add(icon);
|
| | | }
|
| | | if (model.isMirror) {
|
| | | JLabel icon = new JLabel(mirrorIcon);
|
| | | tooltip.append(Translation.get("gb.isMirror")).append("<br/>");
|
| | | add(icon);
|
| | | }
|
| | | if (model.isFork()) {
|
| | | JLabel icon = new JLabel(forkIcon);
|
| | | tooltip.append(Translation.get("gb.isFork")).append("<br/>");
|