Bladeren bron

Fixes issue 3764: about dialog licence plugin info needs emboldening

Change-Id: If14bc9d91419ab00a3b214596148d8a8a04a0d27
Reviewed-on: http://gerrit.dmdirc.com/879
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com>
tags/0.6.3
Gregory Holmes 14 jaren geleden
bovenliggende
commit
81fa8ae0a3
1 gewijzigde bestanden met toevoegingen van 9 en 6 verwijderingen
  1. 9
    6
      src/com/dmdirc/addons/ui_swing/dialogs/about/LicencesPanel.java

+ 9
- 6
src/com/dmdirc/addons/ui_swing/dialogs/about/LicencesPanel.java Bestand weergeven

@@ -24,6 +24,7 @@ package com.dmdirc.addons.ui_swing.dialogs.about;
24 24
 
25 25
 import com.dmdirc.addons.ui_swing.UIUtilities;
26 26
 import com.dmdirc.addons.ui_swing.components.TreeScroller;
27
+import com.dmdirc.config.IdentityManager;
27 28
 import com.dmdirc.plugins.PluginInfo;
28 29
 
29 30
 import java.awt.Font;
@@ -147,13 +148,15 @@ public final class LicencesPanel extends JPanel implements TreeSelectionListener
147 148
         licence.setText(((Licence) userObject).getBody());
148 149
         } else if (userObject instanceof PluginInfo) {
149 150
             final PluginInfo pi = (PluginInfo) userObject;
150
-            licence.setText("Name: " + pi.getNiceName() + "<br>"
151
-                    + "Description: " + pi.getDescription() + "<br>"
152
-                    + "Author: " + pi.getAuthor() + "<br>"
153
-                    + "Version: " + pi.getFriendlyVersion());
151
+            licence.setText("<b>Name:</b> " + pi.getNiceName() + "<br>"
152
+                    + "<b>Version:</b> " + pi.getFriendlyVersion() + "<br>"
153
+                    + "<b>Author:</b> " + pi.getAuthor() + "<br>"
154
+                    + "<b>Description:</b> " + pi.getDescription() + "<br>");
154 155
         } else {
155
-            licence.setText("Name: DMDirc<br>"
156
-                    + "Desciption: The intelligent IRC client");
156
+            licence.setText("<b>Name:</b> DMDirc<br>"
157
+                    + "<b>Version:</b> " + IdentityManager.getGlobalConfig().
158
+                    getOption("version", "version") + "<br>"
159
+                    + "<b>Desciption:</b> The intelligent IRC client");
157 160
         }
158 161
         UIUtilities.resetScrollPane(scrollPane);
159 162
     }

Laden…
Annuleren
Opslaan