Trim the info panel's rows
A channel's permanent/temporary type is not worth a row, and a client's platform reads better on the version line: Version: 3.6.2 … on Linux. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -116,7 +116,6 @@ public final class InfoPanel extends JScrollPane {
|
|||||||
private static String channelBody(ChannelNode ch) {
|
private static String channelBody(ChannelNode ch) {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append(heading(esc(ch.name)));
|
sb.append(heading(esc(ch.name)));
|
||||||
row(sb, "Type", ch.permanent ? "Permanent" : "Temporary");
|
|
||||||
if (ch.maxClients >= 0) row(sb, "Max clients", Integer.toString(ch.maxClients));
|
if (ch.maxClients >= 0) row(sb, "Max clients", Integer.toString(ch.maxClients));
|
||||||
if (ch.hasPassword) row(sb, "Password", "protected");
|
if (ch.hasPassword) row(sb, "Password", "protected");
|
||||||
if (!ch.topic.isEmpty()) row(sb, "Topic", esc(ch.topic));
|
if (!ch.topic.isEmpty()) row(sb, "Topic", esc(ch.topic));
|
||||||
@@ -154,8 +153,12 @@ public final class InfoPanel extends JScrollPane {
|
|||||||
: "#" + cl.channelGroupId);
|
: "#" + cl.channelGroupId);
|
||||||
|
|
||||||
if (cl.talkPower != 0) row(sb, "Talk power", Integer.toString(cl.talkPower));
|
if (cl.talkPower != 0) row(sb, "Talk power", Integer.toString(cl.talkPower));
|
||||||
if (!cl.platform.isEmpty()) row(sb, "Platform", esc(cl.platform));
|
if (!cl.version.isEmpty()) {
|
||||||
if (!cl.version.isEmpty()) row(sb, "Version", esc(cl.version));
|
row(sb, "Version", esc(cl.version)
|
||||||
|
+ (cl.platform.isEmpty() ? "" : " on " + esc(cl.platform)));
|
||||||
|
} else if (!cl.platform.isEmpty()) {
|
||||||
|
row(sb, "Platform", esc(cl.platform));
|
||||||
|
}
|
||||||
if (cl.away) row(sb, "Status", "Away");
|
if (cl.away) row(sb, "Status", "Away");
|
||||||
if (!cl.inputHardware) row(sb, "Microphone", "disabled");
|
if (!cl.inputHardware) row(sb, "Microphone", "disabled");
|
||||||
else if (cl.inputMuted) row(sb, "Microphone", "muted");
|
else if (cl.inputMuted) row(sb, "Microphone", "muted");
|
||||||
|
|||||||
@@ -43,6 +43,12 @@ public final class Theme {
|
|||||||
return uiFont().deriveFont(Font.BOLD);
|
return uiFont().deriveFont(Font.BOLD);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** A notch below the UI font, for secondary labels. */
|
||||||
|
public static Font uiSmall() {
|
||||||
|
Font f = uiFont();
|
||||||
|
return f.deriveFont(Math.max(9f, f.getSize2D() - 2f));
|
||||||
|
}
|
||||||
|
|
||||||
// ---- surfaces, from the look-and-feel ----
|
// ---- surfaces, from the look-and-feel ----
|
||||||
|
|
||||||
public static Color windowBg() {
|
public static Color windowBg() {
|
||||||
|
|||||||
Reference in New Issue
Block a user