Darken the dark theme, and hover a tree row like a menu

The client's own look-and-feel defaults now live beside LookAndFeelManager as
FlatLaf properties files, which FlatLaf loads on top of each theme's own,
instead of a handful of UIManager.put calls.

The dark theme is built on three surfaces keyed to the toolbar's #282828: the
window chrome, the tab strips and menu bar one step below it at #232323, and
the content the client shows — channel tree, chat log, text fields, lists — at
#1e1e1e. Selections are #364b6f, and channel names in the tree are white; the
chat lines about server events keep the blue they had, which channel names no
longer carry. Everything FlatLaf derives (borders, scroll bars, hover states)
follows from those.

A read-only editor pane is a chat log or an information view here, not a
disabled input, so it keeps the content background rather than FlatLaf's
inactive one; and since neither a text view nor a tree fills its viewport, the
space below the last line takes their background instead of the window's.

The row under the pointer is now washed in the same colour a hovered menu is,
rather than outlined. FlatLaf states that colour as a shift of the surface
beneath it, so it is resolved against the window background exactly as the
menu bar resolves it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-19 22:07:19 +00:00
co-authored by Claude Opus 5
parent 35f10ed14c
commit 98719d717e
9 changed files with 100 additions and 46 deletions
@@ -0,0 +1,17 @@
#
# A darker dark theme than FlatLaf's own, keyed to the toolbar's #282828.
#
# Three levels of surface: the window chrome (toolbar, panels, status bar) at
# @background, the tab strips one step below it, and the content the client shows
# (channel tree, chat log, text fields, lists) one step below those.
#
@background = #282828
@foreground = #e0e0e0
@componentBackground = #1e1e1e
@menuBackground = #232323
# Selected channel tree row, and every other selection with it.
@selectionBackground = #364b6f
TabbedPane.background = #232323
@@ -0,0 +1,14 @@
#
# Look-and-feel defaults for both themes. Loaded by FlatLaf itself, on top of the
# theme's own properties; see LookAndFeelManager.
#
# Softer corners than FlatLaf's default, and a tab strip with room to breathe.
Component.arc = 6
Button.arc = 6
Component.focusWidth = 1
TabbedPane.tabHeight = 26
# A read-only editor pane is a chat log or an information view here, not a disabled
# input, so it keeps the content background instead of the window's.
EditorPane.inactiveBackground = @componentBackground