Zoom chat and descriptions with Ctrl+mouse wheel

Text and pictures in the chat tabs and the info panel zoom in browser
steps (50-300 %), keeping the line at the top in view. The chat and the
info panel each have their own level, shared by every server tab and
saved in the settings.

The HTML documents now take their fonts from a stylesheet that applies
the zoom. The old ScaledStyleSheet never reached the document, and
FlatLaf already applies the interface scale, so it only zooms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-01 16:44:04 +00:00
co-authored by Claude Opus 5.5
parent 0ff0919db2
commit d2de76f534
7 changed files with 229 additions and 12 deletions
@@ -57,7 +57,7 @@ final class ServerTab {
SoundNotifier sounds, ContactStore contacts, PictureDownloads pictures) {
this.host = host;
this.settings = settings;
this.infoPanel = new InfoPanel(settings, pictures);
this.infoPanel = new InfoPanel(settings, pictures, host.infoZoom());
// ServerTabConnectionEvents must exist before the session (which needs a listener
// up front), and the session must exist before the tree/chat panels and the other
@@ -67,7 +67,7 @@ final class ServerTab {
this.session = new ServerSession(settings, identities, audio, sounds, contacts, events);
this.conn = session.connection();
this.groupIcons = new GroupIcons(conn.getIcons());
this.chatPanel = new ChatPanel();
this.chatPanel = new ChatPanel(host.chatZoom());
this.treeActions = new ServerTabTreeActions(host, this, conn, chatPanel, infoPanel, groupIcons);
this.treePanel = new ServerTreePanel(conn.getModel(), groupIcons, contacts, settings, treeActions);
treeActions.attach(treePanel);