Lay out the Options dialog like TeamSpeak 3's

A sidebar of pages with large icons replaces the tabs, and each page
opens under a banner with its title, subtitle and icon. OK, Cancel and
Apply sit below, and the dialog reopens on the last page used.

The pages follow TS3's: Application (muted-microphone warning, reported
client version), myTeamSpeak, Playback, Capture, Design, Hotkeys,
Contacts, Chat and Notifications. Capture now holds everything from the
microphone to the server: the device and gain, activation with the
microphone test, signal processing and the encoder, laid out in one
grid so its columns line up. Forms are grouped under section headings.

Cancel now goes back to what was last applied, and closing the window
cancels too, so a theme or icon pack being tried out is put back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-01 17:07:13 +00:00
co-authored by Claude Opus 5.5
parent 0ad56671af
commit e06bb82299
19 changed files with 903 additions and 505 deletions
@@ -0,0 +1,35 @@
package com.ts3client.ui;
import com.ts3client.config.Settings;
import javax.swing.JCheckBox;
import java.awt.GridBagConstraints;
/** Options page for general behaviour: the muted-microphone warning and the reported client version. */
final class ApplicationPanel extends FormPanel {
private final Settings settings;
private final JCheckBox mutedWarning;
private final ClientVersionPanel clientVersion;
ApplicationPanel(Settings settings) {
this.settings = settings;
GridBagConstraints c = gbc();
mutedWarning = new JCheckBox("Warn when talking while microphone is muted", settings.mutedTalkWarning);
clientVersion = new ClientVersionPanel(settings);
int row = 0;
addSection(this, c, row++, "Misc");
addWide(this, c, row++, mutedWarning);
addSection(this, c, row++, "Client Version");
addWide(this, c, row++, clientVersion);
addFiller(this, c, row);
}
/** Copies the page into the settings; the caller saves them. */
void apply() {
settings.mutedTalkWarning = mutedWarning.isSelected();
clientVersion.apply();
}
}